@getcommunity/gc-validators 0.0.81 → 0.0.83
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -34
- package/dist/index.d.ts +10 -34
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -195,7 +195,7 @@ declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
|
|
|
195
195
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
196
196
|
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, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
197
197
|
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>;
|
|
198
|
-
readonly project_phase: v.OptionalSchema<v.PicklistSchema<
|
|
198
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
199
199
|
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>;
|
|
200
200
|
}, undefined>;
|
|
201
201
|
type QueryStrapiSearchClientProjects = v.InferOutput<typeof QueryStrapiSearchClientProjects>;
|
|
@@ -204,7 +204,7 @@ declare const SCreateClientProjectDocument: v.ObjectSchema<{
|
|
|
204
204
|
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
205
205
|
readonly slug: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
206
206
|
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">]>;
|
|
207
|
-
readonly project_phase: v.PicklistSchema<
|
|
207
|
+
readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">;
|
|
208
208
|
}, undefined>;
|
|
209
209
|
type SCreateClientProjectDocument = v.InferOutput<typeof SCreateClientProjectDocument>;
|
|
210
210
|
declare const SUpdateClientProjectDocument: v.ObjectSchema<{
|
|
@@ -212,7 +212,7 @@ declare const SUpdateClientProjectDocument: v.ObjectSchema<{
|
|
|
212
212
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
213
213
|
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, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
214
214
|
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>;
|
|
215
|
-
readonly project_phase: v.OptionalSchema<v.PicklistSchema<
|
|
215
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
216
216
|
}, undefined>;
|
|
217
217
|
type SUpdateClientProjectDocument = v.InferOutput<typeof SUpdateClientProjectDocument>;
|
|
218
218
|
declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
@@ -222,7 +222,7 @@ declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
|
222
222
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
223
223
|
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, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
224
224
|
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>;
|
|
225
|
-
readonly project_phase: v.OptionalSchema<v.PicklistSchema<
|
|
225
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
226
226
|
}, undefined>;
|
|
227
227
|
}, undefined>;
|
|
228
228
|
type SUpdateClientProjectDocumentRequest = v.InferOutput<typeof SUpdateClientProjectDocumentRequest>;
|
|
@@ -1523,7 +1523,7 @@ type ComponentSlideshow = {
|
|
|
1523
1523
|
} & Slideshow;
|
|
1524
1524
|
|
|
1525
1525
|
type UtmClassificationKey = "organic" | "paid";
|
|
1526
|
-
type UtmSourceKey = "all" | "meta" | "meta_facebook" | "meta_instagram" | "tiktok" | "twitter" | "linkedin" | "pinterest" | "youtube" | "
|
|
1526
|
+
type UtmSourceKey = "all" | "meta" | "meta_facebook" | "meta_instagram" | "tiktok" | "twitter" | "linkedin" | "pinterest" | "google" | "youtube" | "bing" | "sms" | "email" | "realtor" | "zillow" | "bdx_nhs" | "yelp" | "qr_code" | "stackadapt" | "newswire" | "propellant" | "mobile_app" | "gcflytour" | "referral";
|
|
1527
1527
|
type UtmOption = {
|
|
1528
1528
|
id: number;
|
|
1529
1529
|
label: string;
|
|
@@ -1606,33 +1606,9 @@ type ClientMediaPlatformDocument = {
|
|
|
1606
1606
|
|
|
1607
1607
|
declare const ClientProjectStatusOptions: readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"];
|
|
1608
1608
|
type ClientProjectStatus = (typeof ClientProjectStatusOptions)[number];
|
|
1609
|
-
declare const ClientProjectPhaseSelectOptions:
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
readonly description: "General/Company branded content";
|
|
1613
|
-
}, {
|
|
1614
|
-
readonly label: "Phase 1";
|
|
1615
|
-
readonly value: "p1";
|
|
1616
|
-
readonly description: "Interest list building";
|
|
1617
|
-
}, {
|
|
1618
|
-
readonly label: "Phase 2";
|
|
1619
|
-
readonly value: "p2";
|
|
1620
|
-
readonly description: "Pre-qualification, pre-sales";
|
|
1621
|
-
}, {
|
|
1622
|
-
readonly label: "Phase 3";
|
|
1623
|
-
readonly value: "p3";
|
|
1624
|
-
readonly description: "Grand opening, now open, available";
|
|
1625
|
-
}, {
|
|
1626
|
-
readonly label: "Phase 4";
|
|
1627
|
-
readonly value: "p4";
|
|
1628
|
-
readonly description: "For sale, maintenance period";
|
|
1629
|
-
}, {
|
|
1630
|
-
readonly label: "Phase 5";
|
|
1631
|
-
readonly value: "p5";
|
|
1632
|
-
readonly description: "For sale, maintenance period";
|
|
1633
|
-
}];
|
|
1634
|
-
declare const ClientProjectPhaseOptions: ("brand" | "p1" | "p2" | "p3" | "p4" | "p5")[];
|
|
1635
|
-
type ClientProjectPhase = (typeof ClientProjectPhaseSelectOptions)[number]["value"];
|
|
1609
|
+
declare const ClientProjectPhaseSelectOptions: FormSelectInputOption[];
|
|
1610
|
+
declare const ClientProjectPhaseOptions: readonly ["brand", "p1", "p2", "p3", "p4", "p5"];
|
|
1611
|
+
type ClientProjectPhase = (typeof ClientProjectPhaseOptions)[number];
|
|
1636
1612
|
type ClientProjectDocument = {
|
|
1637
1613
|
title: string;
|
|
1638
1614
|
slug: string;
|
|
@@ -1927,8 +1903,8 @@ declare function omitUndefined<T extends Record<string, any>>(obj: T): Partial<T
|
|
|
1927
1903
|
|
|
1928
1904
|
declare const IsValidClientProjectStatus: 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">]>;
|
|
1929
1905
|
declare const IsValidOrUndefinedClientProjectStatus: 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>;
|
|
1930
|
-
declare const IsValidClientProjectPhase: v.PicklistSchema<
|
|
1931
|
-
declare const IsValidOrUndefinedClientProjectPhase: v.OptionalSchema<v.PicklistSchema<
|
|
1906
|
+
declare const IsValidClientProjectPhase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">;
|
|
1907
|
+
declare const IsValidOrUndefinedClientProjectPhase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
1932
1908
|
|
|
1933
1909
|
declare const IsValidClientUserScope: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid scope">, v.PicklistSchema<ClientEntityScope[], "invalid client scope provided">]>;
|
|
1934
1910
|
declare const IsValidClientUserScopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid scope">, v.PicklistSchema<ClientEntityScope[], "invalid client scope provided">]>, "please provide an array of scopes">, v.MaxLengthAction<ClientEntityScope[], number, "you cannot provide more scopes than available">]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
|
|
|
195
195
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
196
196
|
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, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
197
197
|
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>;
|
|
198
|
-
readonly project_phase: v.OptionalSchema<v.PicklistSchema<
|
|
198
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
199
199
|
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>;
|
|
200
200
|
}, undefined>;
|
|
201
201
|
type QueryStrapiSearchClientProjects = v.InferOutput<typeof QueryStrapiSearchClientProjects>;
|
|
@@ -204,7 +204,7 @@ declare const SCreateClientProjectDocument: v.ObjectSchema<{
|
|
|
204
204
|
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
205
205
|
readonly slug: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
206
206
|
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">]>;
|
|
207
|
-
readonly project_phase: v.PicklistSchema<
|
|
207
|
+
readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">;
|
|
208
208
|
}, undefined>;
|
|
209
209
|
type SCreateClientProjectDocument = v.InferOutput<typeof SCreateClientProjectDocument>;
|
|
210
210
|
declare const SUpdateClientProjectDocument: v.ObjectSchema<{
|
|
@@ -212,7 +212,7 @@ declare const SUpdateClientProjectDocument: v.ObjectSchema<{
|
|
|
212
212
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
213
213
|
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, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
214
214
|
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>;
|
|
215
|
-
readonly project_phase: v.OptionalSchema<v.PicklistSchema<
|
|
215
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
216
216
|
}, undefined>;
|
|
217
217
|
type SUpdateClientProjectDocument = v.InferOutput<typeof SUpdateClientProjectDocument>;
|
|
218
218
|
declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
@@ -222,7 +222,7 @@ declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
|
222
222
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
223
223
|
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, please abbreviate your string to be 255 characters or less.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
224
224
|
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>;
|
|
225
|
-
readonly project_phase: v.OptionalSchema<v.PicklistSchema<
|
|
225
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
226
226
|
}, undefined>;
|
|
227
227
|
}, undefined>;
|
|
228
228
|
type SUpdateClientProjectDocumentRequest = v.InferOutput<typeof SUpdateClientProjectDocumentRequest>;
|
|
@@ -1523,7 +1523,7 @@ type ComponentSlideshow = {
|
|
|
1523
1523
|
} & Slideshow;
|
|
1524
1524
|
|
|
1525
1525
|
type UtmClassificationKey = "organic" | "paid";
|
|
1526
|
-
type UtmSourceKey = "all" | "meta" | "meta_facebook" | "meta_instagram" | "tiktok" | "twitter" | "linkedin" | "pinterest" | "youtube" | "
|
|
1526
|
+
type UtmSourceKey = "all" | "meta" | "meta_facebook" | "meta_instagram" | "tiktok" | "twitter" | "linkedin" | "pinterest" | "google" | "youtube" | "bing" | "sms" | "email" | "realtor" | "zillow" | "bdx_nhs" | "yelp" | "qr_code" | "stackadapt" | "newswire" | "propellant" | "mobile_app" | "gcflytour" | "referral";
|
|
1527
1527
|
type UtmOption = {
|
|
1528
1528
|
id: number;
|
|
1529
1529
|
label: string;
|
|
@@ -1606,33 +1606,9 @@ type ClientMediaPlatformDocument = {
|
|
|
1606
1606
|
|
|
1607
1607
|
declare const ClientProjectStatusOptions: readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"];
|
|
1608
1608
|
type ClientProjectStatus = (typeof ClientProjectStatusOptions)[number];
|
|
1609
|
-
declare const ClientProjectPhaseSelectOptions:
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
readonly description: "General/Company branded content";
|
|
1613
|
-
}, {
|
|
1614
|
-
readonly label: "Phase 1";
|
|
1615
|
-
readonly value: "p1";
|
|
1616
|
-
readonly description: "Interest list building";
|
|
1617
|
-
}, {
|
|
1618
|
-
readonly label: "Phase 2";
|
|
1619
|
-
readonly value: "p2";
|
|
1620
|
-
readonly description: "Pre-qualification, pre-sales";
|
|
1621
|
-
}, {
|
|
1622
|
-
readonly label: "Phase 3";
|
|
1623
|
-
readonly value: "p3";
|
|
1624
|
-
readonly description: "Grand opening, now open, available";
|
|
1625
|
-
}, {
|
|
1626
|
-
readonly label: "Phase 4";
|
|
1627
|
-
readonly value: "p4";
|
|
1628
|
-
readonly description: "For sale, maintenance period";
|
|
1629
|
-
}, {
|
|
1630
|
-
readonly label: "Phase 5";
|
|
1631
|
-
readonly value: "p5";
|
|
1632
|
-
readonly description: "For sale, maintenance period";
|
|
1633
|
-
}];
|
|
1634
|
-
declare const ClientProjectPhaseOptions: ("brand" | "p1" | "p2" | "p3" | "p4" | "p5")[];
|
|
1635
|
-
type ClientProjectPhase = (typeof ClientProjectPhaseSelectOptions)[number]["value"];
|
|
1609
|
+
declare const ClientProjectPhaseSelectOptions: FormSelectInputOption[];
|
|
1610
|
+
declare const ClientProjectPhaseOptions: readonly ["brand", "p1", "p2", "p3", "p4", "p5"];
|
|
1611
|
+
type ClientProjectPhase = (typeof ClientProjectPhaseOptions)[number];
|
|
1636
1612
|
type ClientProjectDocument = {
|
|
1637
1613
|
title: string;
|
|
1638
1614
|
slug: string;
|
|
@@ -1927,8 +1903,8 @@ declare function omitUndefined<T extends Record<string, any>>(obj: T): Partial<T
|
|
|
1927
1903
|
|
|
1928
1904
|
declare const IsValidClientProjectStatus: 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">]>;
|
|
1929
1905
|
declare const IsValidOrUndefinedClientProjectStatus: 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>;
|
|
1930
|
-
declare const IsValidClientProjectPhase: v.PicklistSchema<
|
|
1931
|
-
declare const IsValidOrUndefinedClientProjectPhase: v.OptionalSchema<v.PicklistSchema<
|
|
1906
|
+
declare const IsValidClientProjectPhase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">;
|
|
1907
|
+
declare const IsValidOrUndefinedClientProjectPhase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5"], "please select a valid project phase">, undefined>;
|
|
1932
1908
|
|
|
1933
1909
|
declare const IsValidClientUserScope: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid scope">, v.PicklistSchema<ClientEntityScope[], "invalid client scope provided">]>;
|
|
1934
1910
|
declare const IsValidClientUserScopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid scope">, v.PicklistSchema<ClientEntityScope[], "invalid client scope provided">]>, "please provide an array of scopes">, v.MaxLengthAction<ClientEntityScope[], number, "you cannot provide more scopes than available">]>;
|
package/dist/index.js
CHANGED
|
@@ -157,9 +157,14 @@ var ClientProjectPhaseSelectOptions = [
|
|
|
157
157
|
description: "For sale, maintenance period"
|
|
158
158
|
}
|
|
159
159
|
];
|
|
160
|
-
var ClientProjectPhaseOptions =
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
var ClientProjectPhaseOptions = [
|
|
161
|
+
"brand",
|
|
162
|
+
"p1",
|
|
163
|
+
"p2",
|
|
164
|
+
"p3",
|
|
165
|
+
"p4",
|
|
166
|
+
"p5"
|
|
167
|
+
];
|
|
163
168
|
|
|
164
169
|
// src/validators/validators-client-projects.ts
|
|
165
170
|
var IsValidClientProjectStatus = v5.pipe(
|