@getcommunity/gc-validators 0.0.78 → 0.0.79
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 +6 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -113,11 +113,11 @@ declare const ERROR_MESSAGE_REGEX_URL_SLUG = "can only contain letters, numbers,
|
|
|
113
113
|
declare const REGEX_URL_SLUG: RegExp;
|
|
114
114
|
|
|
115
115
|
declare const QueryStrapiSearchBlogPosts: v.ObjectSchema<{
|
|
116
|
-
readonly page: v.
|
|
117
|
-
readonly size: v.
|
|
118
|
-
readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>,
|
|
119
|
-
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>,
|
|
120
|
-
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>,
|
|
116
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
117
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
118
|
+
readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
119
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
|
|
120
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
|
|
121
121
|
readonly status: v.OptionalSchema<v.PicklistSchema<["draft", "published"], undefined>, undefined>;
|
|
122
122
|
}, undefined>;
|
|
123
123
|
type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPosts>;
|
package/dist/index.d.ts
CHANGED
|
@@ -113,11 +113,11 @@ declare const ERROR_MESSAGE_REGEX_URL_SLUG = "can only contain letters, numbers,
|
|
|
113
113
|
declare const REGEX_URL_SLUG: RegExp;
|
|
114
114
|
|
|
115
115
|
declare const QueryStrapiSearchBlogPosts: v.ObjectSchema<{
|
|
116
|
-
readonly page: v.
|
|
117
|
-
readonly size: v.
|
|
118
|
-
readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>,
|
|
119
|
-
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>,
|
|
120
|
-
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>,
|
|
116
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
117
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
118
|
+
readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
119
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
|
|
120
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
|
|
121
121
|
readonly status: v.OptionalSchema<v.PicklistSchema<["draft", "published"], undefined>, undefined>;
|
|
122
122
|
}, undefined>;
|
|
123
123
|
type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPosts>;
|
package/dist/index.js
CHANGED
|
@@ -103,21 +103,13 @@ var REGEX_NANP_PHONE = /^(?:\+?1[\s.-]?)?(?:\(?([2-9]\d{2})\)?[\s.-]?)(?:([2-9](
|
|
|
103
103
|
var ERROR_MESSAGE_REGEX_URL_SLUG = `can only contain letters, numbers, and the special characters: - _ .`;
|
|
104
104
|
var REGEX_URL_SLUG = /^([a-zA-Z0-9._-]+)?$/;
|
|
105
105
|
var QueryStrapiSearchBlogPosts = v5.object({
|
|
106
|
-
page: v5.
|
|
107
|
-
size: v5.
|
|
108
|
-
v5.
|
|
109
|
-
v5.pipe(
|
|
110
|
-
v5.number(),
|
|
111
|
-
v5.minValue(1),
|
|
112
|
-
v5.maxValue(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE)
|
|
113
|
-
),
|
|
114
|
-
LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE
|
|
115
|
-
),
|
|
116
|
-
LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE
|
|
106
|
+
page: v5.optional(v5.pipe(v5.number(), v5.minValue(1))),
|
|
107
|
+
size: v5.optional(
|
|
108
|
+
v5.pipe(v5.number(), v5.minValue(1), v5.maxValue(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE))
|
|
117
109
|
),
|
|
118
|
-
search: v5.optional(v5.pipe(v5.string(), v5.maxLength(255))
|
|
119
|
-
category: v5.optional(v5.pipe(v5.string(), v5.maxLength(100))
|
|
120
|
-
tags: v5.optional(v5.array(v5.pipe(v5.string(), v5.maxLength(100)))
|
|
110
|
+
search: v5.optional(v5.pipe(v5.string(), v5.maxLength(255))),
|
|
111
|
+
category: v5.optional(v5.pipe(v5.string(), v5.maxLength(100))),
|
|
112
|
+
tags: v5.optional(v5.array(v5.pipe(v5.string(), v5.maxLength(100)))),
|
|
121
113
|
status: v5.optional(v5.picklist(["draft", "published"]))
|
|
122
114
|
});
|
|
123
115
|
var QueryStrapiSearchBlogPostsBySlug = v5.object({
|