@getcommunity/gc-validators 0.0.114 → 0.0.115
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1965,7 +1965,7 @@ declare const SCreateNewsletterSignup: v.ObjectSchema<{
|
|
|
1965
1965
|
readonly first_name: v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your first name.">, v.TrimAction, v.MinLengthAction<string, 1, "Please enter your first name.">, v.MaxLengthAction<string, 255, "Your first name is too long for our datanase, please abbreviate your first name to be 255 characters or less.">]>;
|
|
1966
1966
|
readonly last_name: v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your last name.">, v.TrimAction, v.MinLengthAction<string, 1, "Please enter your last name.">, v.MaxLengthAction<string, 255, "Your last name is too long for our datanase, please abbreviate your last name to be 255 characters or less.">]>;
|
|
1967
1967
|
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<"please provide an email">, v.TrimAction, v.MinLengthAction<string, 5, "your email is too short, it must be at least 5 characters">, v.MaxLengthAction<string, 255, "your email is too long, it must be 255 characters or less">, v.EmailAction<string, "please provide a valid email address">]>;
|
|
1968
|
-
readonly download_key: v.
|
|
1968
|
+
readonly download_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>;
|
|
1969
1969
|
readonly product_interest: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 255, "The product interest provided is too long. It must be 255 characters or less.">]>;
|
|
1970
1970
|
readonly email_consent: v.BooleanSchema<undefined>;
|
|
1971
1971
|
readonly sms_consent: v.BooleanSchema<undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1965,7 +1965,7 @@ declare const SCreateNewsletterSignup: v.ObjectSchema<{
|
|
|
1965
1965
|
readonly first_name: v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your first name.">, v.TrimAction, v.MinLengthAction<string, 1, "Please enter your first name.">, v.MaxLengthAction<string, 255, "Your first name is too long for our datanase, please abbreviate your first name to be 255 characters or less.">]>;
|
|
1966
1966
|
readonly last_name: v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your last name.">, v.TrimAction, v.MinLengthAction<string, 1, "Please enter your last name.">, v.MaxLengthAction<string, 255, "Your last name is too long for our datanase, please abbreviate your last name to be 255 characters or less.">]>;
|
|
1967
1967
|
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<"please provide an email">, v.TrimAction, v.MinLengthAction<string, 5, "your email is too short, it must be at least 5 characters">, v.MaxLengthAction<string, 255, "your email is too long, it must be 255 characters or less">, v.EmailAction<string, "please provide a valid email address">]>;
|
|
1968
|
-
readonly download_key: v.
|
|
1968
|
+
readonly download_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>;
|
|
1969
1969
|
readonly product_interest: v.SchemaWithPipe<readonly [v.StringSchema<"It appears you are a robot, please try again.">, v.TrimAction, v.MaxLengthAction<string, 255, "The product interest provided is too long. It must be 255 characters or less.">]>;
|
|
1970
1970
|
readonly email_consent: v.BooleanSchema<undefined>;
|
|
1971
1971
|
readonly sms_consent: v.BooleanSchema<undefined>;
|
package/dist/index.js
CHANGED
|
@@ -1794,7 +1794,7 @@ var SCreateNewsletterSignup = v6.object({
|
|
|
1794
1794
|
last_name: IsValidLastName,
|
|
1795
1795
|
email: IsValidUserEmail,
|
|
1796
1796
|
// hidden fields
|
|
1797
|
-
download_key:
|
|
1797
|
+
download_key: IsValidShortString,
|
|
1798
1798
|
product_interest: IsValidProductInterest,
|
|
1799
1799
|
email_consent: IsValidUserConsent,
|
|
1800
1800
|
sms_consent: IsValidUserConsent,
|