@getcommunity/gc-validators 0.0.106 → 0.0.108
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 +8 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1227,6 +1227,7 @@ type LeadDocument = {
|
|
|
1227
1227
|
email_consent: boolean;
|
|
1228
1228
|
sms_consent: boolean;
|
|
1229
1229
|
on_page: string;
|
|
1230
|
+
captcha: string;
|
|
1230
1231
|
product_interest: string | null;
|
|
1231
1232
|
} & BaseDocument;
|
|
1232
1233
|
|
|
@@ -1241,6 +1242,7 @@ type ResumeDocument = {
|
|
|
1241
1242
|
email_consent: boolean;
|
|
1242
1243
|
sms_consent: boolean;
|
|
1243
1244
|
on_page: string;
|
|
1245
|
+
captcha: string;
|
|
1244
1246
|
} & BaseDocument;
|
|
1245
1247
|
|
|
1246
1248
|
type UrlRedirectStatusCode = "found_302" | "moved_permanently_301" | "temporary_redirect_307" | "gone_410" | "unavailable_for_legal_reasons_451";
|
|
@@ -1882,6 +1884,7 @@ declare const SCreateLeadDocument: v.ObjectSchema<{
|
|
|
1882
1884
|
readonly email_consent: v.BooleanSchema<undefined>;
|
|
1883
1885
|
readonly sms_consent: v.BooleanSchema<undefined>;
|
|
1884
1886
|
readonly on_page: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>;
|
|
1887
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
1885
1888
|
}, undefined>;
|
|
1886
1889
|
type SCreateLeadDocument = v.InferOutput<typeof SCreateLeadDocument>;
|
|
1887
1890
|
declare const SUpdateLead: v.ObjectSchema<{
|
|
@@ -1911,6 +1914,7 @@ declare const SUpdateLeadDocument: v.ObjectSchema<{
|
|
|
1911
1914
|
readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1912
1915
|
readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1913
1916
|
readonly on_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>, undefined>;
|
|
1917
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
1914
1918
|
}, undefined>;
|
|
1915
1919
|
type SUpdateLeadDocument = v.InferOutput<typeof SUpdateLeadDocument>;
|
|
1916
1920
|
declare const SUpdateLeadRequest: v.ObjectSchema<{
|
|
@@ -2029,6 +2033,7 @@ declare const SCreateResumeInfoDocument: v.ObjectSchema<{
|
|
|
2029
2033
|
readonly email_consent: v.BooleanSchema<undefined>;
|
|
2030
2034
|
readonly sms_consent: v.BooleanSchema<undefined>;
|
|
2031
2035
|
readonly on_page: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>;
|
|
2036
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
2032
2037
|
}, undefined>;
|
|
2033
2038
|
type SCreateResumeInfoDocument = v.InferOutput<typeof SCreateResumeInfoDocument>;
|
|
2034
2039
|
declare const SUpdateResumeInfo: v.ObjectSchema<{
|
|
@@ -2062,6 +2067,7 @@ declare const SUpdateResumeInfoDocument: v.ObjectSchema<{
|
|
|
2062
2067
|
readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2063
2068
|
readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2064
2069
|
readonly on_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>, undefined>;
|
|
2070
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
2065
2071
|
}, undefined>;
|
|
2066
2072
|
type SUpdateResumeInfoDocument = v.InferOutput<typeof SUpdateResumeInfoDocument>;
|
|
2067
2073
|
declare const SUpdateResumeInfoRequest: v.ObjectSchema<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1227,6 +1227,7 @@ type LeadDocument = {
|
|
|
1227
1227
|
email_consent: boolean;
|
|
1228
1228
|
sms_consent: boolean;
|
|
1229
1229
|
on_page: string;
|
|
1230
|
+
captcha: string;
|
|
1230
1231
|
product_interest: string | null;
|
|
1231
1232
|
} & BaseDocument;
|
|
1232
1233
|
|
|
@@ -1241,6 +1242,7 @@ type ResumeDocument = {
|
|
|
1241
1242
|
email_consent: boolean;
|
|
1242
1243
|
sms_consent: boolean;
|
|
1243
1244
|
on_page: string;
|
|
1245
|
+
captcha: string;
|
|
1244
1246
|
} & BaseDocument;
|
|
1245
1247
|
|
|
1246
1248
|
type UrlRedirectStatusCode = "found_302" | "moved_permanently_301" | "temporary_redirect_307" | "gone_410" | "unavailable_for_legal_reasons_451";
|
|
@@ -1882,6 +1884,7 @@ declare const SCreateLeadDocument: v.ObjectSchema<{
|
|
|
1882
1884
|
readonly email_consent: v.BooleanSchema<undefined>;
|
|
1883
1885
|
readonly sms_consent: v.BooleanSchema<undefined>;
|
|
1884
1886
|
readonly on_page: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>;
|
|
1887
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
1885
1888
|
}, undefined>;
|
|
1886
1889
|
type SCreateLeadDocument = v.InferOutput<typeof SCreateLeadDocument>;
|
|
1887
1890
|
declare const SUpdateLead: v.ObjectSchema<{
|
|
@@ -1911,6 +1914,7 @@ declare const SUpdateLeadDocument: v.ObjectSchema<{
|
|
|
1911
1914
|
readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1912
1915
|
readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1913
1916
|
readonly on_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>, undefined>;
|
|
1917
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
1914
1918
|
}, undefined>;
|
|
1915
1919
|
type SUpdateLeadDocument = v.InferOutput<typeof SUpdateLeadDocument>;
|
|
1916
1920
|
declare const SUpdateLeadRequest: v.ObjectSchema<{
|
|
@@ -2029,6 +2033,7 @@ declare const SCreateResumeInfoDocument: v.ObjectSchema<{
|
|
|
2029
2033
|
readonly email_consent: v.BooleanSchema<undefined>;
|
|
2030
2034
|
readonly sms_consent: v.BooleanSchema<undefined>;
|
|
2031
2035
|
readonly on_page: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>;
|
|
2036
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
2032
2037
|
}, undefined>;
|
|
2033
2038
|
type SCreateResumeInfoDocument = v.InferOutput<typeof SCreateResumeInfoDocument>;
|
|
2034
2039
|
declare const SUpdateResumeInfo: v.ObjectSchema<{
|
|
@@ -2062,6 +2067,7 @@ declare const SUpdateResumeInfoDocument: v.ObjectSchema<{
|
|
|
2062
2067
|
readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2063
2068
|
readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2064
2069
|
readonly on_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 2048, "The string you provided is too long for our database, please abbreviate your string to be 2048 characters or less.">]>, undefined>;
|
|
2070
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
2065
2071
|
}, undefined>;
|
|
2066
2072
|
type SUpdateResumeInfoDocument = v.InferOutput<typeof SUpdateResumeInfoDocument>;
|
|
2067
2073
|
declare const SUpdateResumeInfoRequest: v.ObjectSchema<{
|
package/dist/index.js
CHANGED
|
@@ -1737,7 +1737,6 @@ var SCreateLead = v6.object({
|
|
|
1737
1737
|
sms_consent: IsValidUserConsent,
|
|
1738
1738
|
// hidden fields
|
|
1739
1739
|
on_page: IsValidRefPage,
|
|
1740
|
-
// recaptcha - not saved to db
|
|
1741
1740
|
captcha: IsValidCaptchaToken
|
|
1742
1741
|
});
|
|
1743
1742
|
var SCreateLeadDocument = v6.object({
|
|
@@ -1752,7 +1751,8 @@ var SCreateLeadDocument = v6.object({
|
|
|
1752
1751
|
email_consent: IsValidUserConsent,
|
|
1753
1752
|
sms_consent: IsValidUserConsent,
|
|
1754
1753
|
// hidden fields
|
|
1755
|
-
on_page: IsValidRefPage
|
|
1754
|
+
on_page: IsValidRefPage,
|
|
1755
|
+
captcha: IsValidCaptchaToken
|
|
1756
1756
|
});
|
|
1757
1757
|
var SUpdateLead = v6.object({
|
|
1758
1758
|
first_name: v6.optional(IsValidFirstName),
|
|
@@ -1767,7 +1767,6 @@ var SUpdateLead = v6.object({
|
|
|
1767
1767
|
sms_consent: v6.optional(IsValidUserConsent),
|
|
1768
1768
|
// hidden fields
|
|
1769
1769
|
on_page: v6.optional(IsValidRefPage),
|
|
1770
|
-
// recaptcha - not saved to db
|
|
1771
1770
|
captcha: IsValidCaptchaToken
|
|
1772
1771
|
});
|
|
1773
1772
|
var SUpdateLeadDocument = v6.object({
|
|
@@ -1782,7 +1781,8 @@ var SUpdateLeadDocument = v6.object({
|
|
|
1782
1781
|
email_consent: v6.optional(IsValidUserConsent),
|
|
1783
1782
|
sms_consent: v6.optional(IsValidUserConsent),
|
|
1784
1783
|
// hidden fields
|
|
1785
|
-
on_page: v6.optional(IsValidRefPage)
|
|
1784
|
+
on_page: v6.optional(IsValidRefPage),
|
|
1785
|
+
captcha: IsValidCaptchaToken
|
|
1786
1786
|
});
|
|
1787
1787
|
var SUpdateLeadRequest = v6.object({
|
|
1788
1788
|
documentId: IsValidReferenceDocumentId,
|
|
@@ -1842,7 +1842,6 @@ var SCreateResume = v6.object({
|
|
|
1842
1842
|
sms_consent: IsValidUserConsent,
|
|
1843
1843
|
// hidden fields
|
|
1844
1844
|
on_page: IsValidRefPage,
|
|
1845
|
-
// recaptcha - not saved to db
|
|
1846
1845
|
captcha: IsValidCaptchaToken
|
|
1847
1846
|
});
|
|
1848
1847
|
var SCreateResumeInfo = v6.object({
|
|
@@ -1858,7 +1857,6 @@ var SCreateResumeInfo = v6.object({
|
|
|
1858
1857
|
sms_consent: IsValidUserConsent,
|
|
1859
1858
|
// hidden fields
|
|
1860
1859
|
on_page: IsValidRefPage,
|
|
1861
|
-
// recaptcha - not saved to db
|
|
1862
1860
|
captcha: IsValidCaptchaToken
|
|
1863
1861
|
});
|
|
1864
1862
|
var SCreateResumeInfoDocument = v6.object({
|
|
@@ -1873,7 +1871,8 @@ var SCreateResumeInfoDocument = v6.object({
|
|
|
1873
1871
|
email_consent: IsValidUserConsent,
|
|
1874
1872
|
sms_consent: IsValidUserConsent,
|
|
1875
1873
|
// hidden fields
|
|
1876
|
-
on_page: IsValidRefPage
|
|
1874
|
+
on_page: IsValidRefPage,
|
|
1875
|
+
captcha: IsValidCaptchaToken
|
|
1877
1876
|
});
|
|
1878
1877
|
var SUpdateResumeInfo = v6.object({
|
|
1879
1878
|
first_name: v6.optional(IsValidFirstName),
|
|
@@ -1888,7 +1887,6 @@ var SUpdateResumeInfo = v6.object({
|
|
|
1888
1887
|
sms_consent: v6.optional(IsValidUserConsent),
|
|
1889
1888
|
// hidden fields
|
|
1890
1889
|
on_page: v6.optional(IsValidRefPage),
|
|
1891
|
-
// recaptcha - not saved to db
|
|
1892
1890
|
captcha: IsValidCaptchaToken
|
|
1893
1891
|
});
|
|
1894
1892
|
var SUpdateResumeInfoDocument = v6.object({
|
|
@@ -1903,7 +1901,8 @@ var SUpdateResumeInfoDocument = v6.object({
|
|
|
1903
1901
|
email_consent: v6.optional(IsValidUserConsent),
|
|
1904
1902
|
sms_consent: v6.optional(IsValidUserConsent),
|
|
1905
1903
|
// hidden fields
|
|
1906
|
-
on_page: v6.optional(IsValidRefPage)
|
|
1904
|
+
on_page: v6.optional(IsValidRefPage),
|
|
1905
|
+
captcha: IsValidCaptchaToken
|
|
1907
1906
|
});
|
|
1908
1907
|
var SUpdateResumeInfoRequest = v6.object({
|
|
1909
1908
|
documentId: IsValidReferenceDocumentId,
|