@getcommunity/gc-validators 0.0.90 → 0.0.92
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 +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -137,6 +137,10 @@ type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPost
|
|
|
137
137
|
declare const QueryStrapiSearchBlogPostsBySlug: v.ObjectSchema<{
|
|
138
138
|
readonly slug: v.StringSchema<undefined>;
|
|
139
139
|
readonly status: v.OptionalSchema<v.PicklistSchema<["draft", "published"], undefined>, "published">;
|
|
140
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
141
|
+
readonly key: v.PicklistSchema<["id", "title", "slug", "is_live", "is_featured", "is_public", "published", "createdAt", "updatedAt"], undefined>;
|
|
142
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
143
|
+
}, undefined>, undefined>;
|
|
140
144
|
}, undefined>;
|
|
141
145
|
type QueryStrapiSearchBlogPostsBySlug = v.InferOutput<typeof QueryStrapiSearchBlogPostsBySlug>;
|
|
142
146
|
|
|
@@ -471,18 +475,34 @@ declare const QueryStrapiByDocumentId: v.ObjectSchema<{
|
|
|
471
475
|
type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
|
|
472
476
|
declare const QueryStrapiBySlug: v.ObjectSchema<{
|
|
473
477
|
readonly slug: 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.">]>;
|
|
478
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
479
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
480
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
481
|
+
}, undefined>, undefined>;
|
|
474
482
|
}, undefined>;
|
|
475
483
|
type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
|
|
476
484
|
declare const QueryStrapiByEmail: v.ObjectSchema<{
|
|
477
485
|
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">]>;
|
|
486
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
487
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
488
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
489
|
+
}, undefined>, undefined>;
|
|
478
490
|
}, undefined>;
|
|
479
491
|
type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
|
|
480
492
|
declare const QueryStrapiByPhone: v.ObjectSchema<{
|
|
481
493
|
readonly phone: 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">]>;
|
|
494
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
495
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
496
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
497
|
+
}, undefined>, undefined>;
|
|
482
498
|
}, undefined>;
|
|
483
499
|
type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
|
|
484
500
|
declare const QueryStrapiByName: v.ObjectSchema<{
|
|
485
501
|
readonly name: 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.">]>;
|
|
502
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
503
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
504
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
505
|
+
}, undefined>, undefined>;
|
|
486
506
|
}, undefined>;
|
|
487
507
|
type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
488
508
|
|
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,10 @@ type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPost
|
|
|
137
137
|
declare const QueryStrapiSearchBlogPostsBySlug: v.ObjectSchema<{
|
|
138
138
|
readonly slug: v.StringSchema<undefined>;
|
|
139
139
|
readonly status: v.OptionalSchema<v.PicklistSchema<["draft", "published"], undefined>, "published">;
|
|
140
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
141
|
+
readonly key: v.PicklistSchema<["id", "title", "slug", "is_live", "is_featured", "is_public", "published", "createdAt", "updatedAt"], undefined>;
|
|
142
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
143
|
+
}, undefined>, undefined>;
|
|
140
144
|
}, undefined>;
|
|
141
145
|
type QueryStrapiSearchBlogPostsBySlug = v.InferOutput<typeof QueryStrapiSearchBlogPostsBySlug>;
|
|
142
146
|
|
|
@@ -471,18 +475,34 @@ declare const QueryStrapiByDocumentId: v.ObjectSchema<{
|
|
|
471
475
|
type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
|
|
472
476
|
declare const QueryStrapiBySlug: v.ObjectSchema<{
|
|
473
477
|
readonly slug: 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.">]>;
|
|
478
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
479
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
480
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
481
|
+
}, undefined>, undefined>;
|
|
474
482
|
}, undefined>;
|
|
475
483
|
type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
|
|
476
484
|
declare const QueryStrapiByEmail: v.ObjectSchema<{
|
|
477
485
|
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">]>;
|
|
486
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
487
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
488
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
489
|
+
}, undefined>, undefined>;
|
|
478
490
|
}, undefined>;
|
|
479
491
|
type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
|
|
480
492
|
declare const QueryStrapiByPhone: v.ObjectSchema<{
|
|
481
493
|
readonly phone: 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">]>;
|
|
494
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
495
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
496
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
497
|
+
}, undefined>, undefined>;
|
|
482
498
|
}, undefined>;
|
|
483
499
|
type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
|
|
484
500
|
declare const QueryStrapiByName: v.ObjectSchema<{
|
|
485
501
|
readonly name: 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.">]>;
|
|
502
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
503
|
+
readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
|
|
504
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
505
|
+
}, undefined>, undefined>;
|
|
486
506
|
}, undefined>;
|
|
487
507
|
type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
488
508
|
|
package/dist/index.js
CHANGED
|
@@ -135,7 +135,8 @@ var QueryStrapiSearchBlogPosts = v6.object({
|
|
|
135
135
|
});
|
|
136
136
|
var QueryStrapiSearchBlogPostsBySlug = v6.object({
|
|
137
137
|
slug: v6.string(),
|
|
138
|
-
status: v6.optional(v6.picklist(["draft", "published"]), "published")
|
|
138
|
+
status: v6.optional(v6.picklist(["draft", "published"]), "published"),
|
|
139
|
+
sort: QuerySortBlogPosts
|
|
139
140
|
});
|
|
140
141
|
var QuerySortCategories = v6.optional(
|
|
141
142
|
v6.object({
|
|
@@ -1163,16 +1164,20 @@ var QueryStrapiByDocumentId = v6.object({
|
|
|
1163
1164
|
documentId: IsValidReferenceDocumentId
|
|
1164
1165
|
});
|
|
1165
1166
|
var QueryStrapiBySlug = v6.object({
|
|
1166
|
-
slug: IsValidShortString
|
|
1167
|
+
slug: IsValidShortString,
|
|
1168
|
+
sort: QuerySortEntities
|
|
1167
1169
|
});
|
|
1168
1170
|
var QueryStrapiByEmail = v6.object({
|
|
1169
|
-
email: IsValidUserEmail
|
|
1171
|
+
email: IsValidUserEmail,
|
|
1172
|
+
sort: QuerySortEntities
|
|
1170
1173
|
});
|
|
1171
1174
|
var QueryStrapiByPhone = v6.object({
|
|
1172
|
-
phone: IsValidUserPhoneRequired
|
|
1175
|
+
phone: IsValidUserPhoneRequired,
|
|
1176
|
+
sort: QuerySortEntities
|
|
1173
1177
|
});
|
|
1174
1178
|
var QueryStrapiByName = v6.object({
|
|
1175
|
-
name: IsValidShortString
|
|
1179
|
+
name: IsValidShortString,
|
|
1180
|
+
sort: QuerySortEntities
|
|
1176
1181
|
});
|
|
1177
1182
|
var SCreateLead = v6.object({
|
|
1178
1183
|
first_name: IsValidFirstName,
|