@getcommunity/gc-validators 0.0.113 → 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.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.OptionalSchema<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.">]>, undefined>;
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>;
@@ -1978,7 +1978,7 @@ declare const SCreateNewsletterSignupDocument: v.ObjectSchema<{
1978
1978
  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.">]>;
1979
1979
  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.">]>;
1980
1980
  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">]>;
1981
- readonly download_key: v.OptionalSchema<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.">]>, undefined>;
1981
+ 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.">]>;
1982
1982
  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.">]>;
1983
1983
  readonly email_consent: v.BooleanSchema<undefined>;
1984
1984
  readonly sms_consent: v.BooleanSchema<undefined>;
@@ -1990,7 +1990,7 @@ declare const SUpdateNewsletterSignupDocument: v.ObjectSchema<{
1990
1990
  readonly first_name: v.OptionalSchema<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.">]>, undefined>;
1991
1991
  readonly last_name: v.OptionalSchema<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.">]>, undefined>;
1992
1992
  readonly email: v.OptionalSchema<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">]>, undefined>;
1993
- readonly download_key: v.OptionalSchema<v.OptionalSchema<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.">]>, undefined>, undefined>;
1993
+ readonly download_key: v.OptionalSchema<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.">]>, undefined>;
1994
1994
  readonly product_interest: v.OptionalSchema<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.">]>, undefined>;
1995
1995
  readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1996
1996
  readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -2004,7 +2004,7 @@ declare const SUpdateNewsletterSignupRequest: v.ObjectSchema<{
2004
2004
  readonly first_name: v.OptionalSchema<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.">]>, undefined>;
2005
2005
  readonly last_name: v.OptionalSchema<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.">]>, undefined>;
2006
2006
  readonly email: v.OptionalSchema<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">]>, undefined>;
2007
- readonly download_key: v.OptionalSchema<v.OptionalSchema<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.">]>, undefined>, undefined>;
2007
+ readonly download_key: v.OptionalSchema<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.">]>, undefined>;
2008
2008
  readonly product_interest: v.OptionalSchema<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.">]>, undefined>;
2009
2009
  readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2010
2010
  readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, 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.OptionalSchema<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.">]>, undefined>;
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>;
@@ -1978,7 +1978,7 @@ declare const SCreateNewsletterSignupDocument: v.ObjectSchema<{
1978
1978
  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.">]>;
1979
1979
  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.">]>;
1980
1980
  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">]>;
1981
- readonly download_key: v.OptionalSchema<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.">]>, undefined>;
1981
+ 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.">]>;
1982
1982
  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.">]>;
1983
1983
  readonly email_consent: v.BooleanSchema<undefined>;
1984
1984
  readonly sms_consent: v.BooleanSchema<undefined>;
@@ -1990,7 +1990,7 @@ declare const SUpdateNewsletterSignupDocument: v.ObjectSchema<{
1990
1990
  readonly first_name: v.OptionalSchema<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.">]>, undefined>;
1991
1991
  readonly last_name: v.OptionalSchema<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.">]>, undefined>;
1992
1992
  readonly email: v.OptionalSchema<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">]>, undefined>;
1993
- readonly download_key: v.OptionalSchema<v.OptionalSchema<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.">]>, undefined>, undefined>;
1993
+ readonly download_key: v.OptionalSchema<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.">]>, undefined>;
1994
1994
  readonly product_interest: v.OptionalSchema<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.">]>, undefined>;
1995
1995
  readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1996
1996
  readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -2004,7 +2004,7 @@ declare const SUpdateNewsletterSignupRequest: v.ObjectSchema<{
2004
2004
  readonly first_name: v.OptionalSchema<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.">]>, undefined>;
2005
2005
  readonly last_name: v.OptionalSchema<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.">]>, undefined>;
2006
2006
  readonly email: v.OptionalSchema<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">]>, undefined>;
2007
- readonly download_key: v.OptionalSchema<v.OptionalSchema<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.">]>, undefined>, undefined>;
2007
+ readonly download_key: v.OptionalSchema<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.">]>, undefined>;
2008
2008
  readonly product_interest: v.OptionalSchema<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.">]>, undefined>;
2009
2009
  readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2010
2010
  readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, 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: IsValidOrUndefinedShortString,
1797
+ download_key: IsValidShortString,
1798
1798
  product_interest: IsValidProductInterest,
1799
1799
  email_consent: IsValidUserConsent,
1800
1800
  sms_consent: IsValidUserConsent,
@@ -1808,7 +1808,7 @@ var SCreateNewsletterSignupDocument = v6.object({
1808
1808
  last_name: IsValidLastName,
1809
1809
  email: IsValidUserEmail,
1810
1810
  // hidden fields
1811
- download_key: IsValidOrUndefinedShortString,
1811
+ download_key: IsValidShortString,
1812
1812
  product_interest: IsValidProductInterest,
1813
1813
  email_consent: IsValidUserConsent,
1814
1814
  sms_consent: IsValidUserConsent,
@@ -1820,7 +1820,7 @@ var SUpdateNewsletterSignupDocument = v6.object({
1820
1820
  last_name: v6.optional(IsValidLastName),
1821
1821
  email: v6.optional(IsValidUserEmail),
1822
1822
  // hidden fields
1823
- download_key: v6.optional(IsValidOrUndefinedShortString),
1823
+ download_key: v6.optional(IsValidShortString),
1824
1824
  product_interest: v6.optional(IsValidProductInterest),
1825
1825
  email_consent: v6.optional(IsValidUserConsent),
1826
1826
  sms_consent: v6.optional(IsValidUserConsent),