chore: update types of privacy policy and terms of use, connect to crm

This commit is contained in:
Zotov Ivan Yuryevich
2026-07-03 22:11:42 +03:00
parent 593c11f306
commit 16e83e48ff
20 changed files with 478 additions and 65 deletions

View File

@@ -38,10 +38,9 @@ function buildInput(source) {
displayValue: contact.displayValue,
})),
};
// privacyPolicy / termsOfUse are relations (single types) referenced by id.
// They are seeded separately; only forward them when an id is provided.
if (source.privacyPolicy?.id) input.privacyPolicy = source.privacyPolicy.id;
if (source.termsOfUse?.id) input.termsOfUse = source.termsOfUse.id;
// privacyPolicy / termsOfUse are markdown richtext strings.
if (source.privacyPolicy != null) input.privacyPolicy = source.privacyPolicy;
if (source.termsOfUse != null) input.termsOfUse = source.termsOfUse;
return input;
}