@getcommunity/gc-validators 0.0.148 → 0.0.149

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
@@ -1234,6 +1234,7 @@ type ClientProjectDocument = {
1234
1234
  title: string;
1235
1235
  slug: string;
1236
1236
  featured_image?: MediaUploadDocument | null;
1237
+ is_active: boolean;
1237
1238
  project_status: ClientProjectStatus[];
1238
1239
  project_phase: ClientProjectPhase;
1239
1240
  project_url: string | null;
@@ -1820,20 +1821,32 @@ declare const SAssociateMediaContentTypesToClientMediaPlatform: v.ObjectSchema<{
1820
1821
  type SAssociateMediaContentTypesToClientMediaPlatform = v.InferOutput<typeof SAssociateMediaContentTypesToClientMediaPlatform>;
1821
1822
 
1822
1823
  declare const QuerySortClientProjects: v.OptionalSchema<v.ObjectSchema<{
1823
- readonly key: v.PicklistSchema<["id", "title", "slug", "project_phase", "createdAt", "updatedAt"], undefined>;
1824
+ readonly key: v.PicklistSchema<["id", "title", "slug", "is_active", "project_phase", "project_url", "project_type", "project_pricing", "project_address", "phone_number", "num_of_models", "num_of_units_remain", "buyer_profile", "social_organic_start_date", "paid_media_start_date", "go_date", "createdAt", "updatedAt"], undefined>;
1824
1825
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1825
1826
  }, undefined>, undefined>;
1826
1827
  type QuerySortClientProjects = v.InferOutput<typeof QuerySortClientProjects>;
1827
1828
  declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
1828
1829
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
1829
1830
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
1831
+ readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1830
1832
  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>;
1831
1833
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1834
+ readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1832
1835
  readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
1833
1836
  readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">, undefined>;
1834
- readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1837
+ readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
1838
+ readonly project_type: 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>;
1839
+ readonly project_pricing: 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>;
1840
+ readonly project_address: 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>;
1841
+ readonly phone_number: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your phone number.">, v.TrimAction, v.MinLengthAction<string, 7, "Please enter your phone number.">, v.MaxLengthAction<string, 24, "The phone you provided does not appear to be a valid phone number.">, v.RegexAction<string, "please provide a valid phone number">]>, undefined>;
1842
+ readonly num_of_models: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<"Please enter a number.">]>, undefined>;
1843
+ readonly num_of_units_remain: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<"Please enter a number.">]>, undefined>;
1844
+ readonly buyer_profile: 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>;
1845
+ readonly social_organic_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
1846
+ readonly paid_media_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
1847
+ readonly go_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
1835
1848
  readonly sort: v.OptionalSchema<v.ObjectSchema<{
1836
- readonly key: v.PicklistSchema<["id", "title", "slug", "project_phase", "createdAt", "updatedAt"], undefined>;
1849
+ readonly key: v.PicklistSchema<["id", "title", "slug", "is_active", "project_phase", "project_url", "project_type", "project_pricing", "project_address", "phone_number", "num_of_models", "num_of_units_remain", "buyer_profile", "social_organic_start_date", "paid_media_start_date", "go_date", "createdAt", "updatedAt"], undefined>;
1837
1850
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1838
1851
  }, undefined>, undefined>;
1839
1852
  }, undefined>;
@@ -1842,6 +1855,7 @@ declare const SCreateClientProjectDocument: v.ObjectSchema<{
1842
1855
  readonly clients: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>, v.MinLengthAction<string[], 1, "please provide at least one document id">]>;
1843
1856
  readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>;
1844
1857
  readonly slug: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
1858
+ readonly is_active: v.BooleanSchema<"this value must be a boolean">;
1845
1859
  readonly project_status: v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>;
1846
1860
  readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">;
1847
1861
  readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
@@ -1861,6 +1875,7 @@ declare const SUpdateClientProjectDocument: v.ObjectSchema<{
1861
1875
  readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>, v.MinLengthAction<string[], 1, "please provide at least one document id">]>, undefined>;
1862
1876
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, undefined>;
1863
1877
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1878
+ readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1864
1879
  readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
1865
1880
  readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">, undefined>;
1866
1881
  readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
@@ -1882,6 +1897,7 @@ declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
1882
1897
  readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>, v.MinLengthAction<string[], 1, "please provide at least one document id">]>, undefined>;
