Fix optional empty value update

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-10-16 10:32:32 +02:00
parent 6253254335
commit 611b549f08
18 changed files with 516 additions and 497 deletions

View File

@@ -25,6 +25,7 @@ import type { TaskFormDialogFragment$key } from "./__generated__/TaskFormDialogF
import { MeasureSelectField } from "/components/form/MeasureSelectField"; import { MeasureSelectField } from "/components/form/MeasureSelectField";
import { Controller } from "react-hook-form"; import { Controller } from "react-hook-form";
import { updateStoreCounter } from "/hooks/useMutationWithIncrement"; import { updateStoreCounter } from "/hooks/useMutationWithIncrement";
import { formatDatetime } from "@probo/helpers";
const taskFragment = graphql` const taskFragment = graphql`
fragment TaskFormDialogFragment on Task { fragment TaskFormDialogFragment on Task {
@@ -74,11 +75,7 @@ const schema = z.object({
timeEstimate: z.string().nullable(), timeEstimate: z.string().nullable(),
assignedToId: z.string(), assignedToId: z.string(),
measureId: z.string(), measureId: z.string(),
deadline: z deadline: z.string().optional(),
.date({
coerce: true,
})
.nullable(),
}); });
type Props = { type Props = {
@@ -113,7 +110,7 @@ export default function TaskFormDialog(props: Props) {
timeEstimate: task?.timeEstimate ?? "", timeEstimate: task?.timeEstimate ?? "",
assignedToId: task?.assignedTo?.id ?? "", assignedToId: task?.assignedTo?.id ?? "",
measureId: task?.measure?.id ?? props.measureId ?? "", measureId: task?.measure?.id ?? props.measureId ?? "",
deadline: task?.deadline?.split("T")[0] ?? null, deadline: task?.deadline?.split("T")[0] ?? "",
}, },
}); });
@@ -126,7 +123,7 @@ export default function TaskFormDialog(props: Props) {
name: data.name, name: data.name,
description: data.description, description: data.description,
timeEstimate: data.timeEstimate || null, timeEstimate: data.timeEstimate || null,
deadline: data.deadline, deadline: formatDatetime(data.deadline) ?? null,
}, },
}, },
}); });
@@ -138,7 +135,7 @@ export default function TaskFormDialog(props: Props) {
name: data.name, name: data.name,
description: data.description, description: data.description,
timeEstimate: data.timeEstimate || null, timeEstimate: data.timeEstimate || null,
deadline: data.deadline || null, deadline: formatDatetime(data.deadline) ?? null,
assignedToId: data.assignedToId, assignedToId: data.assignedToId,
measureId: data.measureId, measureId: data.measureId,
}, },

View File

