@getcommunity/gc-validators 0.0.124 → 0.0.125
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2027,7 +2027,7 @@ declare const QueryStrapiSearchMediaPlatforms: v.ObjectSchema<{
|
|
|
2027
2027
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
|
|
2028
2028
|
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>;
|
|
2029
2029
|
readonly slug: 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>;
|
|
2030
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2030
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2031
2031
|
readonly content_types: 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, undefined>]>, undefined>;
|
|
2032
2032
|
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
2033
2033
|
readonly key: v.PicklistSchema<["id", "title", "slug", "utm_key", "createdAt", "updatedAt"], undefined>;
|
|
@@ -2038,14 +2038,14 @@ type QueryStrapiSearchMediaPlatforms = v.InferOutput<typeof QueryStrapiSearchMed
|
|
|
2038
2038
|
declare const SCreateMediaPlatformDocument: v.ObjectSchema<{
|
|
2039
2039
|
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.">]>;
|
|
2040
2040
|
readonly slug: 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: - _ .">]>;
|
|
2041
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2041
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2042
2042
|
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
2043
2043
|
}, undefined>;
|
|
2044
2044
|
type SCreateMediaPlatformDocument = v.InferOutput<typeof SCreateMediaPlatformDocument>;
|
|
2045
2045
|
declare const SUpdateMediaPlatformDocument: v.ObjectSchema<{
|
|
2046
2046
|
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>;
|
|
2047
2047
|
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>;
|
|
2048
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2048
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2049
2049
|
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
2050
2050
|
}, undefined>;
|
|
2051
2051
|
type SUpdateMediaPlatformDocument = v.InferOutput<typeof SUpdateMediaPlatformDocument>;
|
|
@@ -2054,7 +2054,7 @@ declare const SUpdateMediaPlatformDocumentRequest: v.ObjectSchema<{
|
|
|
2054
2054
|
readonly data: v.ObjectSchema<{
|
|
2055
2055
|
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>;
|
|
2056
2056
|
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>;
|
|
2057
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2057
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2058
2058
|
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
2059
2059
|
}, undefined>;
|
|
2060
2060
|
}, undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2027,7 +2027,7 @@ declare const QueryStrapiSearchMediaPlatforms: v.ObjectSchema<{
|
|
|
2027
2027
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
|
|
2028
2028
|
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>;
|
|
2029
2029
|
readonly slug: 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>;
|
|
2030
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2030
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2031
2031
|
readonly content_types: 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, undefined>]>, undefined>;
|
|
2032
2032
|
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
2033
2033
|
readonly key: v.PicklistSchema<["id", "title", "slug", "utm_key", "createdAt", "updatedAt"], undefined>;
|
|
@@ -2038,14 +2038,14 @@ type QueryStrapiSearchMediaPlatforms = v.InferOutput<typeof QueryStrapiSearchMed
|
|
|
2038
2038
|
declare const SCreateMediaPlatformDocument: v.ObjectSchema<{
|
|
2039
2039
|
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.">]>;
|
|
2040
2040
|
readonly slug: 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: - _ .">]>;
|
|
2041
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2041
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2042
2042
|
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
2043
2043
|
}, undefined>;
|
|
2044
2044
|
type SCreateMediaPlatformDocument = v.InferOutput<typeof SCreateMediaPlatformDocument>;
|
|
2045
2045
|
declare const SUpdateMediaPlatformDocument: v.ObjectSchema<{
|
|
2046
2046
|
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>;
|
|
2047
2047
|
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>;
|
|
2048
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2048
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2049
2049
|
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
2050
2050
|
}, undefined>;
|
|
2051
2051
|
type SUpdateMediaPlatformDocument = v.InferOutput<typeof SUpdateMediaPlatformDocument>;
|
|
@@ -2054,7 +2054,7 @@ declare const SUpdateMediaPlatformDocumentRequest: v.ObjectSchema<{
|
|
|
2054
2054
|
readonly data: v.ObjectSchema<{
|
|
2055
2055
|
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>;
|
|
2056
2056
|
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>;
|
|
2057
|
-
readonly utm_key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
2057
|
+
readonly utm_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_key is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the utm_key is too long, it must be 255 characters or less">, v.RegexAction<string, "utm_key can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
2058
2058
|
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
2059
2059
|
}, undefined>;
|
|
2060
2060
|
}, undefined>;
|
package/dist/index.js
CHANGED
|
@@ -1867,7 +1867,7 @@ var QueryStrapiSearchMediaPlatforms = v6.object({
|
|
|
1867
1867
|
),
|
|
1868
1868
|
title: IsValidOrUndefinedShortString,
|
|
1869
1869
|
slug: IsValidOrUndefinedShortString,
|
|
1870
|
-
utm_key:
|
|
1870
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
1871
1871
|
content_types: v6.optional(
|
|
1872
1872
|
v6.pipe(v6.array(IsValidReferenceDocumentId), v6.minLength(1))
|
|
1873
1873
|
),
|
|
@@ -1876,13 +1876,13 @@ var QueryStrapiSearchMediaPlatforms = v6.object({
|
|
|
1876
1876
|
var SCreateMediaPlatformDocument = v6.object({
|
|
1877
1877
|
title: IsValidShortString,
|
|
1878
1878
|
slug: IsValidSlug,
|
|
1879
|
-
utm_key:
|
|
1879
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
1880
1880
|
description: IsValidOrUndefinedLongString
|
|
1881
1881
|
});
|
|
1882
1882
|
var SUpdateMediaPlatformDocument = v6.object({
|
|
1883
1883
|
title: IsValidOrUndefinedShortString,
|
|
1884
1884
|
slug: IsValidOrUndefinedSlug,
|
|
1885
|
-
utm_key:
|
|
1885
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
1886
1886
|
description: IsValidOrUndefinedLongString
|
|
1887
1887
|
});
|
|
1888
1888
|
var SUpdateMediaPlatformDocumentRequest = v6.object({
|