@getcommunity/gc-validators 0.0.114 → 0.0.116

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
@@ -1187,6 +1187,7 @@ type ClientDocument = {
1187
1187
  logos?: BlockBrandLogos | null;
1188
1188
  teamwork_id: string;
1189
1189
  teamwork_name: string;
1190
+ gainapp_id: string | null;
1190
1191
  utm_sheet_id: string;
1191
1192
  allow_create_utm_link: boolean;
1192
1193
  is_organic_social: boolean;
@@ -1721,6 +1722,7 @@ declare const QueryStrapiSearchClients: v.ObjectSchema<{
1721
1722
  readonly title: 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>;
1722
1723
  readonly teamwork_id: 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>;
1723
1724
  readonly teamwork_name: 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>;
1725
+ readonly gainapp_id: 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>;
1724
1726
  readonly utm_sheet_id: 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>;
1725
1727
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1726
1728
  readonly is_featured: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
@@ -1738,6 +1740,7 @@ declare const SCreateClientDocument: v.ObjectSchema<{
1738
1740
  readonly title: 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.">]>;
1739
1741
  readonly teamwork_id: 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.">]>;
1740
1742
  readonly teamwork_name: 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.">]>;
1743
+ readonly gainapp_id: 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>;
1741
1744
  readonly utm_sheet_id: 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>;
1742
1745
  readonly is_active: v.BooleanSchema<"this value must be a boolean">;
1743
1746
  readonly is_featured: v.BooleanSchema<"this value must be a boolean">;
@@ -1751,6 +1754,7 @@ declare const SUpdateClientDocument: v.ObjectSchema<{
1751
1754
  readonly title: 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>;
1752
1755
  readonly teamwork_id: 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>;
1753
1756
  readonly teamwork_name: 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>;
1757
+ readonly gainapp_id: 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>;
1754
1758
  readonly utm_sheet_id: 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>;
1755
1759
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1756
1760
  readonly is_featured: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
@@ -1766,6 +1770,7 @@ declare const SUpdateClientDocumentRequest: v.ObjectSchema<{
1766
1770
  readonly title: 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>;
1767
1771
  readonly teamwork_id: 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>;
1768
1772
  readonly teamwork_name: 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>;
1773
+ readonly gainapp_id: 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>;
1769
1774
  readonly utm_sheet_id: 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>;
1770
1775
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1771
1776
  readonly is_featured: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
@@ -1965,7 +1970,7 @@ declare const SCreateNewsletterSignup: v.ObjectSchema<{
1965
1970
  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
1971
  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
1972
  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>;
1973
+ 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
1974
  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
1975
  readonly email_consent: v.BooleanSchema<undefined>;
1971
1976
  readonly sms_consent: v.BooleanSchema<undefined>;
package/dist/index.d.ts CHANGED
@@ -1187,6 +1187,7 @@ type ClientDocument = {
1187
1187
  logos?: BlockBrandLogos | null;
1188
1188
  teamwork_id: string;
1189
1189
  teamwork_name: string;
1190
+ gainapp_id: string | null;
1190
1191
  utm_sheet_id: string;
1191
1192
  allow_create_utm_link: boolean;
1192
1193
  is_organic_social: boolean;
@@ -1721,6 +1722,7 @@ declare const QueryStrapiSearchClients: v.ObjectSchema<{
1721
1722
  readonly title: 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>;
1722
1723
  readonly teamwork_id: 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>;
1723
1724
  readonly teamwork_name: 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>;
1725
+ readonly gainapp_id: 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>;
1724
1726
  readonly utm_sheet_id: 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>;
1725
1727
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1726
1728
  readonly is_featured: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
@@ -1738,6 +1740,7 @@ declare const SCreateClientDocument: v.ObjectSchema<{
1738
1740
  readonly title: 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.">]>;
1739
1741
  readonly teamwork_id: 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.">]>;
1740
1742
  readonly teamwork_name: 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.">]>;
1743
+ readonly gainapp_id: 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>;
1741
1744
  readonly utm_sheet_id: 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>;
1742
1745
  readonly is_active: v.BooleanSchema<"this value must be a boolean">;
1743
1746
  readonly is_featured: v.BooleanSchema<"this value must be a boolean">;
@@ -1751,6 +1754,7 @@ declare const SUpdateClientDocument: v.ObjectSchema<{
1751
1754
  readonly title: 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>;
1752
1755
  readonly teamwork_id: 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>;
1753
1756
  readonly teamwork_name: 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>;
1757
+ readonly gainapp_id: 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>;
1754
1758
  readonly utm_sheet_id: 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>;
1755
1759
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1756
1760
  readonly is_featured: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
@@ -1766,6 +1770,7 @@ declare const SUpdateClientDocumentRequest: v.ObjectSchema<{
1766
1770
  readonly title: 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>;
1767
1771
  readonly teamwork_id: 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>;
1768
1772
  readonly teamwork_name: 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>;
1773
+ readonly gainapp_id: 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>;
1769
1774
  readonly utm_sheet_id: 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>;
1770
1775
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1771
1776
  readonly is_featured: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
@@ -1965,7 +1970,7 @@ declare const SCreateNewsletterSignup: v.ObjectSchema<{
1965
1970
  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
1971
  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
1972
  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>;
1973
+ 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
1974
  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
1975
  readonly email_consent: v.BooleanSchema<undefined>;
1971
1976
  readonly sms_consent: v.BooleanSchema<undefined>;
package/dist/index.js CHANGED
@@ -1622,6 +1622,7 @@ var QueryStrapiSearchClients = v6.object({
1622
1622
  title: IsValidOrUndefinedShortString,
1623
1623
  teamwork_id: IsValidOrUndefinedShortString,
1624
1624
  teamwork_name: IsValidOrUndefinedShortString,
1625
+ gainapp_id: IsValidOrUndefinedShortString,
1625
1626
  utm_sheet_id: IsValidOrUndefinedShortString,
1626
1627
  is_active: IsValidOrUndefinedIsBoolean,
1627
1628
  is_featured: IsValidOrUndefinedIsBoolean,
@@ -1635,6 +1636,7 @@ var SCreateClientDocument = v6.object({
1635
1636
  title: IsValidShortString,
1636
1637
  teamwork_id: IsValidShortString,
1637
1638
  teamwork_name: IsValidShortString,
1639
+ gainapp_id: IsValidOrUndefinedShortString,
1638
1640
  utm_sheet_id: IsValidOrUndefinedShortString,
1639
1641
  is_active: IsValidIsBoolean,
1640
1642
  is_featured: IsValidIsBoolean,
@@ -1647,6 +1649,7 @@ var SUpdateClientDocument = v6.object({
1647
1649
  title: IsValidOrUndefinedShortString,
1648
1650
  teamwork_id: IsValidOrUndefinedShortString,
1649
1651
  teamwork_name: IsValidOrUndefinedShortString,
1652
+ gainapp_id: IsValidOrUndefinedShortString,
1650
1653
  utm_sheet_id: IsValidOrUndefinedShortString,
1651
1654
  is_active: IsValidOrUndefinedIsBoolean,
1652
1655
  is_featured: IsValidOrUndefinedIsBoolean,
@@ -1794,7 +1797,7 @@ var SCreateNewsletterSignup = v6.object({
1794
1797
  last_name: IsValidLastName,
1795
1798
  email: IsValidUserEmail,
1796
1799
  // hidden fields
1797
- download_key: IsValidOrUndefinedShortString,
1800
+ download_key: IsValidShortString,
1798
1801
  product_interest: IsValidProductInterest,
1799
1802
  email_consent: IsValidUserConsent,
1800
1803
  sms_consent: IsValidUserConsent,