@getcommunity/gc-validators 0.0.109 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +21 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -14
- package/dist/index.d.ts +17 -14
- package/dist/index.js +21 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -818,13 +818,12 @@ var IsValidUserTitleRequired = v6__namespace.pipe(
|
|
|
818
818
|
var IsValidUserTitle = v6__namespace.optional(IsValidUserTitleRequired);
|
|
819
819
|
var InvalidUserMessage = "How can we be of service to your team?";
|
|
820
820
|
var InvalidUserMessageMaxLength = `The message you provided is too long for our database, please abbreviate your message to be ${LIMIT_LONG_STRING_MAX_LENGTH} characters or less.`;
|
|
821
|
-
var
|
|
822
|
-
v6__namespace.
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
v6__namespace.maxLength(LIMIT_LONG_STRING_MAX_LENGTH, InvalidUserMessageMaxLength)
|
|
826
|
-
)
|
|
821
|
+
var IsValidUserMessageRequired = v6__namespace.pipe(
|
|
822
|
+
v6__namespace.string(InvalidUserMessage),
|
|
823
|
+
v6__namespace.trim(),
|
|
824
|
+
v6__namespace.maxLength(LIMIT_LONG_STRING_MAX_LENGTH, InvalidUserMessageMaxLength)
|
|
827
825
|
);
|
|
826
|
+
var IsValidUserMessage = v6__namespace.optional(IsValidUserMessageRequired);
|
|
828
827
|
var InvalidRefPageMaxLength = `The string you provided is too long for our database, please abbreviate your string to be ${LIMIT_MAX_DESTINATION} characters or less.`;
|
|
829
828
|
var IsValidRefPage = v6__namespace.pipe(
|
|
830
829
|
v6__namespace.string(InvalidInputRobot),
|
|
@@ -1751,9 +1750,9 @@ var SCreateLead = v6__namespace.object({
|
|
|
1751
1750
|
last_name: IsValidLastName,
|
|
1752
1751
|
email: IsValidUserEmail,
|
|
1753
1752
|
phone: IsValidUserPhoneRequired,
|
|
1754
|
-
company:
|
|
1755
|
-
title:
|
|
1756
|
-
message:
|
|
1753
|
+
company: IsValidCompanyNameRequired,
|
|
1754
|
+
title: IsValidUserTitleRequired,
|
|
1755
|
+
message: IsValidUserMessageRequired,
|
|
1757
1756
|
product_interest: IsValidProductInterest,
|
|
1758
1757
|
email_consent: IsValidUserConsent,
|
|
1759
1758
|
sms_consent: IsValidUserConsent,
|
|
@@ -1766,9 +1765,9 @@ var SCreateLeadDocument = v6__namespace.object({
|
|
|
1766
1765
|
last_name: IsValidLastName,
|
|
1767
1766
|
email: IsValidUserEmail,
|
|
1768
1767
|
phone: IsValidUserPhoneRequired,
|
|
1769
|
-
company:
|
|
1770
|
-
title:
|
|
1771
|
-
message:
|
|
1768
|
+
company: IsValidCompanyNameRequired,
|
|
1769
|
+
title: IsValidUserTitleRequired,
|
|
1770
|
+
message: IsValidUserMessageRequired,
|
|
1772
1771
|
product_interest: IsValidProductInterest,
|
|
1773
1772
|
email_consent: IsValidUserConsent,
|
|
1774
1773
|
sms_consent: IsValidUserConsent,
|
|
@@ -1849,14 +1848,16 @@ var SCreateNewsletterSignup = v6__namespace.object({
|
|
|
1849
1848
|
// hidden fields
|
|
1850
1849
|
email_consent: IsValidUserConsent,
|
|
1851
1850
|
on_page: IsValidRefPage,
|
|
1852
|
-
captcha: IsValidCaptchaToken
|
|
1851
|
+
captcha: IsValidCaptchaToken,
|
|
1852
|
+
// honeypot field
|
|
1853
|
+
middle_name: v6__namespace.optional(v6__namespace.string())
|
|
1853
1854
|
});
|
|
1854
1855
|
var SCreateResume = v6__namespace.object({
|
|
1855
1856
|
first_name: IsValidFirstName,
|
|
1856
1857
|
last_name: IsValidLastName,
|
|
1857
1858
|
email: IsValidUserEmail,
|
|
1858
1859
|
phone: IsValidUserPhone,
|
|
1859
|
-
message:
|
|
1860
|
+
message: IsValidUserMessageRequired,
|
|
1860
1861
|
social_profiles: IsValidOrUndefinedStringSepListOfUrls,
|
|
1861
1862
|
file: IsValidResumeFile,
|
|
1862
1863
|
// File object
|
|
@@ -1871,7 +1872,7 @@ var SCreateResumeInfo = v6__namespace.object({
|
|
|
1871
1872
|
last_name: IsValidLastName,
|
|
1872
1873
|
email: IsValidUserEmail,
|
|
1873
1874
|
phone: IsValidUserPhone,
|
|
1874
|
-
message:
|
|
1875
|
+
message: IsValidUserMessageRequired,
|
|
1875
1876
|
social_profiles: IsValidOrUndefinedStringSepListOfUrls,
|
|
1876
1877
|
file: IsValidFileReferenceId,
|
|
1877
1878
|
// File reference ID
|
|
@@ -1886,7 +1887,7 @@ var SCreateResumeInfoDocument = v6__namespace.object({
|
|
|
1886
1887
|
last_name: IsValidLastName,
|
|
1887
1888
|
email: IsValidUserEmail,
|
|
1888
1889
|
phone: IsValidUserPhone,
|
|
1889
|
-
message:
|
|
1890
|
+
message: IsValidUserMessageRequired,
|
|
1890
1891
|
social_profiles: IsValidOrUndefinedStringSepListOfUrls,
|
|
1891
1892
|
file: IsValidFileReferenceId,
|
|
1892
1893
|
// File reference ID
|
|
@@ -1938,7 +1939,9 @@ var SharpSpringSignUpToDownload = v6__namespace.object({
|
|
|
1938
1939
|
download_key: IsValidShortString,
|
|
1939
1940
|
email_consent: IsValidUserConsent,
|
|
1940
1941
|
on_page: IsValidRefPage,
|
|
1941
|
-
captcha: IsValidCaptchaToken
|
|
1942
|
+
captcha: IsValidCaptchaToken,
|
|
1943
|
+
// honeypot field
|
|
1944
|
+
middle_name: v6__namespace.optional(v6__namespace.string())
|
|
1942
1945
|
});
|
|
1943
1946
|
var SEntityRelationPositionBefore = v6__namespace.object({
|
|
1944
1947
|
before: IsValidReferenceDocumentId
|
|
@@ -2716,6 +2719,7 @@ exports.IsValidUrlUtmTerm = IsValidUrlUtmTerm;
|
|
|
2716
2719
|
exports.IsValidUserConsent = IsValidUserConsent;
|
|
2717
2720
|
exports.IsValidUserEmail = IsValidUserEmail;
|
|
2718
2721
|
exports.IsValidUserMessage = IsValidUserMessage;
|
|
2722
|
+
exports.IsValidUserMessageRequired = IsValidUserMessageRequired;
|
|
2719
2723
|
exports.IsValidUserPhone = IsValidUserPhone;
|
|
2720
2724
|
exports.IsValidUserPhoneRequired = IsValidUserPhoneRequired;
|
|
2721
2725
|
exports.IsValidUserRole = IsValidUserRole;
|