@getcommunity/gc-validators 0.0.112 → 0.0.113
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 +35 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -31
- package/dist/index.d.ts +55 -31
- package/dist/index.js +33 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1745,21 +1745,6 @@ var QueryStrapiByName = v6__namespace.object({
|
|
|
1745
1745
|
name: IsValidShortString,
|
|
1746
1746
|
sort: QuerySortEntities
|
|
1747
1747
|
});
|
|
1748
|
-
var SCreateLead = v6__namespace.object({
|
|
1749
|
-
first_name: IsValidFirstName,
|
|
1750
|
-
last_name: IsValidLastName,
|
|
1751
|
-
email: IsValidUserEmail,
|
|
1752
|
-
phone: IsValidUserPhoneRequired,
|
|
1753
|
-
company: IsValidCompanyNameRequired,
|
|
1754
|
-
title: IsValidUserTitleRequired,
|
|
1755
|
-
message: IsValidUserMessageRequired,
|
|
1756
|
-
product_interest: IsValidProductInterest,
|
|
1757
|
-
email_consent: IsValidUserConsent,
|
|
1758
|
-
sms_consent: IsValidUserConsent,
|
|
1759
|
-
// hidden fields
|
|
1760
|
-
on_page: IsValidRefPage,
|
|
1761
|
-
captcha: IsValidCaptchaToken
|
|
1762
|
-
});
|
|
1763
1748
|
var SCreateLeadDocument = v6__namespace.object({
|
|
1764
1749
|
first_name: IsValidFirstName,
|
|
1765
1750
|
last_name: IsValidLastName,
|
|
@@ -1775,21 +1760,6 @@ var SCreateLeadDocument = v6__namespace.object({
|
|
|
1775
1760
|
on_page: IsValidRefPage,
|
|
1776
1761
|
captcha: IsValidCaptchaToken
|
|
1777
1762
|
});
|
|
1778
|
-
var SUpdateLead = v6__namespace.object({
|
|
1779
|
-
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1780
|
-
last_name: v6__namespace.optional(IsValidLastName),
|
|
1781
|
-
email: v6__namespace.optional(IsValidUserEmail),
|
|
1782
|
-
phone: v6__namespace.optional(IsValidUserPhoneRequired),
|
|
1783
|
-
company: v6__namespace.optional(IsValidCompanyName),
|
|
1784
|
-
title: v6__namespace.optional(IsValidUserTitle),
|
|
1785
|
-
message: v6__namespace.optional(IsValidUserMessage),
|
|
1786
|
-
product_interest: v6__namespace.optional(IsValidProductInterest),
|
|
1787
|
-
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1788
|
-
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1789
|
-
// hidden fields
|
|
1790
|
-
on_page: v6__namespace.optional(IsValidRefPage),
|
|
1791
|
-
captcha: IsValidCaptchaToken
|
|
1792
|
-
});
|
|
1793
1763
|
var SUpdateLeadDocument = v6__namespace.object({
|
|
1794
1764
|
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1795
1765
|
last_name: v6__namespace.optional(IsValidLastName),
|
|
@@ -1807,7 +1777,7 @@ var SUpdateLeadDocument = v6__namespace.object({
|
|
|
1807
1777
|
});
|
|
1808
1778
|
var SUpdateLeadRequest = v6__namespace.object({
|
|
1809
1779
|
documentId: IsValidReferenceDocumentId,
|
|
1810
|
-
data:
|
|
1780
|
+
data: SUpdateLeadDocument
|
|
1811
1781
|
});
|
|
1812
1782
|
var QuerySortMediaPlatforms = v6__namespace.optional(
|
|
1813
1783
|
v6__namespace.object({
|
|
@@ -1846,12 +1816,43 @@ var SCreateNewsletterSignup = v6__namespace.object({
|
|
|
1846
1816
|
last_name: IsValidLastName,
|
|
1847
1817
|
email: IsValidUserEmail,
|
|
1848
1818
|
// hidden fields
|
|
1819
|
+
download_key: IsValidOrUndefinedShortString,
|
|
1820
|
+
product_interest: IsValidProductInterest,
|
|
1849
1821
|
email_consent: IsValidUserConsent,
|
|
1822
|
+
sms_consent: IsValidUserConsent,
|
|
1850
1823
|
on_page: IsValidRefPage,
|
|
1851
1824
|
captcha: IsValidCaptchaToken,
|
|
1852
1825
|
// honeypot field
|
|
1853
1826
|
middle_name: v6__namespace.string()
|
|
1854
1827
|
});
|
|
1828
|
+
var SCreateNewsletterSignupDocument = v6__namespace.object({
|
|
1829
|
+
first_name: IsValidFirstName,
|
|
1830
|
+
last_name: IsValidLastName,
|
|
1831
|
+
email: IsValidUserEmail,
|
|
1832
|
+
// hidden fields
|
|
1833
|
+
download_key: IsValidOrUndefinedShortString,
|
|
1834
|
+
product_interest: IsValidProductInterest,
|
|
1835
|
+
email_consent: IsValidUserConsent,
|
|
1836
|
+
sms_consent: IsValidUserConsent,
|
|
1837
|
+
on_page: IsValidRefPage,
|
|
1838
|
+
captcha: IsValidCaptchaToken
|
|
1839
|
+
});
|
|
1840
|
+
var SUpdateNewsletterSignupDocument = v6__namespace.object({
|
|
1841
|
+
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1842
|
+
last_name: v6__namespace.optional(IsValidLastName),
|
|
1843
|
+
email: v6__namespace.optional(IsValidUserEmail),
|
|
1844
|
+
// hidden fields
|
|
1845
|
+
download_key: v6__namespace.optional(IsValidOrUndefinedShortString),
|
|
1846
|
+
product_interest: v6__namespace.optional(IsValidProductInterest),
|
|
1847
|
+
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1848
|
+
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1849
|
+
on_page: v6__namespace.optional(IsValidRefPage),
|
|
1850
|
+
captcha: IsValidCaptchaToken
|
|
1851
|
+
});
|
|
1852
|
+
var SUpdateNewsletterSignupRequest = v6__namespace.object({
|
|
1853
|
+
documentId: IsValidReferenceDocumentId,
|
|
1854
|
+
data: SUpdateNewsletterSignupDocument
|
|
1855
|
+
});
|
|
1855
1856
|
var SCreateResume = v6__namespace.object({
|
|
1856
1857
|
first_name: IsValidFirstName,
|
|
1857
1858
|
last_name: IsValidLastName,
|
|
@@ -2865,11 +2866,11 @@ exports.SCreateClientReportDocument = SCreateClientReportDocument;
|
|
|
2865
2866
|
exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
2866
2867
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
2867
2868
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
2868
|
-
exports.SCreateLead = SCreateLead;
|
|
2869
2869
|
exports.SCreateLeadDocument = SCreateLeadDocument;
|
|
2870
2870
|
exports.SCreateMediaPlatformDocument = SCreateMediaPlatformDocument;
|
|
2871
2871
|
exports.SCreateMultipleStrapiMediaUploadDocument = SCreateMultipleStrapiMediaUploadDocument;
|
|
2872
2872
|
exports.SCreateNewsletterSignup = SCreateNewsletterSignup;
|
|
2873
|
+
exports.SCreateNewsletterSignupDocument = SCreateNewsletterSignupDocument;
|
|
2873
2874
|
exports.SCreateResume = SCreateResume;
|
|
2874
2875
|
exports.SCreateResumeInfo = SCreateResumeInfo;
|
|
2875
2876
|
exports.SCreateResumeInfoDocument = SCreateResumeInfoDocument;
|
|
@@ -2916,11 +2917,12 @@ exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
|
2916
2917
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
2917
2918
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
2918
2919
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
2919
|
-
exports.SUpdateLead = SUpdateLead;
|
|
2920
2920
|
exports.SUpdateLeadDocument = SUpdateLeadDocument;
|
|
2921
2921
|
exports.SUpdateLeadRequest = SUpdateLeadRequest;
|
|
2922
2922
|
exports.SUpdateMediaPlatformDocument = SUpdateMediaPlatformDocument;
|
|
2923
2923
|
exports.SUpdateMediaPlatformDocumentRequest = SUpdateMediaPlatformDocumentRequest;
|
|
2924
|
+
exports.SUpdateNewsletterSignupDocument = SUpdateNewsletterSignupDocument;
|
|
2925
|
+
exports.SUpdateNewsletterSignupRequest = SUpdateNewsletterSignupRequest;
|
|
2924
2926
|
exports.SUpdateResumeInfo = SUpdateResumeInfo;
|
|
2925
2927
|
exports.SUpdateResumeInfoDocument = SUpdateResumeInfoDocument;
|
|
2926
2928
|
exports.SUpdateResumeInfoRequest = SUpdateResumeInfoRequest;
|