@@ -188,8 +188,8 @@ export const useUpdateAudit = () => {
return (input: { return (input: {
id: string; id: string;
name?: string; name?: string;
validFrom?: string; validFrom?: string | null;
validUntil?: string; validUntil?: string | null;
state?: string; state?: string;
}) => { }) => {
if (!input.id) { if (!input.id) {

View File

@@ -189,7 +189,7 @@ export const useUpdateContinualImprovement = () => {
description?: string; description?: string;
source?: string; source?: string;
ownerId?: string; ownerId?: string;
targetDate?: string; targetDate?: string | null;
status?: string; status?: string;
priority?: string; priority?: string;
}) => { }) => {

View File

@@ -222,12 +222,12 @@ export const useUpdateNonconformity = () => {
id: string; id: string;
referenceId?: string; referenceId?: string;
description?: string; description?: string;
dateIdentified?: string; dateIdentified?: string | null;
rootCause?: string; rootCause?: string;
correctiveAction?: string; correctiveAction?: string;
ownerId?: string; ownerId?: string;
auditId?: string; auditId?: string;
dueDate?: string; dueDate?: string | null;
status?: string; status?: string;
effectivenessCheck?: string; effectivenessCheck?: string;
}) => { }) => {

View File

@@ -195,8 +195,8 @@ export const useUpdateObligation = () => {
actionsToBeImplemented?: string; actionsToBeImplemented?: string;
regulator?: string; regulator?: string;
ownerId?: string; ownerId?: string;
lastReviewDate?: string; lastReviewDate?: string | null;
dueDate?: string; dueDate?: string | null;
status?: string; status?: string;
}) => { }) => {
if (!input.id) { if (!input.id) {

View File

@@ -23,12 +23,11 @@ import {
Tr, Tr,
useConfirm, useConfirm,
useDialogRef, useDialogRef,
useToast,
} from "@probo/ui"; } from "@probo/ui";
import { useTranslate } from "@probo/i18n"; import { useTranslate } from "@probo/i18n";
import type { PreloadedQuery } from "react-relay"; import type { PreloadedQuery } from "react-relay";
import type { OrganizationGraph_ViewQuery } from "/hooks/graph/__generated__/OrganizationGraph_ViewQuery.graphql"; import type { OrganizationGraph_ViewQuery } from "/hooks/graph/__generated__/OrganizationGraph_ViewQuery.graphql";
import { useFragment, useMutation, usePreloadedQuery, usePaginationFragment } from "react-relay"; import { useFragment, usePreloadedQuery, usePaginationFragment } from "react-relay";
import { organizationViewQuery } from "/hooks/graph/OrganizationGraph"; import { organizationViewQuery } from "/hooks/graph/OrganizationGraph";
import { graphql } from "relay-runtime"; import { graphql } from "relay-runtime";
import { SortableTable, SortableTh } from "/components/SortableTable"; import { SortableTable, SortableTh } from "/components/SortableTable";
@@ -45,7 +44,7 @@ import type {
SettingsPageInvitationsFragment$data, SettingsPageInvitationsFragment$data,
SettingsPageInvitationsFragment$key SettingsPageInvitationsFragment$key
} from "./__generated__/SettingsPageInvitationsFragment.graphql"; } from "./__generated__/SettingsPageInvitationsFragment.graphql";
import { useState, type ChangeEventHandler, useEffect } from "react"; import { useState, type ChangeEventHandler, useEffect, useRef } from "react";
import { sprintf } from "@probo/helpers"; import { sprintf } from "@probo/helpers";
import { useFormWithSchema } from "/hooks/useFormWithSchema"; import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { z } from "zod"; import { z } from "zod";
@@ -226,7 +225,6 @@ export default function SettingsPage({ queryRef }: Props) {
organizationViewQuery, organizationViewQuery,
queryRef queryRef
).node; ).node;
const { toast } = useToast();
const organization = useFragment<SettingsPageFragment$key>( const organization = useFragment<SettingsPageFragment$key>(
organizationFragment, organizationFragment,
organizationKey organizationKey
@@ -250,7 +248,13 @@ export default function SettingsPage({ queryRef }: Props) {
invitationsPagination.refetch({}, { fetchPolicy: 'network-only' }); invitationsPagination.refetch({}, { fetchPolicy: 'network-only' });
}; };
const [updateOrganization] = useMutation(updateOrganizationMutation); const [updateOrganization, isUpdatingOrganization] = useMutationWithToasts(
updateOrganizationMutation,
{
successMessage: __("Organization updated successfully"),
errorMessage: __("Failed to update organization"),
}
);
const [deleteHorizontalLogo, isDeletingHorizontalLogo] = useMutationWithToasts( const [deleteHorizontalLogo, isDeletingHorizontalLogo] = useMutationWithToasts(
deleteHorizontalLogoMutation, deleteHorizontalLogoMutation,
{ {
@@ -262,8 +266,6 @@ export default function SettingsPage({ queryRef }: Props) {
const memberships = membershipsPagination.data.memberships?.edges.map((edge) => edge.node) || []; const memberships = membershipsPagination.data.memberships?.edges.map((edge) => edge.node) || [];
const invitations = invitationsPagination.data.invitations?.edges.map((edge) => edge.node) || []; const invitations = invitationsPagination.data.invitations?.edges.map((edge) => edge.node) || [];
const [activeTab, setActiveTab] = useState<"memberships" | "invitations">("memberships"); const [activeTab, setActiveTab] = useState<"memberships" | "invitations">("memberships");
const [logoFile, setLogoFile] = useState<File | null>(null);
const [horizontalLogoFile, setHorizontalLogoFile] = useState<File | null>(null);
const [logoPreview, setLogoPreview] = useState<string | null>(null); const [logoPreview, setLogoPreview] = useState<string | null>(null);
const [horizontalLogoPreview, setHorizontalLogoPreview] = useState<string | null>(null); const [horizontalLogoPreview, setHorizontalLogoPreview] = useState<string | null>(null);
@@ -280,31 +282,45 @@ export default function SettingsPage({ queryRef }: Props) {
} }
); );
const prevOrgDataRef = useRef({
name: organization.name,
description: organization.description,
websiteUrl: organization.websiteUrl,
email: organization.email,
headquarterAddress: organization.headquarterAddress,
});
useEffect(() => { useEffect(() => {
reset({ const prev = prevOrgDataRef.current;
name: organization.name || "", const hasFormFieldChanges =
description: organization.description || "", prev.name !== organization.name ||
websiteUrl: organization.websiteUrl || "", prev.description !== organization.description ||
email: organization.email || "", prev.websiteUrl !== organization.websiteUrl ||
headquarterAddress: organization.headquarterAddress || "", prev.email !== organization.email ||
}); prev.headquarterAddress !== organization.headquarterAddress;
setLogoFile(null);
setHorizontalLogoFile(null); if (hasFormFieldChanges) {
setLogoPreview(null); reset({
setHorizontalLogoPreview(null); name: organization.name || "",
description: organization.description || "",
websiteUrl: organization.websiteUrl || "",
email: organization.email || "",
headquarterAddress: organization.headquarterAddress || "",
});
setLogoPreview(null);
setHorizontalLogoPreview(null);
prevOrgDataRef.current = {
name: organization.name,
description: organization.description,
websiteUrl: organization.websiteUrl,
email: organization.email,
headquarterAddress: organization.headquarterAddress,
};
}
}, [organization, reset]); }, [organization, reset]);
const onSubmit = handleSubmit((data: OrganizationFormData) => { const onSubmit = handleSubmit((data: OrganizationFormData) => {
const uploadables: Record<string, File> = {};
if (logoFile) {
uploadables["input.logo"] = logoFile;
}
if (horizontalLogoFile) {
uploadables["input.horizontalLogoFile"] = horizontalLogoFile;
}
updateOrganization({ updateOrganization({
variables: { variables: {
input: { input: {
@@ -314,27 +330,8 @@ export default function SettingsPage({ queryRef }: Props) {
websiteUrl: data.websiteUrl || undefined, websiteUrl: data.websiteUrl || undefined,
email: data.email || undefined, email: data.email || undefined,
headquarterAddress: data.headquarterAddress || undefined, headquarterAddress: data.headquarterAddress || undefined,
logo: logoFile ? null : undefined,
horizontalLogoFile: horizontalLogoFile ? null : undefined,
}, },
}, },
uploadables: Object.keys(uploadables).length > 0 ? uploadables : undefined,
onError() {
toast({
title: __("Error"),
description: __("Failed to update organization."),
variant: "error",
});
},
onCompleted() {
toast({
title: __("Organization updated"),
description: __(
"Your organization details have been updated successfully."
),
variant: "success",
});
},
}); });
}); });
@@ -343,12 +340,27 @@ export default function SettingsPage({ queryRef }: Props) {
if (!file) { if (!file) {
return; return;
} }
setLogoFile(file);
const reader = new FileReader(); const reader = new FileReader();
reader.onloadend = () => { reader.onloadend = () => {
setLogoPreview(reader.result as string); setLogoPreview(reader.result as string);
}; };
reader.readAsDataURL(file); reader.readAsDataURL(file);
updateOrganization({
variables: {
input: {
organizationId: organization.id,
logoFile: null,
},
},
uploadables: {
"input.logoFile": file,
},
onSuccess: () => {
setLogoPreview(null);
},
});
}; };
const handleHorizontalLogoChange: ChangeEventHandler<HTMLInputElement> = (e) => { const handleHorizontalLogoChange: ChangeEventHandler<HTMLInputElement> = (e) => {
@@ -356,12 +368,27 @@ export default function SettingsPage({ queryRef }: Props) {
if (!file) { if (!file) {
return; return;
} }
setHorizontalLogoFile(file);
const reader = new FileReader(); const reader = new FileReader();
reader.onloadend = () => { reader.onloadend = () => {
setHorizontalLogoPreview(reader.result as string); setHorizontalLogoPreview(reader.result as string);
}; };
reader.readAsDataURL(file); reader.readAsDataURL(file);
updateOrganization({
variables: {
input: {
organizationId: organization.id,
horizontalLogoFile: null,
},
},
uploadables: {
"input.horizontalLogoFile": file,
},
onSuccess: () => {
setHorizontalLogoPreview(null);
},
});
}; };
const deleteDialogRef = useDialogRef(); const deleteDialogRef = useDialogRef();
@@ -416,13 +443,13 @@ export default function SettingsPage({ queryRef }: Props) {
size="xl" size="xl"
/> />
<FileButton <FileButton
disabled={formState.isSubmitting} disabled={formState.isSubmitting || isUpdatingOrganization}
onChange={handleLogoChange} onChange={handleLogoChange}
variant="secondary" variant="secondary"
className="ml-auto" className="ml-auto"
accept="image/png,image/jpeg,image/jpg" accept="image/png,image/jpeg,image/jpg"
> >
{__("Change logo")} {isUpdatingOrganization ? __("Uploading...") : __("Change logo")}
</FileButton> </FileButton>
</div> </div>
</div> </div>
@@ -442,14 +469,18 @@ export default function SettingsPage({ queryRef }: Props) {
</div> </div>
)} )}
<FileButton <FileButton
disabled={formState.isSubmitting} disabled={formState.isSubmitting || isUpdatingOrganization}
onChange={handleHorizontalLogoChange} onChange={handleHorizontalLogoChange}
variant="secondary" variant="secondary"
accept="image/png,image/jpeg,image/jpg" accept="image/png,image/jpeg,image/jpg"
> >
{(horizontalLogoPreview || organization.horizontalLogoUrl) ? __("Change horizontal logo") : __("Upload horizontal logo")} {isUpdatingOrganization
? __("Uploading...")
: (horizontalLogoPreview || organization.horizontalLogoUrl)
? __("Change horizontal logo")
: __("Upload horizontal logo")}
</FileButton> </FileButton>
{(organization.horizontalLogoUrl && !horizontalLogoFile) && ( {organization.horizontalLogoUrl && (
<Dialog <Dialog
ref={deleteDialogRef} ref={deleteDialogRef}
trigger={ trigger={
@@ -533,10 +564,10 @@ export default function SettingsPage({ queryRef }: Props) {
/> />
</div> </div>
{(formState.isDirty || logoFile || horizontalLogoFile) && ( {formState.isDirty && (
<div className="flex justify-end pt-6"> <div className="flex justify-end pt-6">
<Button type="submit" disabled={formState.isSubmitting}> <Button type="submit" disabled={formState.isSubmitting || isUpdatingOrganization}>
{formState.isSubmitting {(formState.isSubmitting || isUpdatingOrganization)
? __("Updating...") ? __("Updating...")
: __("Update Organization")} : __("Update Organization")}
</Button> </Button>

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<ce571f7246b6f7500a132f28c8081f84>> * @generated SignedSource<<ac93ed76dd8e53876d200e40f5b62edb>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -14,7 +14,7 @@ export type UpdateOrganizationInput = {
email?: string | null | undefined; email?: string | null | undefined;
headquarterAddress?: string | null | undefined; headquarterAddress?: string | null | undefined;
horizontalLogoFile?: any | null | undefined; horizontalLogoFile?: any | null | undefined;
logo?: any | null | undefined; logoFile?: any | null | undefined;
name?: string | null | undefined; name?: string | null | undefined;
organizationId: string; organizationId: string;
websiteUrl?: string | null | undefined; websiteUrl?: string | null | undefined;

View File

@@ -83,8 +83,8 @@ export default function AuditDetailsPage(props: Props) {
await updateAudit({ await updateAudit({
id: auditEntry.id, id: auditEntry.id,
name: formData.name, name: formData.name,
validFrom: formatDatetime(formData.validFrom), validFrom: formatDatetime(formData.validFrom) ?? null,
validUntil: formatDatetime(formData.validUntil), validUntil: formatDatetime(formData.validUntil) ?? null,
state: formData.state, state: formData.state,
}); });
reset(formData); reset(formData);

View File

@@ -98,7 +98,7 @@ export default function ContinualImprovementDetailsPage(props: Props) {
referenceId: formData.referenceId, referenceId: formData.referenceId,
description: formData.description || undefined, description: formData.description || undefined,
source: formData.source || undefined, source: formData.source || undefined,
targetDate: formatDatetime(formData.targetDate), targetDate: formatDatetime(formData.targetDate) ?? null,
status: formData.status, status: formData.status,
priority: formData.priority, priority: formData.priority,
ownerId: formData.ownerId, ownerId: formData.ownerId,

View File

@@ -103,8 +103,8 @@ export default function NonconformityDetailsPage(props: Props) {
id: nonconformity.id, id: nonconformity.id,
referenceId: formData.referenceId, referenceId: formData.referenceId,
description: formData.description, description: formData.description,
dateIdentified: formatDatetime(formData.dateIdentified), dateIdentified: formatDatetime(formData.dateIdentified) ?? null,
dueDate: formatDatetime(formData.dueDate), dueDate: formatDatetime(formData.dueDate) ?? null,
rootCause: formData.rootCause, rootCause: formData.rootCause,
correctiveAction: formData.correctiveAction, correctiveAction: formData.correctiveAction,
effectivenessCheck: formData.effectivenessCheck, effectivenessCheck: formData.effectivenessCheck,

View File

@@ -109,8 +109,8 @@ export default function ObligationDetailsPage(props: Props) {
requirement: formData.requirement || undefined, requirement: formData.requirement || undefined,
actionsToBeImplemented: formData.actionsToBeImplemented || undefined, actionsToBeImplemented: formData.actionsToBeImplemented || undefined,
regulator: formData.regulator || undefined, regulator: formData.regulator || undefined,
lastReviewDate: formatDatetime(formData.lastReviewDate), lastReviewDate: formatDatetime(formData.lastReviewDate) ?? null,
dueDate: formatDatetime(formData.dueDate), dueDate: formatDatetime(formData.dueDate) ?? null,
status: formData.status, status: formData.status,
ownerId: formData.ownerId, ownerId: formData.ownerId,
}); });

View File

@@ -50,7 +50,7 @@ type (
Description *string Description *string
Category *string Category *string
Treatment *coredata.RiskTreatment Treatment *coredata.RiskTreatment
OwnerID *gid.GID OwnerID **gid.GID
InherentLikelihood *int InherentLikelihood *int
InherentImpact *int InherentImpact *int
ResidualLikelihood *int ResidualLikelihood *int
@@ -495,12 +495,15 @@ func (s RiskService) Update(
} }
if req.OwnerID != nil { if req.OwnerID != nil {
people := coredata.People{} if *req.OwnerID != nil {
if err := people.LoadByID(ctx, conn, s.svc.scope, *req.OwnerID); err != nil { people := coredata.People{}
return fmt.Errorf("cannot load owner: %w", err) if err := people.LoadByID(ctx, conn, s.svc.scope, **req.OwnerID); err != nil {
return fmt.Errorf("cannot load owner: %w", err)
}
risk.OwnerID = *req.OwnerID
} else {
risk.OwnerID = nil
} }
risk.OwnerID = req.OwnerID
} }
if req.Category != nil { if req.Category != nil {

View File

@@ -46,8 +46,8 @@ type (
Name *string Name *string
Description *string Description *string
State *coredata.TaskState State *coredata.TaskState
TimeEstimate *time.Duration TimeEstimate **time.Duration
Deadline *time.Time Deadline **time.Time
} }
) )
@@ -203,11 +203,11 @@ func (s TaskService) Update(
} }
if req.TimeEstimate != nil { if req.TimeEstimate != nil {
task.TimeEstimate = req.TimeEstimate task.TimeEstimate = *req.TimeEstimate
} }
if req.Deadline != nil { if req.Deadline != nil {
task.Deadline = req.Deadline task.Deadline = *req.Deadline
} }
task.UpdatedAt = time.Now() task.UpdatedAt = time.Now()

View File

@@ -56,22 +56,22 @@ type (
UpdateVendorRequest struct { UpdateVendorRequest struct {
ID gid.GID ID gid.GID
Name *string Name *string
Description *string Description **string
HeadquarterAddress *string HeadquarterAddress **string
LegalName *string LegalName **string
WebsiteURL *string WebsiteURL **string
TermsOfServiceURL *string TermsOfServiceURL **string
Category *coredata.VendorCategory Category *coredata.VendorCategory
PrivacyPolicyURL *string PrivacyPolicyURL **string
ServiceLevelAgreementURL *string ServiceLevelAgreementURL **string
DataProcessingAgreementURL *string DataProcessingAgreementURL **string
BusinessAssociateAgreementURL *string BusinessAssociateAgreementURL **string
SubprocessorsListURL *string SubprocessorsListURL **string
Certifications []string Certifications []string
Countries coredata.CountryCodes Countries coredata.CountryCodes
SecurityPageURL *string SecurityPageURL **string
TrustPageURL *string TrustPageURL **string
StatusPageURL *string StatusPageURL **string
BusinessOwnerID **gid.GID BusinessOwnerID **gid.GID
SecurityOwnerID **gid.GID SecurityOwnerID **gid.GID
ShowOnTrustCenter *bool ShowOnTrustCenter *bool
@@ -222,35 +222,35 @@ func (s VendorService) Update(
} }
if req.Description != nil { if req.Description != nil {
vendor.Description = req.Description vendor.Description = *req.Description
} }
if req.StatusPageURL != nil { if req.StatusPageURL != nil {
vendor.StatusPageURL = req.StatusPageURL vendor.StatusPageURL = *req.StatusPageURL
} }
if req.TermsOfServiceURL != nil { if req.TermsOfServiceURL != nil {
vendor.TermsOfServiceURL = req.TermsOfServiceURL vendor.TermsOfServiceURL = *req.TermsOfServiceURL
} }
if req.PrivacyPolicyURL != nil { if req.PrivacyPolicyURL != nil {
vendor.PrivacyPolicyURL = req.PrivacyPolicyURL vendor.PrivacyPolicyURL = *req.PrivacyPolicyURL
} }
if req.ServiceLevelAgreementURL != nil { if req.ServiceLevelAgreementURL != nil {
vendor.ServiceLevelAgreementURL = req.ServiceLevelAgreementURL vendor.ServiceLevelAgreementURL = *req.ServiceLevelAgreementURL
} }
if req.DataProcessingAgreementURL != nil { if req.DataProcessingAgreementURL != nil {
vendor.DataProcessingAgreementURL = req.DataProcessingAgreementURL vendor.DataProcessingAgreementURL = *req.DataProcessingAgreementURL
} }
if req.BusinessAssociateAgreementURL != nil { if req.BusinessAssociateAgreementURL != nil {
vendor.BusinessAssociateAgreementURL = req.BusinessAssociateAgreementURL vendor.BusinessAssociateAgreementURL = *req.BusinessAssociateAgreementURL
} }
if req.SubprocessorsListURL != nil { if req.SubprocessorsListURL != nil {
vendor.SubprocessorsListURL = req.SubprocessorsListURL vendor.SubprocessorsListURL = *req.SubprocessorsListURL
} }
if req.Category != nil { if req.Category != nil {
@@ -260,7 +260,7 @@ func (s VendorService) Update(
} }
if req.SecurityPageURL != nil { if req.SecurityPageURL != nil {
vendor.SecurityPageURL = req.SecurityPageURL vendor.SecurityPageURL = *req.SecurityPageURL
} }
if req.ShowOnTrustCenter != nil { if req.ShowOnTrustCenter != nil {
@@ -268,23 +268,23 @@ func (s VendorService) Update(
} }
if req.TrustPageURL != nil { if req.TrustPageURL != nil {
vendor.TrustPageURL = req.TrustPageURL vendor.TrustPageURL = *req.TrustPageURL
} }
if req.HeadquarterAddress != nil { if req.HeadquarterAddress != nil {
vendor.HeadquarterAddress = req.HeadquarterAddress vendor.HeadquarterAddress = *req.HeadquarterAddress
} }
if req.LegalName != nil { if req.LegalName != nil {
vendor.LegalName = req.LegalName vendor.LegalName = *req.LegalName
} }
if req.WebsiteURL != nil { if req.WebsiteURL != nil {
vendor.WebsiteURL = req.WebsiteURL vendor.WebsiteURL = *req.WebsiteURL
} }
if req.TermsOfServiceURL != nil { if req.TermsOfServiceURL != nil {
vendor.TermsOfServiceURL = req.TermsOfServiceURL vendor.TermsOfServiceURL = *req.TermsOfServiceURL
} }
if req.Certifications != nil { if req.Certifications != nil {
@@ -295,18 +295,6 @@ func (s VendorService) Update(
vendor.Countries = req.Countries vendor.Countries = req.Countries
} }
if req.StatusPageURL != nil {
vendor.StatusPageURL = req.StatusPageURL
}
if req.SecurityPageURL != nil {
vendor.SecurityPageURL = req.SecurityPageURL
}
if req.TrustPageURL != nil {
vendor.TrustPageURL = req.TrustPageURL
}
if req.BusinessOwnerID != nil { if req.BusinessOwnerID != nil {
if *req.BusinessOwnerID != nil { if *req.BusinessOwnerID != nil {
businessOwner := &coredata.People{} businessOwner := &coredata.People{}

View File

@@ -3093,12 +3093,12 @@ input CreateOrganizationInput {
input UpdateOrganizationInput { input UpdateOrganizationInput {
organizationId: ID! organizationId: ID!
name: String name: String
logo: Upload description: String @goField(omittable: true)
websiteUrl: String @goField(omittable: true)
email: String @goField(omittable: true)
headquarterAddress: String @goField(omittable: true)
logoFile: Upload
horizontalLogoFile: Upload horizontalLogoFile: Upload
description: String
websiteUrl: String
email: String
headquarterAddress: String
} }
input DeleteOrganizationHorizontalLogoInput { input DeleteOrganizationHorizontalLogoInput {
@@ -3189,24 +3189,24 @@ input CreateVendorInput {
input UpdateVendorInput { input UpdateVendorInput {
id: ID! id: ID!
name: String name: String
description: String description: String @goField(omittable: true)
statusPageUrl: String statusPageUrl: String @goField(omittable: true)
termsOfServiceUrl: String termsOfServiceUrl: String @goField(omittable: true)
privacyPolicyUrl: String privacyPolicyUrl: String @goField(omittable: true)
serviceLevelAgreementUrl: String serviceLevelAgreementUrl: String @goField(omittable: true)
dataProcessingAgreementUrl: String dataProcessingAgreementUrl: String @goField(omittable: true)
businessAssociateAgreementUrl: String businessAssociateAgreementUrl: String @goField(omittable: true)
subprocessorsListUrl: String subprocessorsListUrl: String @goField(omittable: true)
websiteUrl: String websiteUrl: String @goField(omittable: true)
legalName: String legalName: String @goField(omittable: true)
headquarterAddress: String headquarterAddress: String @goField(omittable: true)
category: VendorCategory category: VendorCategory
certifications: [String!] certifications: [String!]
countries: [CountryCode!] countries: [CountryCode!]
securityPageUrl: String securityPageUrl: String @goField(omittable: true)
trustPageUrl: String trustPageUrl: String @goField(omittable: true)
businessOwnerId: ID businessOwnerId: ID @goField(omittable: true)
securityOwnerId: ID securityOwnerId: ID @goField(omittable: true)
showOnTrustCenter: Boolean showOnTrustCenter: Boolean
} }
@@ -3224,10 +3224,10 @@ input CreateVendorContactInput {
input UpdateVendorContactInput { input UpdateVendorContactInput {
id: ID! id: ID!
fullName: String fullName: String @goField(omittable: true)
email: String email: String @goField(omittable: true)
phone: String phone: String @goField(omittable: true)
role: String role: String @goField(omittable: true)
} }
input DeleteVendorContactInput { input DeleteVendorContactInput {
@@ -3245,7 +3245,7 @@ input CreateVendorServiceInput {
input UpdateVendorServiceInput { input UpdateVendorServiceInput {
id: ID! id: ID!
name: String name: String
description: String description: String @goField(omittable: true)
url: String url: String
type: String type: String
} }
@@ -3271,9 +3271,9 @@ input UpdatePeopleInput {
primaryEmailAddress: String primaryEmailAddress: String
additionalEmailAddresses: [String!] additionalEmailAddresses: [String!]
kind: PeopleKind kind: PeopleKind
position: String position: String @goField(omittable: true)
contractStartDate: Datetime contractStartDate: Datetime @goField(omittable: true)
contractEndDate: Datetime contractEndDate: Datetime @goField(omittable: true)
} }
input DeletePeopleInput { input DeletePeopleInput {
@@ -3340,8 +3340,8 @@ input UpdateTaskInput {
name: String name: String
description: String description: String
state: TaskState state: TaskState
timeEstimate: Duration timeEstimate: Duration @goField(omittable: true)
deadline: Datetime deadline: Datetime @goField(omittable: true)
} }
input DeleteTaskInput { input DeleteTaskInput {
@@ -3416,7 +3416,7 @@ input UpdateRiskInput {
name: String name: String
description: String description: String
category: String category: String
ownerId: ID ownerId: ID @goField(omittable: true)
treatment: RiskTreatment treatment: RiskTreatment
inherentLikelihood: Int inherentLikelihood: Int
inherentImpact: Int inherentImpact: Int
@@ -3508,8 +3508,8 @@ input UploadVendorBusinessAssociateAgreementInput {
input UpdateVendorBusinessAssociateAgreementInput { input UpdateVendorBusinessAssociateAgreementInput {
vendorId: ID! vendorId: ID!
validFrom: Datetime validFrom: Datetime @goField(omittable: true)
validUntil: Datetime validUntil: Datetime @goField(omittable: true)
} }
input DeleteVendorBusinessAssociateAgreementInput { input DeleteVendorBusinessAssociateAgreementInput {
@@ -3526,8 +3526,8 @@ input UploadVendorDataPrivacyAgreementInput {
input UpdateVendorDataPrivacyAgreementInput { input UpdateVendorDataPrivacyAgreementInput {
vendorId: ID! vendorId: ID!
validFrom: Datetime validFrom: Datetime @goField(omittable: true)
validUntil: Datetime validUntil: Datetime @goField(omittable: true)
} }
input DeleteVendorDataPrivacyAgreementInput { input DeleteVendorDataPrivacyAgreementInput {
@@ -3660,15 +3660,15 @@ input CreateNonconformityInput {
input UpdateNonconformityInput { input UpdateNonconformityInput {
id: ID! id: ID!
referenceId: String referenceId: String
description: String description: String @goField(omittable: true)
dateIdentified: Datetime dateIdentified: Datetime @goField(omittable: true)
rootCause: String rootCause: String
correctiveAction: String correctiveAction: String @goField(omittable: true)
ownerId: ID ownerId: ID
auditId: ID auditId: ID
dueDate: Datetime dueDate: Datetime @goField(omittable: true)
status: NonconformityStatus status: NonconformityStatus
effectivenessCheck: String effectivenessCheck: String @goField(omittable: true)
} }
input DeleteNonconformityInput { input DeleteNonconformityInput {
@@ -3690,14 +3690,14 @@ input CreateObligationInput {
input UpdateObligationInput { input UpdateObligationInput {
id: ID! id: ID!
area: String area: String @goField(omittable: true)
source: String source: String @goField(omittable: true)
requirement: String requirement: String @goField(omittable: true)
actionsToBeImplemented: String actionsToBeImplemented: String @goField(omittable: true)
regulator: String regulator: String @goField(omittable: true)
ownerId: ID ownerId: ID
lastReviewDate: Datetime lastReviewDate: Datetime @goField(omittable: true)
dueDate: Datetime dueDate: Datetime @goField(omittable: true)
status: ObligationStatus status: ObligationStatus
} }
@@ -3719,10 +3719,10 @@ input CreateContinualImprovementInput {
input UpdateContinualImprovementInput { input UpdateContinualImprovementInput {
id: ID! id: ID!
referenceId: String referenceId: String
description: String description: String @goField(omittable: true)
source: String source: String @goField(omittable: true)
ownerId: ID ownerId: ID
targetDate: Datetime targetDate: Datetime @goField(omittable: true)
status: ContinualImprovementStatus status: ContinualImprovementStatus
priority: ContinualImprovementPriority priority: ContinualImprovementPriority
} }
@@ -3753,18 +3753,18 @@ input CreateProcessingActivityInput {
input UpdateProcessingActivityInput { input UpdateProcessingActivityInput {
id: ID! id: ID!
name: String name: String
purpose: String purpose: String @goField(omittable: true)
dataSubjectCategory: String dataSubjectCategory: String @goField(omittable: true)
personalDataCategory: String personalDataCategory: String @goField(omittable: true)
specialOrCriminalData: ProcessingActivitySpecialOrCriminalData specialOrCriminalData: ProcessingActivitySpecialOrCriminalData
consentEvidenceLink: String consentEvidenceLink: String
lawfulBasis: ProcessingActivityLawfulBasis lawfulBasis: ProcessingActivityLawfulBasis
recipients: String recipients: String @goField(omittable: true)
location: String location: String @goField(omittable: true)
internationalTransfers: Boolean internationalTransfers: Boolean
transferSafeguards: ProcessingActivityTransferSafeguards transferSafeguards: ProcessingActivityTransferSafeguards @goField(omittable: true)
retentionPeriod: String retentionPeriod: String @goField(omittable: true)
securityMeasures: String securityMeasures: String @goField(omittable: true)
dataProtectionImpactAssessment: ProcessingActivityDataProtectionImpactAssessment dataProtectionImpactAssessment: ProcessingActivityDataProtectionImpactAssessment
transferImpactAssessment: ProcessingActivityTransferImpactAssessment transferImpactAssessment: ProcessingActivityTransferImpactAssessment
} }

View File

@@ -12144,12 +12144,12 @@ input CreateOrganizationInput {
input UpdateOrganizationInput { input UpdateOrganizationInput {
organizationId: ID! organizationId: ID!
name: String name: String
logo: Upload description: String @goField(omittable: true)
websiteUrl: String @goField(omittable: true)
email: String @goField(omittable: true)
headquarterAddress: String @goField(omittable: true)
logoFile: Upload
horizontalLogoFile: Upload horizontalLogoFile: Upload
description: String
websiteUrl: String
email: String
headquarterAddress: String
} }
input DeleteOrganizationHorizontalLogoInput { input DeleteOrganizationHorizontalLogoInput {
@@ -12240,24 +12240,24 @@ input CreateVendorInput {
input UpdateVendorInput { input UpdateVendorInput {
id: ID! id: ID!
name: String name: String
description: String description: String @goField(omittable: true)
statusPageUrl: String statusPageUrl: String @goField(omittable: true)
termsOfServiceUrl: String termsOfServiceUrl: String @goField(omittable: true)
privacyPolicyUrl: String privacyPolicyUrl: String @goField(omittable: true)
serviceLevelAgreementUrl: String serviceLevelAgreementUrl: String @goField(omittable: true)
dataProcessingAgreementUrl: String dataProcessingAgreementUrl: String @goField(omittable: true)
businessAssociateAgreementUrl: String businessAssociateAgreementUrl: String @goField(omittable: true)
subprocessorsListUrl: String subprocessorsListUrl: String @goField(omittable: true)
websiteUrl: String websiteUrl: String @goField(omittable: true)
legalName: String legalName: String @goField(omittable: true)
headquarterAddress: String headquarterAddress: String @goField(omittable: true)
category: VendorCategory category: VendorCategory
certifications: [String!] certifications: [String!]
countries: [CountryCode!] countries: [CountryCode!]
securityPageUrl: String securityPageUrl: String @goField(omittable: true)
trustPageUrl: String trustPageUrl: String @goField(omittable: true)
businessOwnerId: ID businessOwnerId: ID @goField(omittable: true)
securityOwnerId: ID securityOwnerId: ID @goField(omittable: true)
showOnTrustCenter: Boolean showOnTrustCenter: Boolean
} }
@@ -12275,10 +12275,10 @@ input CreateVendorContactInput {
input UpdateVendorContactInput { input UpdateVendorContactInput {
id: ID! id: ID!
fullName: String fullName: String @goField(omittable: true)
email: String email: String @goField(omittable: true)
phone: String phone: String @goField(omittable: true)
role: String role: String @goField(omittable: true)
} }
input DeleteVendorContactInput { input DeleteVendorContactInput {
@@ -12296,7 +12296,7 @@ input CreateVendorServiceInput {
input UpdateVendorServiceInput { input UpdateVendorServiceInput {
id: ID! id: ID!
name: String name: String
description: String description: String @goField(omittable: true)
url: String url: String
type: String type: String
} }
@@ -12322,9 +12322,9 @@ input UpdatePeopleInput {
primaryEmailAddress: String primaryEmailAddress: String
additionalEmailAddresses: [String!] additionalEmailAddresses: [String!]
kind: PeopleKind kind: PeopleKind
position: String position: String @goField(omittable: true)
contractStartDate: Datetime contractStartDate: Datetime @goField(omittable: true)
contractEndDate: Datetime contractEndDate: Datetime @goField(omittable: true)
} }
input DeletePeopleInput { input DeletePeopleInput {
@@ -12391,8 +12391,8 @@ input UpdateTaskInput {
name: String name: String
description: String description: String
state: TaskState state: TaskState
timeEstimate: Duration timeEstimate: Duration @goField(omittable: true)
deadline: Datetime deadline: Datetime @goField(omittable: true)
} }
input DeleteTaskInput { input DeleteTaskInput {
@@ -12467,7 +12467,7 @@ input UpdateRiskInput {
name: String name: String
description: String description: String
category: String category: String
ownerId: ID ownerId: ID @goField(omittable: true)
treatment: RiskTreatment treatment: RiskTreatment
inherentLikelihood: Int inherentLikelihood: Int
inherentImpact: Int inherentImpact: Int
@@ -12559,8 +12559,8 @@ input UploadVendorBusinessAssociateAgreementInput {
input UpdateVendorBusinessAssociateAgreementInput { input UpdateVendorBusinessAssociateAgreementInput {
vendorId: ID! vendorId: ID!
validFrom: Datetime validFrom: Datetime @goField(omittable: true)
validUntil: Datetime validUntil: Datetime @goField(omittable: true)
} }
input DeleteVendorBusinessAssociateAgreementInput { input DeleteVendorBusinessAssociateAgreementInput {
@@ -12577,8 +12577,8 @@ input UploadVendorDataPrivacyAgreementInput {
input UpdateVendorDataPrivacyAgreementInput { input UpdateVendorDataPrivacyAgreementInput {
vendorId: ID! vendorId: ID!
validFrom: Datetime validFrom: Datetime @goField(omittable: true)
validUntil: Datetime validUntil: Datetime @goField(omittable: true)
} }
input DeleteVendorDataPrivacyAgreementInput { input DeleteVendorDataPrivacyAgreementInput {
@@ -12711,15 +12711,15 @@ input CreateNonconformityInput {
input UpdateNonconformityInput { input UpdateNonconformityInput {
id: ID! id: ID!
referenceId: String referenceId: String
description: String description: String @goField(omittable: true)
dateIdentified: Datetime dateIdentified: Datetime @goField(omittable: true)
rootCause: String rootCause: String
correctiveAction: String correctiveAction: String @goField(omittable: true)
ownerId: ID ownerId: ID
auditId: ID auditId: ID
dueDate: Datetime dueDate: Datetime @goField(omittable: true)
status: NonconformityStatus status: NonconformityStatus
effectivenessCheck: String effectivenessCheck: String @goField(omittable: true)
} }
input DeleteNonconformityInput { input DeleteNonconformityInput {
@@ -12741,14 +12741,14 @@ input CreateObligationInput {
input UpdateObligationInput { input UpdateObligationInput {
id: ID! id: ID!
area: String area: String @goField(omittable: true)
source: String source: String @goField(omittable: true)
requirement: String requirement: String @goField(omittable: true)
actionsToBeImplemented: String actionsToBeImplemented: String @goField(omittable: true)
regulator: String regulator: String @goField(omittable: true)
ownerId: ID ownerId: ID
lastReviewDate: Datetime lastReviewDate: Datetime @goField(omittable: true)
dueDate: Datetime dueDate: Datetime @goField(omittable: true)
status: ObligationStatus status: ObligationStatus
} }
@@ -12770,10 +12770,10 @@ input CreateContinualImprovementInput {
input UpdateContinualImprovementInput { input UpdateContinualImprovementInput {
id: ID! id: ID!
referenceId: String referenceId: String
description: String description: String @goField(omittable: true)
source: String source: String @goField(omittable: true)
ownerId: ID ownerId: ID
targetDate: Datetime targetDate: Datetime @goField(omittable: true)
status: ContinualImprovementStatus status: ContinualImprovementStatus
priority: ContinualImprovementPriority priority: ContinualImprovementPriority
} }
@@ -12804,18 +12804,18 @@ input CreateProcessingActivityInput {
input UpdateProcessingActivityInput { input UpdateProcessingActivityInput {
id: ID! id: ID!
name: String name: String
purpose: String purpose: String @goField(omittable: true)
dataSubjectCategory: String dataSubjectCategory: String @goField(omittable: true)
personalDataCategory: String personalDataCategory: String @goField(omittable: true)
specialOrCriminalData: ProcessingActivitySpecialOrCriminalData specialOrCriminalData: ProcessingActivitySpecialOrCriminalData
consentEvidenceLink: String consentEvidenceLink: String
lawfulBasis: ProcessingActivityLawfulBasis lawfulBasis: ProcessingActivityLawfulBasis
recipients: String recipients: String @goField(omittable: true)
location: String location: String @goField(omittable: true)
internationalTransfers: Boolean internationalTransfers: Boolean
transferSafeguards: ProcessingActivityTransferSafeguards transferSafeguards: ProcessingActivityTransferSafeguards @goField(omittable: true)
retentionPeriod: String retentionPeriod: String @goField(omittable: true)
securityMeasures: String securityMeasures: String @goField(omittable: true)
dataProtectionImpactAssessment: ProcessingActivityDataProtectionImpactAssessment dataProtectionImpactAssessment: ProcessingActivityDataProtectionImpactAssessment
transferImpactAssessment: ProcessingActivityTransferImpactAssessment transferImpactAssessment: ProcessingActivityTransferImpactAssessment
} }
@@ -73255,14 +73255,14 @@ func (ec *executionContext) unmarshalInputUpdateContinualImprovementInput(ctx co
if err != nil { if err != nil {
return it, err return it, err
} }
it.Description = data it.Description = graphql.OmittableOf(data)
case "source": case "source":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Source = data it.Source = graphql.OmittableOf(data)
case "ownerId": case "ownerId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v) data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
@@ -73276,7 +73276,7 @@ func (ec *executionContext) unmarshalInputUpdateContinualImprovementInput(ctx co
if err != nil { if err != nil {
return it, err return it, err
} }
it.TargetDate = data it.TargetDate = graphql.OmittableOf(data)
case "status": case "status":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
data, err := ec.unmarshalOContinualImprovementStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx, v) data, err := ec.unmarshalOContinualImprovementStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx, v)
@@ -73640,14 +73640,14 @@ func (ec *executionContext) unmarshalInputUpdateNonconformityInput(ctx context.C
if err != nil { if err != nil {
return it, err return it, err
} }
it.Description = data it.Description = graphql.OmittableOf(data)
case "dateIdentified": case "dateIdentified":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateIdentified")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateIdentified"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.DateIdentified = data it.DateIdentified = graphql.OmittableOf(data)
case "rootCause": case "rootCause":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rootCause")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rootCause"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
@@ -73661,7 +73661,7 @@ func (ec *executionContext) unmarshalInputUpdateNonconformityInput(ctx context.C
if err != nil { if err != nil {
return it, err return it, err
} }
it.CorrectiveAction = data it.CorrectiveAction = graphql.OmittableOf(data)
case "ownerId": case "ownerId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v) data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
@@ -73682,7 +73682,7 @@ func (ec *executionContext) unmarshalInputUpdateNonconformityInput(ctx context.C
if err != nil { if err != nil {
return it, err return it, err
} }
it.DueDate = data it.DueDate = graphql.OmittableOf(data)
case "status": case "status":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
data, err := ec.unmarshalONonconformityStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx, v) data, err := ec.unmarshalONonconformityStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx, v)
@@ -73696,7 +73696,7 @@ func (ec *executionContext) unmarshalInputUpdateNonconformityInput(ctx context.C
if err != nil { if err != nil {
return it, err return it, err
} }
it.EffectivenessCheck = data it.EffectivenessCheck = graphql.OmittableOf(data)
} }
} }
@@ -73730,35 +73730,35 @@ func (ec *executionContext) unmarshalInputUpdateObligationInput(ctx context.Cont
if err != nil { if err != nil {
return it, err return it, err
} }
it.Area = data it.Area = graphql.OmittableOf(data)
case "source": case "source":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Source = data it.Source = graphql.OmittableOf(data)
case "requirement": case "requirement":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requirement")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requirement"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Requirement = data it.Requirement = graphql.OmittableOf(data)
case "actionsToBeImplemented": case "actionsToBeImplemented":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionsToBeImplemented")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionsToBeImplemented"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.ActionsToBeImplemented = data it.ActionsToBeImplemented = graphql.OmittableOf(data)
case "regulator": case "regulator":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regulator")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regulator"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Regulator = data it.Regulator = graphql.OmittableOf(data)
case "ownerId": case "ownerId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v) data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
@@ -73772,14 +73772,14 @@ func (ec *executionContext) unmarshalInputUpdateObligationInput(ctx context.Cont
if err != nil { if err != nil {
return it, err return it, err
} }
it.LastReviewDate = data it.LastReviewDate = graphql.OmittableOf(data)
case "dueDate": case "dueDate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.DueDate = data it.DueDate = graphql.OmittableOf(data)
case "status": case "status":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
data, err := ec.unmarshalOObligationStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx, v) data, err := ec.unmarshalOObligationStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx, v)
@@ -73800,7 +73800,7 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co
asMap[k] = v asMap[k] = v
} }
fieldsInOrder := [...]string{"organizationId", "name", "logo", "horizontalLogoFile", "description", "websiteUrl", "email", "headquarterAddress"} fieldsInOrder := [...]string{"organizationId", "name", "description", "websiteUrl", "email", "headquarterAddress", "logoFile", "horizontalLogoFile"}
for _, k := range fieldsInOrder { for _, k := range fieldsInOrder {
v, ok := asMap[k] v, ok := asMap[k]
if !ok { if !ok {
@@ -73821,13 +73821,41 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co
return it, err return it, err
} }
it.Name = data it.Name = data
case "logo": case "description":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logo")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Description = graphql.OmittableOf(data)
case "websiteUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.WebsiteURL = graphql.OmittableOf(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 = graphql.OmittableOf(data)
case "headquarterAddress":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.HeadquarterAddress = graphql.OmittableOf(data)
case "logoFile":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile"))
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Logo = data it.LogoFile = data
case "horizontalLogoFile": case "horizontalLogoFile":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("horizontalLogoFile")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("horizontalLogoFile"))
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
@@ -73835,34 +73863,6 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co
return it, err return it, err
} }
it.HorizontalLogoFile = data it.HorizontalLogoFile = 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 "websiteUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.WebsiteURL = 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 "headquarterAddress":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.HeadquarterAddress = data
} }
} }
@@ -73924,21 +73924,21 @@ func (ec *executionContext) unmarshalInputUpdatePeopleInput(ctx context.Context,
if err != nil { if err != nil {
return it, err return it, err
} }
it.Position = data it.Position = graphql.OmittableOf(data)
case "contractStartDate": case "contractStartDate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.ContractStartDate = data it.ContractStartDate = graphql.OmittableOf(data)
case "contractEndDate": case "contractEndDate":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.ContractEndDate = data it.ContractEndDate = graphql.OmittableOf(data)
} }
} }
@@ -73979,21 +73979,21 @@ func (ec *executionContext) unmarshalInputUpdateProcessingActivityInput(ctx cont
if err != nil { if err != nil {
return it, err return it, err
} }
it.Purpose = data it.Purpose = graphql.OmittableOf(data)
case "dataSubjectCategory": case "dataSubjectCategory":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjectCategory")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjectCategory"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.DataSubjectCategory = data it.DataSubjectCategory = graphql.OmittableOf(data)
case "personalDataCategory": case "personalDataCategory":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalDataCategory")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalDataCategory"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.PersonalDataCategory = data it.PersonalDataCategory = graphql.OmittableOf(data)
case "specialOrCriminalData": case "specialOrCriminalData":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("specialOrCriminalData")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("specialOrCriminalData"))
data, err := ec.unmarshalOProcessingActivitySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalData(ctx, v) data, err := ec.unmarshalOProcessingActivitySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalData(ctx, v)
@@ -74021,14 +74021,14 @@ func (ec *executionContext) unmarshalInputUpdateProcessingActivityInput(ctx cont
if err != nil { if err != nil {
return it, err return it, err
} }
it.Recipients = data it.Recipients = graphql.OmittableOf(data)
case "location": case "location":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Location = data it.Location = graphql.OmittableOf(data)
case "internationalTransfers": case "internationalTransfers":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internationalTransfers")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internationalTransfers"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
@@ -74042,21 +74042,21 @@ func (ec *executionContext) unmarshalInputUpdateProcessingActivityInput(ctx cont
if err != nil { if err != nil {
return it, err return it, err
} }
it.TransferSafeguards = data it.TransferSafeguards = graphql.OmittableOf(data)
case "retentionPeriod": case "retentionPeriod":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retentionPeriod")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retentionPeriod"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.RetentionPeriod = data it.RetentionPeriod = graphql.OmittableOf(data)
case "securityMeasures": case "securityMeasures":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityMeasures")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityMeasures"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.SecurityMeasures = data it.SecurityMeasures = graphql.OmittableOf(data)
case "dataProtectionImpactAssessment": case "dataProtectionImpactAssessment":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessment")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessment"))
data, err := ec.unmarshalOProcessingActivityDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx, v) data, err := ec.unmarshalOProcessingActivityDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx, v)
@@ -74125,7 +74125,7 @@ func (ec *executionContext) unmarshalInputUpdateRiskInput(ctx context.Context, o
if err != nil { if err != nil {
return it, err return it, err
} }
it.OwnerID = data it.OwnerID = graphql.OmittableOf(data)
case "treatment": case "treatment":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("treatment")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("treatment"))
data, err := ec.unmarshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, v) data, err := ec.unmarshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, v)
@@ -74222,14 +74222,14 @@ func (ec *executionContext) unmarshalInputUpdateTaskInput(ctx context.Context, o
if err != nil { if err != nil {
return it, err return it, err
} }
it.TimeEstimate = data it.TimeEstimate = graphql.OmittableOf(data)
case "deadline": case "deadline":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Deadline = data it.Deadline = graphql.OmittableOf(data)
} }
} }
@@ -74407,14 +74407,14 @@ func (ec *executionContext) unmarshalInputUpdateVendorBusinessAssociateAgreement
if err != nil { if err != nil {
return it, err return it, err
} }
it.ValidFrom = data it.ValidFrom = graphql.OmittableOf(data)
case "validUntil": case "validUntil":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.ValidUntil = data it.ValidUntil = graphql.OmittableOf(data)
} }
} }
@@ -74448,28 +74448,28 @@ func (ec *executionContext) unmarshalInputUpdateVendorContactInput(ctx context.C
if err != nil { if err != nil {
return it, err return it, err
} }
it.FullName = data it.FullName = graphql.OmittableOf(data)
case "email": case "email":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Email = data it.Email = graphql.OmittableOf(data)
case "phone": case "phone":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Phone = data it.Phone = graphql.OmittableOf(data)
case "role": case "role":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.Role = data it.Role = graphql.OmittableOf(data)
} }
} }
@@ -74503,14 +74503,14 @@ func (ec *executionContext) unmarshalInputUpdateVendorDataPrivacyAgreementInput(
if err != nil { if err != nil {
return it, err return it, err
} }
it.ValidFrom = data it.ValidFrom = graphql.OmittableOf(data)
case "validUntil": case "validUntil":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil"))
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.ValidUntil = data it.ValidUntil = graphql.OmittableOf(data)
} }
} }
@@ -74551,77 +74551,77 @@ func (ec *executionContext) unmarshalInputUpdateVendorInput(ctx context.Context,
if err != nil { if err != nil {
return it, err return it, err
} }
it.Description = data it.Description = graphql.OmittableOf(data)
case "statusPageUrl": case "statusPageUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusPageUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusPageUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.StatusPageURL = data it.StatusPageURL = graphql.OmittableOf(data)
case "termsOfServiceUrl": case "termsOfServiceUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("termsOfServiceUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("termsOfServiceUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.TermsOfServiceURL = data it.TermsOfServiceURL = graphql.OmittableOf(data)
case "privacyPolicyUrl": case "privacyPolicyUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privacyPolicyUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privacyPolicyUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.PrivacyPolicyURL = data it.PrivacyPolicyURL = graphql.OmittableOf(data)
case "serviceLevelAgreementUrl": case "serviceLevelAgreementUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceLevelAgreementUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceLevelAgreementUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.ServiceLevelAgreementURL = data it.ServiceLevelAgreementURL = graphql.OmittableOf(data)
case "dataProcessingAgreementUrl": case "dataProcessingAgreementUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProcessingAgreementUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProcessingAgreementUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.DataProcessingAgreementURL = data it.DataProcessingAgreementURL = graphql.OmittableOf(data)
case "businessAssociateAgreementUrl": case "businessAssociateAgreementUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessAssociateAgreementUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessAssociateAgreementUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.BusinessAssociateAgreementURL = data it.BusinessAssociateAgreementURL = graphql.OmittableOf(data)
case "subprocessorsListUrl": case "subprocessorsListUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorsListUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorsListUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.SubprocessorsListURL = data it.SubprocessorsListURL = graphql.OmittableOf(data)
case "websiteUrl": case "websiteUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.WebsiteURL = data it.WebsiteURL = graphql.OmittableOf(data)
case "legalName": case "legalName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalName")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.LegalName = data it.LegalName = graphql.OmittableOf(data)
case "headquarterAddress": case "headquarterAddress":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.HeadquarterAddress = data it.HeadquarterAddress = graphql.OmittableOf(data)
case "category": case "category":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category"))
data, err := ec.unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx, v) data, err := ec.unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx, v)
@@ -74649,28 +74649,28 @@ func (ec *executionContext) unmarshalInputUpdateVendorInput(ctx context.Context,
if err != nil { if err != nil {
return it, err return it, err
} }
it.SecurityPageURL = data it.SecurityPageURL = graphql.OmittableOf(data)
case "trustPageUrl": case "trustPageUrl":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustPageUrl")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustPageUrl"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.TrustPageURL = data it.TrustPageURL = graphql.OmittableOf(data)
case "businessOwnerId": case "businessOwnerId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessOwnerId")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessOwnerId"))
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v) data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.BusinessOwnerID = data it.BusinessOwnerID = graphql.OmittableOf(data)
case "securityOwnerId": case "securityOwnerId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityOwnerId")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityOwnerId"))
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v) data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
if err != nil { if err != nil {
return it, err return it, err
} }
it.SecurityOwnerID = data it.SecurityOwnerID = graphql.OmittableOf(data)
case "showOnTrustCenter": case "showOnTrustCenter":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showOnTrustCenter")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showOnTrustCenter"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
@@ -74718,7 +74718,7 @@ func (ec *executionContext) unmarshalInputUpdateVendorServiceInput(ctx context.C
if err != nil { if err != nil {
return it, err return it, err
} }
it.Description = data it.Description = graphql.OmittableOf(data)
case "url": case "url":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v) data, err := ec.unmarshalOString2ᚖstring(ctx, v)

View File

@@ -1751,10 +1751,10 @@ type UpdateAuditPayload struct {
type UpdateContinualImprovementInput struct { type UpdateContinualImprovementInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
ReferenceID *string `json:"referenceId,omitempty"` ReferenceID *string `json:"referenceId,omitempty"`
Description *string `json:"description,omitempty"` Description graphql.Omittable[*string] `json:"description,omitempty"`
Source *string `json:"source,omitempty"` Source graphql.Omittable[*string] `json:"source,omitempty"`
OwnerID *gid.GID `json:"ownerId,omitempty"` OwnerID *gid.GID `json:"ownerId,omitempty"`
TargetDate *time.Time `json:"targetDate,omitempty"` TargetDate graphql.Omittable[*time.Time] `json:"targetDate,omitempty"`
Status *coredata.ContinualImprovementStatus `json:"status,omitempty"` Status *coredata.ContinualImprovementStatus `json:"status,omitempty"`
Priority *coredata.ContinualImprovementPriority `json:"priority,omitempty"` Priority *coredata.ContinualImprovementPriority `json:"priority,omitempty"`
} }
@@ -1835,15 +1835,15 @@ type UpdateMeasurePayload struct {
type UpdateNonconformityInput struct { type UpdateNonconformityInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
ReferenceID *string `json:"referenceId,omitempty"` ReferenceID *string `json:"referenceId,omitempty"`
Description *string `json:"description,omitempty"` Description graphql.Omittable[*string] `json:"description,omitempty"`
DateIdentified *time.Time `json:"dateIdentified,omitempty"` DateIdentified graphql.Omittable[*time.Time] `json:"dateIdentified,omitempty"`
RootCause *string `json:"rootCause,omitempty"` RootCause *string `json:"rootCause,omitempty"`
CorrectiveAction *string `json:"correctiveAction,omitempty"` CorrectiveAction graphql.Omittable[*string] `json:"correctiveAction,omitempty"`
OwnerID *gid.GID `json:"ownerId,omitempty"` OwnerID *gid.GID `json:"ownerId,omitempty"`
AuditID *gid.GID `json:"auditId,omitempty"` AuditID *gid.GID `json:"auditId,omitempty"`
DueDate *time.Time `json:"dueDate,omitempty"` DueDate graphql.Omittable[*time.Time] `json:"dueDate,omitempty"`
Status *coredata.NonconformityStatus `json:"status,omitempty"` Status *coredata.NonconformityStatus `json:"status,omitempty"`
EffectivenessCheck *string `json:"effectivenessCheck,omitempty"` EffectivenessCheck graphql.Omittable[*string] `json:"effectivenessCheck,omitempty"`
} }
type UpdateNonconformityPayload struct { type UpdateNonconformityPayload struct {
@@ -1851,16 +1851,16 @@ type UpdateNonconformityPayload struct {
} }
type UpdateObligationInput struct { type UpdateObligationInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
Area *string `json:"area,omitempty"` Area graphql.Omittable[*string] `json:"area,omitempty"`
Source *string `json:"source,omitempty"` Source graphql.Omittable[*string] `json:"source,omitempty"`
Requirement *string `json:"requirement,omitempty"` Requirement graphql.Omittable[*string] `json:"requirement,omitempty"`
ActionsToBeImplemented *string `json:"actionsToBeImplemented,omitempty"` ActionsToBeImplemented graphql.Omittable[*string] `json:"actionsToBeImplemented,omitempty"`
Regulator *string `json:"regulator,omitempty"` Regulator graphql.Omittable[*string] `json:"regulator,omitempty"`
OwnerID *gid.GID `json:"ownerId,omitempty"` OwnerID *gid.GID `json:"ownerId,omitempty"`
LastReviewDate *time.Time `json:"lastReviewDate,omitempty"` LastReviewDate graphql.Omittable[*time.Time] `json:"lastReviewDate,omitempty"`
DueDate *time.Time `json:"dueDate,omitempty"` DueDate graphql.Omittable[*time.Time] `json:"dueDate,omitempty"`
Status *coredata.ObligationStatus `json:"status,omitempty"` Status *coredata.ObligationStatus `json:"status,omitempty"`
} }
type UpdateObligationPayload struct { type UpdateObligationPayload struct {
@@ -1868,14 +1868,14 @@ type UpdateObligationPayload struct {
} }
type UpdateOrganizationInput struct { type UpdateOrganizationInput struct {
OrganizationID gid.GID `json:"organizationId"` OrganizationID gid.GID `json:"organizationId"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
Logo *graphql.Upload `json:"logo,omitempty"` Description graphql.Omittable[*string] `json:"description,omitempty"`
HorizontalLogoFile *graphql.Upload `json:"horizontalLogoFile,omitempty"` WebsiteURL graphql.Omittable[*string] `json:"websiteUrl,omitempty"`
Description *string `json:"description,omitempty"` Email graphql.Omittable[*string] `json:"email,omitempty"`
WebsiteURL *string `json:"websiteUrl,omitempty"` HeadquarterAddress graphql.Omittable[*string] `json:"headquarterAddress,omitempty"`
Email *string `json:"email,omitempty"` LogoFile *graphql.Upload `json:"logoFile,omitempty"`
HeadquarterAddress *string `json:"headquarterAddress,omitempty"` HorizontalLogoFile *graphql.Upload `json:"horizontalLogoFile,omitempty"`
} }
type UpdateOrganizationPayload struct { type UpdateOrganizationPayload struct {
@@ -1883,14 +1883,14 @@ type UpdateOrganizationPayload struct {
} }
type UpdatePeopleInput struct { type UpdatePeopleInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
FullName *string `json:"fullName,omitempty"` FullName *string `json:"fullName,omitempty"`
PrimaryEmailAddress *string `json:"primaryEmailAddress,omitempty"` PrimaryEmailAddress *string `json:"primaryEmailAddress,omitempty"`
AdditionalEmailAddresses []string `json:"additionalEmailAddresses,omitempty"` AdditionalEmailAddresses []string `json:"additionalEmailAddresses,omitempty"`
Kind *coredata.PeopleKind `json:"kind,omitempty"` Kind *coredata.PeopleKind `json:"kind,omitempty"`
Position *string `json:"position,omitempty"` Position graphql.Omittable[*string] `json:"position,omitempty"`
ContractStartDate *time.Time `json:"contractStartDate,omitempty"` ContractStartDate graphql.Omittable[*time.Time] `json:"contractStartDate,omitempty"`
ContractEndDate *time.Time `json:"contractEndDate,omitempty"` ContractEndDate graphql.Omittable[*time.Time] `json:"contractEndDate,omitempty"`
} }
type UpdatePeoplePayload struct { type UpdatePeoplePayload struct {
@@ -1898,22 +1898,22 @@ type UpdatePeoplePayload struct {
} }
type UpdateProcessingActivityInput struct { type UpdateProcessingActivityInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
Purpose *string `json:"purpose,omitempty"` Purpose graphql.Omittable[*string] `json:"purpose,omitempty"`
DataSubjectCategory *string `json:"dataSubjectCategory,omitempty"` DataSubjectCategory graphql.Omittable[*string] `json:"dataSubjectCategory,omitempty"`
PersonalDataCategory *string `json:"personalDataCategory,omitempty"` PersonalDataCategory graphql.Omittable[*string] `json:"personalDataCategory,omitempty"`
SpecialOrCriminalData *coredata.ProcessingActivitySpecialOrCriminalData `json:"specialOrCriminalData,omitempty"` SpecialOrCriminalData *coredata.ProcessingActivitySpecialOrCriminalData `json:"specialOrCriminalData,omitempty"`
ConsentEvidenceLink *string `json:"consentEvidenceLink,omitempty"` ConsentEvidenceLink *string `json:"consentEvidenceLink,omitempty"`
LawfulBasis *coredata.ProcessingActivityLawfulBasis `json:"lawfulBasis,omitempty"` LawfulBasis *coredata.ProcessingActivityLawfulBasis `json:"lawfulBasis,omitempty"`
Recipients *string `json:"recipients,omitempty"` Recipients graphql.Omittable[*string] `json:"recipients,omitempty"`
Location *string `json:"location,omitempty"` Location graphql.Omittable[*string] `json:"location,omitempty"`
InternationalTransfers *bool `json:"internationalTransfers,omitempty"` InternationalTransfers *bool `json:"internationalTransfers,omitempty"`
TransferSafeguards *coredata.ProcessingActivityTransferSafeguards `json:"transferSafeguards,omitempty"` TransferSafeguards graphql.Omittable[*coredata.ProcessingActivityTransferSafeguards] `json:"transferSafeguards,omitempty"`
RetentionPeriod *string `json:"retentionPeriod,omitempty"` RetentionPeriod graphql.Omittable[*string] `json:"retentionPeriod,omitempty"`
SecurityMeasures *string `json:"securityMeasures,omitempty"` SecurityMeasures graphql.Omittable[*string] `json:"securityMeasures,omitempty"`
DataProtectionImpactAssessment *coredata.ProcessingActivityDataProtectionImpactAssessment `json:"dataProtectionImpactAssessment,omitempty"` DataProtectionImpactAssessment *coredata.ProcessingActivityDataProtectionImpactAssessment `json:"dataProtectionImpactAssessment,omitempty"`
TransferImpactAssessment *coredata.ProcessingActivityTransferImpactAssessment `json:"transferImpactAssessment,omitempty"` TransferImpactAssessment *coredata.ProcessingActivityTransferImpactAssessment `json:"transferImpactAssessment,omitempty"`
} }
type UpdateProcessingActivityPayload struct { type UpdateProcessingActivityPayload struct {
@@ -1921,17 +1921,17 @@ type UpdateProcessingActivityPayload struct {
} }
type UpdateRiskInput struct { type UpdateRiskInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"` Description *string `json:"description,omitempty"`
Category *string `json:"category,omitempty"` Category *string `json:"category,omitempty"`
OwnerID *gid.GID `json:"ownerId,omitempty"` OwnerID graphql.Omittable[*gid.GID] `json:"ownerId,omitempty"`
Treatment *coredata.RiskTreatment `json:"treatment,omitempty"` Treatment *coredata.RiskTreatment `json:"treatment,omitempty"`
InherentLikelihood *int `json:"inherentLikelihood,omitempty"` InherentLikelihood *int `json:"inherentLikelihood,omitempty"`
InherentImpact *int `json:"inherentImpact,omitempty"` InherentImpact *int `json:"inherentImpact,omitempty"`
ResidualLikelihood *int `json:"residualLikelihood,omitempty"` ResidualLikelihood *int `json:"residualLikelihood,omitempty"`
ResidualImpact *int `json:"residualImpact,omitempty"` ResidualImpact *int `json:"residualImpact,omitempty"`
Note *string `json:"note,omitempty"` Note *string `json:"note,omitempty"`
} }
type UpdateRiskPayload struct { type UpdateRiskPayload struct {
@@ -1939,12 +1939,12 @@ type UpdateRiskPayload struct {
} }
type UpdateTaskInput struct { type UpdateTaskInput struct {
TaskID gid.GID `json:"taskId"` TaskID gid.GID `json:"taskId"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"` Description *string `json:"description,omitempty"`
State *coredata.TaskState `json:"state,omitempty"` State *coredata.TaskState `json:"state,omitempty"`
TimeEstimate *time.Duration `json:"timeEstimate,omitempty"` TimeEstimate graphql.Omittable[*time.Duration] `json:"timeEstimate,omitempty"`
Deadline *time.Time `json:"deadline,omitempty"` Deadline graphql.Omittable[*time.Time] `json:"deadline,omitempty"`
} }
type UpdateTaskPayload struct { type UpdateTaskPayload struct {
@@ -1985,9 +1985,9 @@ type UpdateTrustCenterReferencePayload struct {
} }
type UpdateVendorBusinessAssociateAgreementInput struct { type UpdateVendorBusinessAssociateAgreementInput struct {
VendorID gid.GID `json:"vendorId"` VendorID gid.GID `json:"vendorId"`
ValidFrom *time.Time `json:"validFrom,omitempty"` ValidFrom graphql.Omittable[*time.Time] `json:"validFrom,omitempty"`
ValidUntil *time.Time `json:"validUntil,omitempty"` ValidUntil graphql.Omittable[*time.Time] `json:"validUntil,omitempty"`
} }
type UpdateVendorBusinessAssociateAgreementPayload struct { type UpdateVendorBusinessAssociateAgreementPayload struct {
@@ -1995,11 +1995,11 @@ type UpdateVendorBusinessAssociateAgreementPayload struct {
} }
type UpdateVendorContactInput struct { type UpdateVendorContactInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
FullName *string `json:"fullName,omitempty"` FullName graphql.Omittable[*string] `json:"fullName,omitempty"`
Email *string `json:"email,omitempty"` Email graphql.Omittable[*string] `json:"email,omitempty"`
Phone *string `json:"phone,omitempty"` Phone graphql.Omittable[*string] `json:"phone,omitempty"`
Role *string `json:"role,omitempty"` Role graphql.Omittable[*string] `json:"role,omitempty"`
} }
type UpdateVendorContactPayload struct { type UpdateVendorContactPayload struct {
@@ -2007,9 +2007,9 @@ type UpdateVendorContactPayload struct {
} }
type UpdateVendorDataPrivacyAgreementInput struct { type UpdateVendorDataPrivacyAgreementInput struct {
VendorID gid.GID `json:"vendorId"` VendorID gid.GID `json:"vendorId"`
ValidFrom *time.Time `json:"validFrom,omitempty"` ValidFrom graphql.Omittable[*time.Time] `json:"validFrom,omitempty"`
ValidUntil *time.Time `json:"validUntil,omitempty"` ValidUntil graphql.Omittable[*time.Time] `json:"validUntil,omitempty"`
} }
type UpdateVendorDataPrivacyAgreementPayload struct { type UpdateVendorDataPrivacyAgreementPayload struct {
@@ -2017,27 +2017,27 @@ type UpdateVendorDataPrivacyAgreementPayload struct {
} }
type UpdateVendorInput struct { type UpdateVendorInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"` Description graphql.Omittable[*string] `json:"description,omitempty"`
StatusPageURL *string `json:"statusPageUrl,omitempty"` StatusPageURL graphql.Omittable[*string] `json:"statusPageUrl,omitempty"`
TermsOfServiceURL *string `json:"termsOfServiceUrl,omitempty"` TermsOfServiceURL graphql.Omittable[*string] `json:"termsOfServiceUrl,omitempty"`
PrivacyPolicyURL *string `json:"privacyPolicyUrl,omitempty"` PrivacyPolicyURL graphql.Omittable[*string] `json:"privacyPolicyUrl,omitempty"`
ServiceLevelAgreementURL *string `json:"serviceLevelAgreementUrl,omitempty"` ServiceLevelAgreementURL graphql.Omittable[*string] `json:"serviceLevelAgreementUrl,omitempty"`
DataProcessingAgreementURL *string `json:"dataProcessingAgreementUrl,omitempty"` DataProcessingAgreementURL graphql.Omittable[*string] `json:"dataProcessingAgreementUrl,omitempty"`
BusinessAssociateAgreementURL *string `json:"businessAssociateAgreementUrl,omitempty"` BusinessAssociateAgreementURL graphql.Omittable[*string] `json:"businessAssociateAgreementUrl,omitempty"`
SubprocessorsListURL *string `json:"subprocessorsListUrl,omitempty"` SubprocessorsListURL graphql.Omittable[*string] `json:"subprocessorsListUrl,omitempty"`
WebsiteURL *string `json:"websiteUrl,omitempty"` WebsiteURL graphql.Omittable[*string] `json:"websiteUrl,omitempty"`
LegalName *string `json:"legalName,omitempty"` LegalName graphql.Omittable[*string] `json:"legalName,omitempty"`
HeadquarterAddress *string `json:"headquarterAddress,omitempty"` HeadquarterAddress graphql.Omittable[*string] `json:"headquarterAddress,omitempty"`
Category *coredata.VendorCategory `json:"category,omitempty"` Category *coredata.VendorCategory `json:"category,omitempty"`
Certifications []string `json:"certifications,omitempty"` Certifications []string `json:"certifications,omitempty"`
Countries []coredata.CountryCode `json:"countries,omitempty"` Countries []coredata.CountryCode `json:"countries,omitempty"`
SecurityPageURL *string `json:"securityPageUrl,omitempty"` SecurityPageURL graphql.Omittable[*string] `json:"securityPageUrl,omitempty"`
TrustPageURL *string `json:"trustPageUrl,omitempty"` TrustPageURL graphql.Omittable[*string] `json:"trustPageUrl,omitempty"`
BusinessOwnerID *gid.GID `json:"businessOwnerId,omitempty"` BusinessOwnerID graphql.Omittable[*gid.GID] `json:"businessOwnerId,omitempty"`
SecurityOwnerID *gid.GID `json:"securityOwnerId,omitempty"` SecurityOwnerID graphql.Omittable[*gid.GID] `json:"securityOwnerId,omitempty"`
ShowOnTrustCenter *bool `json:"showOnTrustCenter,omitempty"` ShowOnTrustCenter *bool `json:"showOnTrustCenter,omitempty"`
} }
type UpdateVendorPayload struct { type UpdateVendorPayload struct {
@@ -2045,11 +2045,11 @@ type UpdateVendorPayload struct {
} }
type UpdateVendorServiceInput struct { type UpdateVendorServiceInput struct {
ID gid.GID `json:"id"` ID gid.GID `json:"id"`
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"` Description graphql.Omittable[*string] `json:"description,omitempty"`
URL *string `json:"url,omitempty"` URL *string `json:"url,omitempty"`
Type *string `json:"type,omitempty"` Type *string `json:"type,omitempty"`
} }
type UpdateVendorServicePayload struct { type UpdateVendorServicePayload struct {

View File

@@ -1147,18 +1147,18 @@ func (r *mutationResolver) UpdateOrganization(ctx context.Context, input types.U
req := probo.UpdateOrganizationRequest{ req := probo.UpdateOrganizationRequest{
ID: input.OrganizationID, ID: input.OrganizationID,
Name: input.Name, Name: input.Name,
Description: &input.Description, Description: UnwrapOmittable(input.Description),
WebsiteURL: &input.WebsiteURL, WebsiteURL: UnwrapOmittable(input.WebsiteURL),
Email: &input.Email, Email: UnwrapOmittable(input.Email),
HeadquarterAddress: &input.HeadquarterAddress, HeadquarterAddress: UnwrapOmittable(input.HeadquarterAddress),
} }
if input.Logo != nil { if input.LogoFile != nil {
req.File = &probo.File{ req.File = &probo.File{
Filename: input.Logo.Filename, Filename: input.LogoFile.Filename,
ContentType: input.Logo.ContentType, ContentType: input.LogoFile.ContentType,
Size: input.Logo.Size, Size: input.LogoFile.Size,
Content: input.Logo.File, Content: input.LogoFile.File,
} }
} }
@@ -1493,9 +1493,9 @@ func (r *mutationResolver) UpdatePeople(ctx context.Context, input types.UpdateP
PrimaryEmailAddress: input.PrimaryEmailAddress, PrimaryEmailAddress: input.PrimaryEmailAddress,
AdditionalEmailAddresses: &input.AdditionalEmailAddresses, AdditionalEmailAddresses: &input.AdditionalEmailAddresses,
Kind: input.Kind, Kind: input.Kind,
Position: &input.Position, Position: UnwrapOmittable(input.Position),
ContractStartDate: &input.ContractStartDate, ContractStartDate: UnwrapOmittable(input.ContractStartDate),
ContractEndDate: &input.ContractEndDate, ContractEndDate: UnwrapOmittable(input.ContractEndDate),
}) })
if err != nil { if err != nil {
return nil, fmt.Errorf("cannot update people: %w", err) return nil, fmt.Errorf("cannot update people: %w", err)
@@ -1564,23 +1564,23 @@ func (r *mutationResolver) UpdateVendor(ctx context.Context, input types.UpdateV
vendor, err := prb.Vendors.Update(ctx, probo.UpdateVendorRequest{ vendor, err := prb.Vendors.Update(ctx, probo.UpdateVendorRequest{
ID: input.ID, ID: input.ID,
Name: input.Name, Name: input.Name,
Description: input.Description, Description: UnwrapOmittable(input.Description),
StatusPageURL: input.StatusPageURL, StatusPageURL: UnwrapOmittable(input.StatusPageURL),
TermsOfServiceURL: input.TermsOfServiceURL, TermsOfServiceURL: UnwrapOmittable(input.TermsOfServiceURL),
PrivacyPolicyURL: input.PrivacyPolicyURL, PrivacyPolicyURL: UnwrapOmittable(input.PrivacyPolicyURL),
ServiceLevelAgreementURL: input.ServiceLevelAgreementURL, ServiceLevelAgreementURL: UnwrapOmittable(input.ServiceLevelAgreementURL),
DataProcessingAgreementURL: input.DataProcessingAgreementURL, DataProcessingAgreementURL: UnwrapOmittable(input.DataProcessingAgreementURL),
BusinessAssociateAgreementURL: input.BusinessAssociateAgreementURL, BusinessAssociateAgreementURL: UnwrapOmittable(input.BusinessAssociateAgreementURL),
SubprocessorsListURL: input.SubprocessorsListURL, SubprocessorsListURL: UnwrapOmittable(input.SubprocessorsListURL),
SecurityPageURL: input.SecurityPageURL, SecurityPageURL: UnwrapOmittable(input.SecurityPageURL),
TrustPageURL: input.TrustPageURL, TrustPageURL: UnwrapOmittable(input.TrustPageURL),
HeadquarterAddress: input.HeadquarterAddress, HeadquarterAddress: UnwrapOmittable(input.HeadquarterAddress),
LegalName: input.LegalName, LegalName: UnwrapOmittable(input.LegalName),
WebsiteURL: input.WebsiteURL, WebsiteURL: UnwrapOmittable(input.WebsiteURL),
Category: input.Category, Category: input.Category,
Certifications: input.Certifications, Certifications: input.Certifications,
BusinessOwnerID: &input.BusinessOwnerID, BusinessOwnerID: UnwrapOmittable(input.BusinessOwnerID),
SecurityOwnerID: &input.SecurityOwnerID, SecurityOwnerID: UnwrapOmittable(input.SecurityOwnerID),
ShowOnTrustCenter: input.ShowOnTrustCenter, ShowOnTrustCenter: input.ShowOnTrustCenter,
Countries: input.Countries, Countries: input.Countries,
}) })
@@ -1635,10 +1635,10 @@ func (r *mutationResolver) UpdateVendorContact(ctx context.Context, input types.
req := probo.UpdateVendorContactRequest{ req := probo.UpdateVendorContactRequest{
ID: input.ID, ID: input.ID,
FullName: &input.FullName, FullName: UnwrapOmittable(input.FullName),
Email: &input.Email, Email: UnwrapOmittable(input.Email),
Phone: &input.Phone, Phone: UnwrapOmittable(input.Phone),
Role: &input.Role, Role: UnwrapOmittable(input.Role),
} }
vendorContact, err := prb.VendorContacts.Update(ctx, req) vendorContact, err := prb.VendorContacts.Update(ctx, req)
@@ -1692,7 +1692,7 @@ func (r *mutationResolver) UpdateVendorService(ctx context.Context, input types.
req := probo.UpdateVendorServiceRequest{ req := probo.UpdateVendorServiceRequest{
ID: input.ID, ID: input.ID,
Name: input.Name, Name: input.Name,
Description: &input.Description, Description: UnwrapOmittable(input.Description),
} }
vendorService, err := prb.VendorServices.Update(ctx, req) vendorService, err := prb.VendorServices.Update(ctx, req)
@@ -2127,8 +2127,8 @@ func (r *mutationResolver) UpdateTask(ctx context.Context, input types.UpdateTas
Name: input.Name, Name: input.Name,
Description: input.Description, Description: input.Description,
State: input.State, State: input.State,
TimeEstimate: input.TimeEstimate, TimeEstimate: UnwrapOmittable(input.TimeEstimate),
Deadline: input.Deadline, Deadline: UnwrapOmittable(input.Deadline),
}) })
if err != nil { if err != nil {
panic(fmt.Errorf("cannot update task: %w", err)) panic(fmt.Errorf("cannot update task: %w", err))
@@ -2222,7 +2222,7 @@ func (r *mutationResolver) UpdateRisk(ctx context.Context, input types.UpdateRis
Description: input.Description, Description: input.Description,
Category: input.Category, Category: input.Category,
Treatment: input.Treatment, Treatment: input.Treatment,
OwnerID: input.OwnerID, OwnerID: UnwrapOmittable(input.OwnerID),
InherentLikelihood: input.InherentLikelihood, InherentLikelihood: input.InherentLikelihood,
InherentImpact: input.InherentImpact, InherentImpact: input.InherentImpact,
ResidualLikelihood: input.ResidualLikelihood, ResidualLikelihood: input.ResidualLikelihood,
@@ -2450,8 +2450,8 @@ func (r *mutationResolver) UpdateVendorBusinessAssociateAgreement(ctx context.Co
ctx, ctx,
input.VendorID, input.VendorID,
&probo.VendorBusinessAssociateAgreementUpdateRequest{ &probo.VendorBusinessAssociateAgreementUpdateRequest{
ValidFrom: &input.ValidFrom, ValidFrom: UnwrapOmittable(input.ValidFrom),
ValidUntil: &input.ValidUntil, ValidUntil: UnwrapOmittable(input.ValidUntil),
}, },
) )
if err != nil { if err != nil {
@@ -2508,8 +2508,8 @@ func (r *mutationResolver) UpdateVendorDataPrivacyAgreement(ctx context.Context,
ctx, ctx,
input.VendorID, input.VendorID,
&probo.VendorDataPrivacyAgreementUpdateRequest{ &probo.VendorDataPrivacyAgreementUpdateRequest{
ValidFrom: &input.ValidFrom, ValidFrom: UnwrapOmittable(input.ValidFrom),
ValidUntil: &input.ValidUntil, ValidUntil: UnwrapOmittable(input.ValidUntil),
}, },
) )
if err != nil { if err != nil {
@@ -3133,15 +3133,15 @@ func (r *mutationResolver) UpdateNonconformity(ctx context.Context, input types.
req := probo.UpdateNonconformityRequest{ req := probo.UpdateNonconformityRequest{
ID: input.ID, ID: input.ID,
ReferenceID: input.ReferenceID, ReferenceID: input.ReferenceID,
Description: &input.Description, Description: UnwrapOmittable(input.Description),
DateIdentified: &input.DateIdentified, DateIdentified: UnwrapOmittable(input.DateIdentified),
RootCause: input.RootCause, RootCause: input.RootCause,
CorrectiveAction: &input.CorrectiveAction, CorrectiveAction: UnwrapOmittable(input.CorrectiveAction),
OwnerID: input.OwnerID, OwnerID: input.OwnerID,
AuditID: input.AuditID, AuditID: input.AuditID,
DueDate: &input.DueDate, DueDate: UnwrapOmittable(input.DueDate),
Status: input.Status, Status: input.Status,
EffectivenessCheck: &input.EffectivenessCheck, EffectivenessCheck: UnwrapOmittable(input.EffectivenessCheck),
} }
nonconformity, err := prb.Nonconformities.Update(ctx, &req) nonconformity, err := prb.Nonconformities.Update(ctx, &req)
@@ -3201,14 +3201,14 @@ func (r *mutationResolver) UpdateObligation(ctx context.Context, input types.Upd
req := probo.UpdateObligationRequest{ req := probo.UpdateObligationRequest{
ID: input.ID, ID: input.ID,
Area: &input.Area, Area: UnwrapOmittable(input.Area),
Source: &input.Source, Source: UnwrapOmittable(input.Source),
Requirement: &input.Requirement, Requirement: UnwrapOmittable(input.Requirement),
ActionsToBeImplemented: &input.ActionsToBeImplemented, ActionsToBeImplemented: UnwrapOmittable(input.ActionsToBeImplemented),
Regulator: &input.Regulator, Regulator: UnwrapOmittable(input.Regulator),
OwnerID: input.OwnerID, OwnerID: input.OwnerID,
LastReviewDate: &input.LastReviewDate, LastReviewDate: UnwrapOmittable(input.LastReviewDate),
DueDate: &input.DueDate, DueDate: UnwrapOmittable(input.DueDate),
Status: input.Status, Status: input.Status,
} }
@@ -3268,10 +3268,10 @@ func (r *mutationResolver) UpdateContinualImprovement(ctx context.Context, input
req := probo.UpdateContinualImprovementRequest{ req := probo.UpdateContinualImprovementRequest{
ID: input.ID, ID: input.ID,
ReferenceID: input.ReferenceID, ReferenceID: input.ReferenceID,
Description: &input.Description, Description: UnwrapOmittable(input.Description),
Source: &input.Source, Source: UnwrapOmittable(input.Source),
OwnerID: input.OwnerID, OwnerID: input.OwnerID,
TargetDate: &input.TargetDate, TargetDate: UnwrapOmittable(input.TargetDate),
Status: input.Status, Status: input.Status,
Priority: input.Priority, Priority: input.Priority,
} }
@@ -3339,17 +3339,17 @@ func (r *mutationResolver) UpdateProcessingActivity(ctx context.Context, input t
req := probo.UpdateProcessingActivityRequest{ req := probo.UpdateProcessingActivityRequest{
ID: input.ID, ID: input.ID,
Name: input.Name, Name: input.Name,
Purpose: &input.Purpose, Purpose: UnwrapOmittable(input.Purpose),
DataSubjectCategory: &input.DataSubjectCategory, DataSubjectCategory: UnwrapOmittable(input.DataSubjectCategory),
PersonalDataCategory: &input.PersonalDataCategory, PersonalDataCategory: UnwrapOmittable(input.PersonalDataCategory),
SpecialOrCriminalData: input.SpecialOrCriminalData, SpecialOrCriminalData: input.SpecialOrCriminalData,
LawfulBasis: input.LawfulBasis, LawfulBasis: input.LawfulBasis,
Recipients: &input.Recipients, Recipients: UnwrapOmittable(input.Recipients),
Location: &input.Location, Location: UnwrapOmittable(input.Location),
InternationalTransfers: input.InternationalTransfers, InternationalTransfers: input.InternationalTransfers,
TransferSafeguards: &input.TransferSafeguards, TransferSafeguards: UnwrapOmittable(input.TransferSafeguards),
RetentionPeriod: &input.RetentionPeriod, RetentionPeriod: UnwrapOmittable(input.RetentionPeriod),
SecurityMeasures: &input.SecurityMeasures, SecurityMeasures: UnwrapOmittable(input.SecurityMeasures),
DataProtectionImpactAssessment: input.DataProtectionImpactAssessment, DataProtectionImpactAssessment: input.DataProtectionImpactAssessment,
TransferImpactAssessment: input.TransferImpactAssessment, TransferImpactAssessment: input.TransferImpactAssessment,
} }