@getcommunity/gc-validators 0.0.168 → 0.0.170

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.d.cts CHANGED
@@ -2645,6 +2645,7 @@ declare const QueryStrapiCommentsInHeirarchy: v.ObjectSchema<{
2645
2645
  readonly eq: v.BooleanSchema<"this value must be a boolean">;
2646
2646
  }, undefined>, undefined>;
2647
2647
  }, undefined>, undefined>;
2648
+ readonly nested_levels: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
2648
2649
  }, undefined>;
2649
2650
  type QueryStrapiCommentsInHeirarchy = v.InferOutput<typeof QueryStrapiCommentsInHeirarchy>;
2650
2651
  declare const QueryStrapiCommentsFlat: v.ObjectSchema<{
@@ -2689,7 +2690,7 @@ declare const SCreateCommentDocument: v.ObjectSchema<{
2689
2690
  readonly id: v.NumberSchema<"please provide a valid id">;
2690
2691
  readonly name: 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.">]>;
2691
2692
  }, undefined>;
2692
- readonly threadOf: v.OptionalSchema<v.NumberSchema<"please provide a valid id">, undefined>;
2693
+ readonly threadOf: 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>;
2693
2694
  }, undefined>;
2694
2695
  type SCreateCommentDocument = v.InferOutput<typeof SCreateCommentDocument>;
2695
2696
  declare const SUpdateCommentDocument: v.ObjectSchema<{
package/dist/index.d.ts CHANGED
@@ -2645,6 +2645,7 @@ declare const QueryStrapiCommentsInHeirarchy: v.ObjectSchema<{
2645
2645
  readonly eq: v.BooleanSchema<"this value must be a boolean">;
2646
2646
  }, undefined>, undefined>;
2647
2647
  }, undefined>, undefined>;
2648
+ readonly nested_levels: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
2648
2649
  }, undefined>;
2649
2650
  type QueryStrapiCommentsInHeirarchy = v.InferOutput<typeof QueryStrapiCommentsInHeirarchy>;
2650
2651
  declare const QueryStrapiCommentsFlat: v.ObjectSchema<{
@@ -2689,7 +2690,7 @@ declare const SCreateCommentDocument: v.ObjectSchema<{
2689
2690
  readonly id: v.NumberSchema<"please provide a valid id">;
2690
2691
  readonly name: 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.">]>;
2691
2692
  }, undefined>;
2692
- readonly threadOf: v.OptionalSchema<v.NumberSchema<"please provide a valid id">, undefined>;
2693
+ readonly threadOf: 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>;
2693
2694
  }, undefined>;
2694
2695
  type SCreateCommentDocument = v.InferOutput<typeof SCreateCommentDocument>;
2695
2696
  declare const SUpdateCommentDocument: v.ObjectSchema<{
package/dist/index.js CHANGED
@@ -2099,7 +2099,8 @@ var QueryStrapiFilterComments = v6.object({
2099
2099
  var QueryStrapiCommentsInHeirarchy = v6.object({
2100
2100
  relation: IsValidShortString,
2101
2101
  sort: v6.optional(v6.array(QueryStrapiSortComments)),
2102
- filters: v6.optional(QueryStrapiFilterComments)
2102
+ filters: v6.optional(QueryStrapiFilterComments),
2103
+ nested_levels: v6.optional(v6.pipe(v6.number(), v6.minValue(1)))
2103
2104
  });
2104
2105
  var QueryStrapiCommentsFlat = v6.object({
2105
2106
  relation: IsValidShortString,
@@ -2121,7 +2122,7 @@ var SCreateCommentDocument = v6.object({
2121
2122
  id: IsValidReferenceId,
2122
2123
  name: IsValidShortString
2123
2124
  }),
2124
- threadOf: IsValidOrUndefinedReferenceId
2125
+ threadOf: IsValidOrUndefinedShortStringNoMin
2125
2126
  });
2126
2127
  var SUpdateCommentDocument = v6.object({
2127
2128
  relation: IsValidShortString,