@getcommunity/gc-validators 0.0.165 → 0.0.167
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 +32 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +32 -30
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2589,7 +2589,7 @@ declare const QueryStrapiSortComments: v.OptionalSchema<v.ObjectSchema<{
|
|
|
2589
2589
|
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
2590
2590
|
}, undefined>, undefined>;
|
|
2591
2591
|
type QueryStrapiSortComments = v.InferOutput<typeof QueryStrapiSortComments>;
|
|
2592
|
-
declare const QueryStrapiFilterComments: v.ObjectSchema<{
|
|
2592
|
+
declare const QueryStrapiFilterComments: v.OptionalSchema<v.ObjectSchema<{
|
|
2593
2593
|
readonly content: v.OptionalSchema<v.ObjectSchema<{
|
|
2594
2594
|
readonly containsi: 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.">]>;
|
|
2595
2595
|
}, undefined>, undefined>;
|
|
@@ -2605,11 +2605,11 @@ declare const QueryStrapiFilterComments: v.ObjectSchema<{
|
|
|
2605
2605
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
2606
2606
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], "You must provide a valid approval status.">;
|
|
2607
2607
|
}, undefined>, undefined>;
|
|
2608
|
-
}, undefined>;
|
|
2608
|
+
}, undefined>, undefined>;
|
|
2609
2609
|
type QueryStrapiFilterComments = v.InferOutput<typeof QueryStrapiFilterComments>;
|
|
2610
2610
|
declare const QueryStrapiComments: v.ObjectSchema<{
|
|
2611
2611
|
readonly relation: 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.">]>;
|
|
2612
|
-
readonly filters: v.ObjectSchema<{
|
|
2612
|
+
readonly filters: v.OptionalSchema<v.ObjectSchema<{
|
|
2613
2613
|
readonly content: v.OptionalSchema<v.ObjectSchema<{
|
|
2614
2614
|
readonly containsi: 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.">]>;
|
|
2615
2615
|
}, undefined>, undefined>;
|
|
@@ -2625,7 +2625,7 @@ declare const QueryStrapiComments: v.ObjectSchema<{
|
|
|
2625
2625
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
2626
2626
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], "You must provide a valid approval status.">;
|
|
2627
2627
|
}, undefined>, undefined>;
|
|
2628
|
-
}, undefined>;
|
|
2628
|
+
}, undefined>, undefined>;
|
|
2629
2629
|
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
2630
2630
|
readonly key: v.PicklistSchema<["id", "content", "blocked", "blockedThread", "approvalStatus", "createdAt", "updatedAt"], undefined>;
|
|
2631
2631
|
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
@@ -2636,7 +2636,7 @@ declare const QueryStrapiComments: v.ObjectSchema<{
|
|
|
2636
2636
|
type QueryStrapiComments = v.InferOutput<typeof QueryStrapiComments>;
|
|
2637
2637
|
declare const QueryStrapiCommentsByAuthor: v.ObjectSchema<{
|
|
2638
2638
|
readonly authorId: v.NumberSchema<"please provide a valid id">;
|
|
2639
|
-
readonly filters: v.ObjectSchema<{
|
|
2639
|
+
readonly filters: v.OptionalSchema<v.ObjectSchema<{
|
|
2640
2640
|
readonly content: v.OptionalSchema<v.ObjectSchema<{
|
|
2641
2641
|
readonly containsi: 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.">]>;
|
|
2642
2642
|
}, undefined>, undefined>;
|
|
@@ -2652,7 +2652,7 @@ declare const QueryStrapiCommentsByAuthor: v.ObjectSchema<{
|
|
|
2652
2652
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
2653
2653
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], "You must provide a valid approval status.">;
|
|
2654
2654
|
}, undefined>, undefined>;
|
|
2655
|
-
}, undefined>;
|
|
2655
|
+
}, undefined>, undefined>;
|
|
2656
2656
|
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
2657
2657
|
readonly key: v.PicklistSchema<["id", "content", "blocked", "blockedThread", "approvalStatus", "createdAt", "updatedAt"], undefined>;
|
|
2658
2658
|
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2589,7 +2589,7 @@ declare const QueryStrapiSortComments: v.OptionalSchema<v.ObjectSchema<{
|
|
|
2589
2589
|
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
2590
2590
|
}, undefined>, undefined>;
|
|
2591
2591
|
type QueryStrapiSortComments = v.InferOutput<typeof QueryStrapiSortComments>;
|
|
2592
|
-
declare const QueryStrapiFilterComments: v.ObjectSchema<{
|
|
2592
|
+
declare const QueryStrapiFilterComments: v.OptionalSchema<v.ObjectSchema<{
|
|
2593
2593
|
readonly content: v.OptionalSchema<v.ObjectSchema<{
|
|
2594
2594
|
readonly containsi: 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.">]>;
|
|
2595
2595
|
}, undefined>, undefined>;
|
|
@@ -2605,11 +2605,11 @@ declare const QueryStrapiFilterComments: v.ObjectSchema<{
|
|
|
2605
2605
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
2606
2606
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], "You must provide a valid approval status.">;
|
|
2607
2607
|
}, undefined>, undefined>;
|
|
2608
|
-
}, undefined>;
|
|
2608
|
+
}, undefined>, undefined>;
|
|
2609
2609
|
type QueryStrapiFilterComments = v.InferOutput<typeof QueryStrapiFilterComments>;
|
|
2610
2610
|
declare const QueryStrapiComments: v.ObjectSchema<{
|
|
2611
2611
|
readonly relation: 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.">]>;
|
|
2612
|
-
readonly filters: v.ObjectSchema<{
|
|
2612
|
+
readonly filters: v.OptionalSchema<v.ObjectSchema<{
|
|
2613
2613
|
readonly content: v.OptionalSchema<v.ObjectSchema<{
|
|
2614
2614
|
readonly containsi: 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.">]>;
|
|
2615
2615
|
}, undefined>, undefined>;
|
|
@@ -2625,7 +2625,7 @@ declare const QueryStrapiComments: v.ObjectSchema<{
|
|
|
2625
2625
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
2626
2626
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], "You must provide a valid approval status.">;
|
|
2627
2627
|
}, undefined>, undefined>;
|
|
2628
|
-
}, undefined>;
|
|
2628
|
+
}, undefined>, undefined>;
|
|
2629
2629
|
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
2630
2630
|
readonly key: v.PicklistSchema<["id", "content", "blocked", "blockedThread", "approvalStatus", "createdAt", "updatedAt"], undefined>;
|
|
2631
2631
|
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
@@ -2636,7 +2636,7 @@ declare const QueryStrapiComments: v.ObjectSchema<{
|
|
|
2636
2636
|
type QueryStrapiComments = v.InferOutput<typeof QueryStrapiComments>;
|
|
2637
2637
|
declare const QueryStrapiCommentsByAuthor: v.ObjectSchema<{
|
|
2638
2638
|
readonly authorId: v.NumberSchema<"please provide a valid id">;
|
|
2639
|
-
readonly filters: v.ObjectSchema<{
|
|
2639
|
+
readonly filters: v.OptionalSchema<v.ObjectSchema<{
|
|
2640
2640
|
readonly content: v.OptionalSchema<v.ObjectSchema<{
|
|
2641
2641
|
readonly containsi: 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.">]>;
|
|
2642
2642
|
}, undefined>, undefined>;
|
|
@@ -2652,7 +2652,7 @@ declare const QueryStrapiCommentsByAuthor: v.ObjectSchema<{
|
|
|
2652
2652
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
2653
2653
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], "You must provide a valid approval status.">;
|
|
2654
2654
|
}, undefined>, undefined>;
|
|
2655
|
-
}, undefined>;
|
|
2655
|
+
}, undefined>, undefined>;
|
|
2656
2656
|
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
2657
2657
|
readonly key: v.PicklistSchema<["id", "content", "blocked", "blockedThread", "approvalStatus", "createdAt", "updatedAt"], undefined>;
|
|
2658
2658
|
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
package/dist/index.js
CHANGED
|
@@ -2058,36 +2058,38 @@ var QueryStrapiSortComments = v6.optional(
|
|
|
2058
2058
|
order: v6.picklist(["ASC", "DESC"])
|
|
2059
2059
|
})
|
|
2060
2060
|
);
|
|
2061
|
-
var QueryStrapiFilterComments = v6.
|
|
2062
|
-
|
|
2063
|
-
v6.
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
v6.
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
v6.
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
v6.
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
v6.
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2061
|
+
var QueryStrapiFilterComments = v6.optional(
|
|
2062
|
+
v6.object({
|
|
2063
|
+
content: v6.optional(
|
|
2064
|
+
v6.object({
|
|
2065
|
+
containsi: IsValidShortStringNoMin
|
|
2066
|
+
})
|
|
2067
|
+
),
|
|
2068
|
+
blocked: v6.optional(
|
|
2069
|
+
v6.object({
|
|
2070
|
+
eq: IsValidIsBoolean
|
|
2071
|
+
})
|
|
2072
|
+
),
|
|
2073
|
+
blockedThread: v6.optional(
|
|
2074
|
+
v6.object({
|
|
2075
|
+
eq: IsValidIsBoolean
|
|
2076
|
+
})
|
|
2077
|
+
),
|
|
2078
|
+
removed: v6.optional(
|
|
2079
|
+
v6.object({
|
|
2080
|
+
eq: IsValidIsBoolean
|
|
2081
|
+
})
|
|
2082
|
+
),
|
|
2083
|
+
approvalStatus: v6.optional(
|
|
2084
|
+
v6.object({
|
|
2085
|
+
eq: v6.picklist(
|
|
2086
|
+
CommentApprovalStatusOptions,
|
|
2087
|
+
"You must provide a valid approval status."
|
|
2088
|
+
)
|
|
2089
|
+
})
|
|
2090
|
+
)
|
|
2091
|
+
})
|
|
2092
|
+
);
|
|
2091
2093
|
var QueryStrapiComments = v6.object({
|
|
2092
2094
|
relation: IsValidShortString,
|
|
2093
2095
|
filters: QueryStrapiFilterComments,
|