1883
1898
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, undefined>;
1884
1899
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1900
+ readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1885
1901
  readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
1886
1902
  readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">, undefined>;
1887
1903
  readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
package/dist/index.d.ts CHANGED
@@ -1234,6 +1234,7 @@ type ClientProjectDocument = {
1234
1234
  title: string;
1235
1235
  slug: string;
1236
1236
  featured_image?: MediaUploadDocument | null;
1237
+ is_active: boolean;
1237
1238
  project_status: ClientProjectStatus[];
1238
1239
  project_phase: ClientProjectPhase;
1239
1240
  project_url: string | null;
@@ -1820,20 +1821,32 @@ declare const SAssociateMediaContentTypesToClientMediaPlatform: v.ObjectSchema<{
1820
1821
  type SAssociateMediaContentTypesToClientMediaPlatform = v.InferOutput<typeof SAssociateMediaContentTypesToClientMediaPlatform>;
1821
1822
 
1822
1823
  declare const QuerySortClientProjects: v.OptionalSchema<v.ObjectSchema<{
1823
- readonly key: v.PicklistSchema<["id", "title", "slug", "project_phase", "createdAt", "updatedAt"], undefined>;
1824
+ readonly key: v.PicklistSchema<["id", "title", "slug", "is_active", "project_phase", "project_url", "project_type", "project_pricing", "project_address", "phone_number", "num_of_models", "num_of_units_remain", "buyer_profile", "social_organic_start_date", "paid_media_start_date", "go_date", "createdAt", "updatedAt"], undefined>;
1824
1825
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1825
1826
  }, undefined>, undefined>;
1826
1827
  type QuerySortClientProjects = v.InferOutput<typeof QuerySortClientProjects>;
1827
1828
  declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
1828
1829
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
1829
1830
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
1831
+ readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1830
1832
  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>;
1831
1833
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1834
+ readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1832
1835
  readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
1833
1836
  readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">, undefined>;
1834
- readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1837
+ readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
1838
+ readonly project_type: 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>;
1839
+ readonly project_pricing: 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>;
1840
+ readonly project_address: 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>;
1841
+ readonly phone_number: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your phone number.">, v.TrimAction, v.MinLengthAction<string, 7, "Please enter your phone number.">, v.MaxLengthAction<string, 24, "The phone you provided does not appear to be a valid phone number.">, v.RegexAction<string, "please provide a valid phone number">]>, undefined>;
1842
+ readonly num_of_models: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<"Please enter a number.">]>, undefined>;
1843
+ readonly num_of_units_remain: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<"Please enter a number.">]>, undefined>;
1844
+ readonly buyer_profile: 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>;
1845
+ readonly social_organic_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
1846
+ readonly paid_media_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
1847
+ readonly go_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
1835
1848
  readonly sort: v.OptionalSchema<v.ObjectSchema<{
1836
- readonly key: v.PicklistSchema<["id", "title", "slug", "project_phase", "createdAt", "updatedAt"], undefined>;
1849
+ readonly key: v.PicklistSchema<["id", "title", "slug", "is_active", "project_phase", "project_url", "project_type", "project_pricing", "project_address", "phone_number", "num_of_models", "num_of_units_remain", "buyer_profile", "social_organic_start_date", "paid_media_start_date", "go_date", "createdAt", "updatedAt"], undefined>;
1837
1850
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1838
1851
  }, undefined>, undefined>;
1839
1852
  }, undefined>;
@@ -1842,6 +1855,7 @@ declare const SCreateClientProjectDocument: v.ObjectSchema<{
1842
1855
  readonly clients: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>, v.MinLengthAction<string[], 1, "please provide at least one document id">]>;
1843
1856
  readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>;
1844
1857
  readonly slug: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
1858
+ readonly is_active: v.BooleanSchema<"this value must be a boolean">;
1845
1859
  readonly project_status: v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>;
1846
1860
  readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">;
1847
1861
  readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
@@ -1861,6 +1875,7 @@ declare const SUpdateClientProjectDocument: v.ObjectSchema<{
1861
1875
  readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>, v.MinLengthAction<string[], 1, "please provide at least one document id">]>, undefined>;
1862
1876
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, undefined>;
1863
1877
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1878
+ readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1864
1879
  readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
1865
1880
  readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">, undefined>;
1866
1881
  readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
@@ -1882,6 +1897,7 @@ declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
1882
1897
  readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>, v.MinLengthAction<string[], 1, "please provide at least one document id">]>, undefined>;
1883
1898
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, undefined>;
1884
1899
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1900
+ readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1885
1901
  readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
1886
1902
  readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], "please select a valid project phase">, undefined>;
1887
1903
  readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
package/dist/index.js CHANGED
@@ -1702,7 +1702,26 @@ var SAssociateMediaContentTypesToClientMediaPlatform = v6.object({
1702
1702
  });
1703
1703
  var QuerySortClientProjects = v6.optional(
1704
1704
  v6.object({
1705
- key: v6.picklist(["id", "title", "slug", "project_phase", "createdAt", "updatedAt"]),
1705
+ key: v6.picklist([
1706
+ "id",
1707
+ "title",
1708
+ "slug",
1709
+ "is_active",
1710
+ "project_phase",
1711
+ "project_url",
1712
+ "project_type",
1713
+ "project_pricing",
1714
+ "project_address",
1715
+ "phone_number",
1716
+ "num_of_models",
1717
+ "num_of_units_remain",
1718
+ "buyer_profile",
1719
+ "social_organic_start_date",
1720
+ "paid_media_start_date",
1721
+ "go_date",
1722
+ "createdAt",
1723
+ "updatedAt"
1724
+ ]),
1706
1725
  order: v6.picklist(["ASC", "DESC"])
1707
1726
  })
1708
1727
  );
@@ -1715,17 +1734,30 @@ var QueryStrapiSearchClientProjects = v6.object({
1715
1734
  v6.maxValue(LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE)
1716
1735
  )
1717
1736
  ),
1737
+ client_id: IsValidOrUndefinedReferenceDocumentId,
1718
1738
  title: IsValidOrUndefinedShortStringNoMin,
1719
1739
  slug: IsValidOrUndefinedSlugNoMin,
1740
+ is_active: IsValidOrUndefinedIsBoolean,
1720
1741
  project_status: IsValidOrUndefinedClientProjectStatus,
1721
1742
  project_phase: IsValidOrUndefinedClientProjectPhase,
1722
- client_id: IsValidOrUndefinedReferenceDocumentId,
1743
+ project_url: IsValidOrUndefinedUrl,
1744
+ project_type: IsValidOrUndefinedShortStringNoMin,
1745
+ project_pricing: IsValidOrUndefinedShortStringNoMin,
1746
+ project_address: IsValidOrUndefinedShortStringNoMin,
1747
+ phone_number: IsValidOrUndefinedPhoneNumber,
1748
+ num_of_models: IsValidOrUndefinedMetricNumber,
1749
+ num_of_units_remain: IsValidOrUndefinedMetricNumber,
1750
+ buyer_profile: IsValidOrUndefinedShortStringNoMin,
1751
+ social_organic_start_date: IsValidOrUndefinedIsoDate,
1752
+ paid_media_start_date: IsValidOrUndefinedIsoDate,
1753
+ go_date: IsValidOrUndefinedIsoDate,
1723
1754
  sort: QuerySortClientProjects
1724
1755
  });
1725
1756
  var SCreateClientProjectDocument = v6.object({
1726
1757
  clients: IsValidReferenceDocumentIdList,
1727
1758
  title: IsValidShortString,
1728
1759
  slug: IsValidSlug,
1760
+ is_active: IsValidIsBoolean,
1729
1761
  project_status: IsValidClientProjectStatus,
1730
1762
  project_phase: IsValidClientProjectPhase,
1731
1763
  project_url: IsValidOrUndefinedUrl,
@@ -1744,6 +1776,7 @@ var SUpdateClientProjectDocument = v6.object({
1744
1776
  clients: IsValidOrUndefinedReferenceDocumentIdList,
1745
1777
  title: IsValidOrUndefinedShortString,
1746
1778
  slug: IsValidOrUndefinedSlug,
1779
+ is_active: IsValidOrUndefinedIsBoolean,
1747
1780
  project_status: IsValidOrUndefinedClientProjectStatus,
1748
1781
  project_phase: IsValidOrUndefinedClientProjectPhase,
1749
1782
  project_url: IsValidOrUndefinedUrl,