@getcommunity/gc-validators 0.0.294 → 0.0.296

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.
Files changed (159) hide show
  1. package/dist/base/index.cjs +1 -1
  2. package/dist/base/index.d.cts +2 -2
  3. package/dist/base/index.d.mts +2 -2
  4. package/dist/base/index.mjs +1 -1
  5. package/dist/{boolean-CA_mX99H.mjs → boolean-DDWUN-57.mjs} +1 -1
  6. package/dist/{boolean-BadU8QJ7.cjs → boolean-Dsl1C-Ra.cjs} +1 -1
  7. package/dist/entities/audit-log/query.cjs +3 -3
  8. package/dist/entities/audit-log/query.d.cts +7 -22
  9. package/dist/entities/audit-log/query.d.mts +7 -22
  10. package/dist/entities/audit-log/query.mjs +3 -3
  11. package/dist/entities/blog-post/query.cjs +4 -4
  12. package/dist/entities/blog-post/query.d.cts +7 -22
  13. package/dist/entities/blog-post/query.d.mts +7 -22
  14. package/dist/entities/blog-post/query.mjs +4 -4
  15. package/dist/entities/category/query.cjs +2 -2
  16. package/dist/entities/category/query.d.cts +3 -3
  17. package/dist/entities/category/query.d.mts +3 -3
  18. package/dist/entities/category/query.mjs +2 -2
  19. package/dist/entities/client/query.cjs +4 -4
  20. package/dist/entities/client/query.d.cts +1 -1
  21. package/dist/entities/client/query.d.mts +1 -1
  22. package/dist/entities/client/query.mjs +4 -4
  23. package/dist/entities/client-content-pillar/query.cjs +1 -1
  24. package/dist/entities/client-content-pillar/query.d.cts +1 -1
  25. package/dist/entities/client-content-pillar/query.d.mts +1 -1
  26. package/dist/entities/client-content-pillar/query.mjs +1 -1
  27. package/dist/entities/client-email/query.cjs +2 -2
  28. package/dist/entities/client-email/query.d.cts +7 -6
  29. package/dist/entities/client-email/query.d.mts +7 -6
  30. package/dist/entities/client-email/query.mjs +2 -2
  31. package/dist/entities/client-media-platform/query.cjs +1 -1
  32. package/dist/entities/client-media-platform/query.d.cts +1 -1
  33. package/dist/entities/client-media-platform/query.d.mts +1 -1
  34. package/dist/entities/client-media-platform/query.mjs +1 -1
  35. package/dist/entities/client-project/query.cjs +4 -4
  36. package/dist/entities/client-project/query.d.cts +12 -42
  37. package/dist/entities/client-project/query.d.mts +12 -42
  38. package/dist/entities/client-project/query.mjs +4 -4
  39. package/dist/entities/client-report/query.cjs +4 -4
  40. package/dist/entities/client-report/query.d.cts +8 -23
  41. package/dist/entities/client-report/query.d.mts +8 -23
  42. package/dist/entities/client-report/query.mjs +4 -4
  43. package/dist/entities/client-styleguide/query.cjs +3 -3
  44. package/dist/entities/client-styleguide/query.d.cts +4 -4
  45. package/dist/entities/client-styleguide/query.d.mts +4 -4
  46. package/dist/entities/client-styleguide/query.mjs +3 -3
  47. package/dist/entities/client-user/query.cjs +1 -1
  48. package/dist/entities/client-user/query.d.cts +1 -1
  49. package/dist/entities/client-user/query.d.mts +1 -1
  50. package/dist/entities/client-user/query.mjs +1 -1
  51. package/dist/entities/content-pillar/query.cjs +1 -1
  52. package/dist/entities/content-pillar/query.d.cts +1 -1
  53. package/dist/entities/content-pillar/query.d.mts +1 -1
  54. package/dist/entities/content-pillar/query.mjs +1 -1
  55. package/dist/entities/gcflytour/query.cjs +1 -1
  56. package/dist/entities/gcflytour/query.d.cts +1 -1
  57. package/dist/entities/gcflytour/query.d.mts +1 -1
  58. package/dist/entities/gcflytour/query.mjs +1 -1
  59. package/dist/entities/gcflytour-snap/query.cjs +1 -1
  60. package/dist/entities/gcflytour-snap/query.d.cts +1 -1
  61. package/dist/entities/gcflytour-snap/query.d.mts +1 -1
  62. package/dist/entities/gcflytour-snap/query.mjs +1 -1
  63. package/dist/entities/media-content-type/query.cjs +1 -1
  64. package/dist/entities/media-content-type/query.d.cts +1 -1
  65. package/dist/entities/media-content-type/query.d.mts +1 -1
  66. package/dist/entities/media-content-type/query.mjs +1 -1
  67. package/dist/entities/media-creative-format/query.cjs +1 -1
  68. package/dist/entities/media-creative-format/query.d.cts +1 -1
  69. package/dist/entities/media-creative-format/query.d.mts +1 -1
  70. package/dist/entities/media-creative-format/query.mjs +1 -1
  71. package/dist/entities/media-medium/query.cjs +1 -1
  72. package/dist/entities/media-medium/query.d.cts +1 -1
  73. package/dist/entities/media-medium/query.d.mts +1 -1
  74. package/dist/entities/media-medium/query.mjs +1 -1
  75. package/dist/entities/media-platform/query.cjs +1 -1
  76. package/dist/entities/media-platform/query.d.cts +1 -1
  77. package/dist/entities/media-platform/query.d.mts +1 -1
  78. package/dist/entities/media-platform/query.mjs +1 -1
  79. package/dist/entities/monday-workspace/query.cjs +2 -2
  80. package/dist/entities/monday-workspace/query.d.cts +4 -4
  81. package/dist/entities/monday-workspace/query.d.mts +4 -4
  82. package/dist/entities/monday-workspace/query.mjs +2 -2
  83. package/dist/entities/tag/query.cjs +2 -2
  84. package/dist/entities/tag/query.d.cts +3 -3
  85. package/dist/entities/tag/query.d.mts +3 -3
  86. package/dist/entities/tag/query.mjs +2 -2
  87. package/dist/entities/team-member/query.cjs +4 -4
  88. package/dist/entities/team-member/query.d.cts +11 -41
  89. package/dist/entities/team-member/query.d.mts +11 -41
  90. package/dist/entities/team-member/query.mjs +4 -4
  91. package/dist/entities/up-permission/fields.cjs +1 -1
  92. package/dist/entities/up-permission/fields.d.cts +1 -1
  93. package/dist/entities/up-permission/fields.d.mts +1 -1
  94. package/dist/entities/up-permission/fields.mjs +1 -1
  95. package/dist/entities/up-role/query.cjs +3 -3
  96. package/dist/entities/up-role/query.d.cts +1 -1
  97. package/dist/entities/up-role/query.d.mts +1 -1
  98. package/dist/entities/up-role/query.mjs +3 -3
  99. package/dist/entities/up-user/query.cjs +1 -1
  100. package/dist/entities/up-user/query.d.cts +1 -1
  101. package/dist/entities/up-user/query.d.mts +1 -1
  102. package/dist/entities/up-user/query.mjs +1 -1
  103. package/dist/entities/url-redirect/query.cjs +4 -4
  104. package/dist/entities/url-redirect/query.d.cts +11 -41
  105. package/dist/entities/url-redirect/query.d.mts +11 -41
  106. package/dist/entities/url-redirect/query.mjs +4 -4
  107. package/dist/entities/user-account/query.cjs +1 -1
  108. package/dist/entities/user-account/query.d.cts +1 -1
  109. package/dist/entities/user-account/query.d.mts +1 -1
  110. package/dist/entities/user-account/query.mjs +1 -1
  111. package/dist/entities/utm-tracking-link/query.cjs +4 -4
  112. package/dist/entities/utm-tracking-link/query.d.cts +5 -5
  113. package/dist/entities/utm-tracking-link/query.d.mts +5 -5
  114. package/dist/entities/utm-tracking-link/query.mjs +4 -4
  115. package/dist/{fields-BgmgY8Er.d.mts → fields-BBw63Cmg.d.mts} +5 -20
  116. package/dist/{fields-C3xhlRTd.d.cts → fields-Du3Eagfb.d.cts} +5 -20
  117. package/dist/filters/index.cjs +8 -5
  118. package/dist/filters/index.d.cts +2 -2
  119. package/dist/filters/index.d.mts +2 -2
  120. package/dist/filters/index.mjs +6 -6
  121. package/dist/{identifier-Dy532ddR.cjs → identifier-CH94KWK3.cjs} +4 -4
  122. package/dist/{identifier-Cj5_NcEx.mjs → identifier-CNGKsmHv.mjs} +4 -4
  123. package/dist/{index-C-zBMTZR.d.cts → index-B1-7A6uQ.d.cts} +1 -1
  124. package/dist/{index-CeACed-B.d.mts → index-BM8o4E73.d.mts} +1 -1
  125. package/dist/{index-eY9SdBCA.d.cts → index-BZmieKqA.d.cts} +111 -387
  126. package/dist/{index-eY9SdBCA.d.mts → index-BZmieKqA.d.mts} +111 -387
  127. package/dist/{null-operators-Di2tW3dI.mjs → null-operators-Cr7Gk-nO.mjs} +8 -6
  128. package/dist/{null-operators-CTPiNKlc.cjs → null-operators-D0ijm3Xq.cjs} +25 -5
  129. package/dist/{picklist-CxE13krA.cjs → picklist-BMOTqyK3.cjs} +1 -1
  130. package/dist/{picklist-CKrOioY-.mjs → picklist-Clrg9KLL.mjs} +1 -1
  131. package/dist/{query-PGARJYST.mjs → query-B-D__SOs.mjs} +3 -3
  132. package/dist/{query-DE58iR9R.cjs → query-B3yOaqyg.cjs} +3 -3
  133. package/dist/{query-C_DZhlbS.d.cts → query-BB298STC.d.mts} +6 -6
  134. package/dist/{query-CUu1QJo_.d.mts → query-BFkBXgIM.d.cts} +6 -6
  135. package/dist/{query-5jb1_gFO.cjs → query-BZL6aIiE.cjs} +3 -3
  136. package/dist/{query-bKI8MTHp.mjs → query-Bvhj0ReL.mjs} +3 -3
  137. package/dist/{query-BSU751G0.mjs → query-ByXMjawz.mjs} +1 -1
  138. package/dist/{query-BsHRkBSK.d.cts → query-C4XYgjzi.d.cts} +8 -8
  139. package/dist/{query-CM9uDbB4.d.mts → query-C5k8KRWh.d.cts} +7 -22
  140. package/dist/{query-D34XPwAY.mjs → query-CTJsqppi.mjs} +3 -3
  141. package/dist/{query-DlRfLaGp.d.mts → query-ClxQG08F.d.cts} +6 -6
  142. package/dist/{query-CFRFISob.d.cts → query-Cm3Xjyi2.d.cts} +12 -12
  143. package/dist/{query-D4NPsmi5.d.cts → query-CmudsfTI.d.mts} +6 -6
  144. package/dist/{query-ClZapNze.d.cts → query-DKS5vS0I.d.mts} +7 -22
  145. package/dist/{query-xz04XcD5.d.cts → query-DMeaReZo.d.cts} +6 -21
  146. package/dist/{query-Bwi8ePMq.d.mts → query-DduBmBoK.d.mts} +12 -12
  147. package/dist/{query-BiaMh5wb.d.mts → query-Df08JRZf.d.mts} +6 -21
  148. package/dist/{query-EHdJppMP.d.mts → query-DikJxoGy.d.mts} +8 -8
  149. package/dist/{query-c2PAMeF4.cjs → query-DzSnRZm5.cjs} +3 -3
  150. package/dist/{query-8q9CmDYp.cjs → query-MD2TsFrh.cjs} +1 -1
  151. package/dist/{query-BGa0eFd6.d.cts → query-TYabAd_r.d.cts} +1 -1
  152. package/dist/{query-CkVAE7F4.cjs → query-gQpUWCYh.cjs} +3 -3
  153. package/dist/{query-CcAAKT5-.mjs → query-geW_XhDq.mjs} +3 -3
  154. package/dist/{query-Bz2rxUwZ.d.mts → query-j-KLfRRw.d.mts} +1 -1
  155. package/dist/{string-CbMlEOfD.cjs → string-CIc74QYv.cjs} +1 -1
  156. package/dist/{string-Cg95IUzI.mjs → string-CoI3xSs-.mjs} +1 -1
  157. package/dist/utilities/index.d.cts +1 -1
  158. package/dist/utilities/index.d.mts +1 -1
  159. package/package.json +1 -1
@@ -1,37 +1,15 @@
1
1
  import * as v from "valibot";
2
2
 
3
- //#region src/filters/primitives/comparison-operators.d.ts
4
- declare const createStrapiEqualityOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
5
- $eq: TValue;
6
- $ne: TValue;
7
- };
8
- declare const createStrapiCaseInsensitiveEqualityOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
9
- $eqi: TValue;
10
- $nei: TValue;
11
- };
12
- declare const createStrapiOrderedComparisonOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
13
- $gt: TValue;
14
- $gte: TValue;
15
- $lt: TValue;
16
- $lte: TValue;
17
- };
18
- declare const createStrapiComparisonOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
19
- $gt: TValue;
20
- $gte: TValue;
21
- $lt: TValue;
22
- $lte: TValue;
23
- $eqi: TValue;
24
- $nei: TValue;
25
- $eq: TValue;
26
- $ne: TValue;
27
- };
28
- //#endregion
29
3
  //#region src/filters/primitives/types.d.ts
30
4
  type Simplify<T> = { [TKey in keyof T]: T[TKey] } & {};
31
- type StrapiFilterEntries = Record<string, v.GenericSchema>;
32
- type StrapiStrictFilterObjectInput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferInput<TEntries[TKey]> }>>;
33
- type StrapiStrictFilterObjectOutput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferOutput<TEntries[TKey]> }>>;
34
- type StrapiStrictFilterObjectSchema<TEntries extends StrapiFilterEntries> = v.GenericSchema<StrapiStrictFilterObjectInput<TEntries>, StrapiStrictFilterObjectOutput<TEntries>>;
5
+ type StrapiBaseSchema<TInput = unknown, TOutput = TInput, TIssue extends v.BaseIssue<unknown> = v.BaseIssue<unknown>> = v.BaseSchema<TInput, TOutput, TIssue>;
6
+ type StrapiFilterEntries = Record<string, StrapiBaseSchema>;
7
+ type StrapiFilterObjectInput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferInput<TEntries[TKey]> }>>;
8
+ type StrapiFilterObjectOutput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferOutput<TEntries[TKey]> }>>;
9
+ type StrapiFilterObjectSchema<TEntries extends StrapiFilterEntries> = v.ObjectSchema<OptionalStrapiFilterEntries<TEntries>, undefined>;
10
+ type StrapiStrictFilterObjectInput<TEntries extends StrapiFilterEntries> = StrapiFilterObjectInput<TEntries>;
11
+ type StrapiStrictFilterObjectOutput<TEntries extends StrapiFilterEntries> = StrapiFilterObjectOutput<TEntries>;
12
+ type StrapiStrictFilterObjectSchema<TEntries extends StrapiFilterEntries> = StrapiFilterObjectSchema<TEntries>;
35
13
  type StrapiFilterFieldsInput<TEntries extends StrapiFilterEntries> = { [TKey in keyof TEntries]: v.InferInput<TEntries[TKey]> };
36
14
  type StrapiFilterFieldsOutput<TEntries extends StrapiFilterEntries> = { [TKey in keyof TEntries]: v.InferOutput<TEntries[TKey]> };
37
15
  type StrapiFilterLogicalInput<TEntries extends StrapiFilterEntries> = {
@@ -46,18 +24,46 @@ type StrapiFilterLogicalOutput<TEntries extends StrapiFilterEntries> = {
46
24
  };
47
25
  type StrapiFilterInput<TEntries extends StrapiFilterEntries> = Simplify<Partial<StrapiFilterFieldsInput<TEntries>>> & Partial<StrapiFilterLogicalInput<TEntries>>;
48
26
  type StrapiFilterOutput<TEntries extends StrapiFilterEntries> = Simplify<Partial<StrapiFilterFieldsOutput<TEntries>>> & Partial<StrapiFilterLogicalOutput<TEntries>>;
49
- type StrapiFilterSchema<TEntries extends StrapiFilterEntries> = v.GenericSchema<StrapiFilterInput<TEntries>, StrapiFilterOutput<TEntries>>;
50
27
  type OptionalStrapiFilterEntries<TEntries extends StrapiFilterEntries> = { [TKey in keyof TEntries]: v.OptionalSchema<TEntries[TKey], undefined> };
28
+ type StrapiObjectSchema<TInput extends object, TOutput extends object = TInput, TIssue extends v.BaseIssue<unknown> = v.BaseIssue<unknown>> = v.ObjectSchema<v.ObjectEntries, undefined> & v.BaseSchema<TInput, TOutput, TIssue>;
29
+ type StrapiFilterSchema<TEntries extends StrapiFilterEntries> = StrapiObjectSchema<StrapiFilterInput<TEntries>, StrapiFilterOutput<TEntries>>;
51
30
  type StrapiLogicalFilter<TFields extends object> = TFields & {
52
31
  $and?: StrapiLogicalFilter<TFields>[];
53
32
  $not?: StrapiLogicalFilter<TFields>;
54
33
  $or?: StrapiLogicalFilter<TFields>[];
55
34
  };
35
+ type StrapiLogicalFilterBaseSchema<TInputFields extends object, TOutputFields extends object = TInputFields, TIssue extends v.BaseIssue<unknown> = v.BaseIssue<unknown>> = StrapiObjectSchema<StrapiLogicalFilter<TInputFields>, StrapiLogicalFilter<TOutputFields>, TIssue>;
36
+ //#endregion
37
+ //#region src/filters/primitives/comparison-operators.d.ts
38
+ declare const createStrapiEqualityOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
39
+ $eq: TValue;
40
+ $ne: TValue;
41
+ };
42
+ declare const createStrapiCaseInsensitiveEqualityOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
43
+ $eqi: TValue;
44
+ $nei: TValue;
45
+ };
46
+ declare const createStrapiOrderedComparisonOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
47
+ $gt: TValue;
48
+ $gte: TValue;
49
+ $lt: TValue;
50
+ $lte: TValue;
51
+ };
52
+ declare const createStrapiComparisonOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
53
+ $gt: TValue;
54
+ $gte: TValue;
55
+ $lt: TValue;
56
+ $lte: TValue;
57
+ $eqi: TValue;
58
+ $nei: TValue;
59
+ $eq: TValue;
60
+ $ne: TValue;
61
+ };
56
62
  //#endregion
57
63
  //#region src/filters/primitives/field-operators.d.ts
58
- declare const createStrapiOperatorSchema: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiStrictFilterObjectSchema<TEntries>;
59
- declare const createStrapiFieldOperatorSchema: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiStrictFilterObjectSchema<TEntries & {
60
- readonly $not: StrapiStrictFilterObjectSchema<TEntries>;
64
+ declare const createStrapiOperatorSchema: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiFilterObjectSchema<TEntries>;
65
+ declare const createStrapiFieldOperatorSchema: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiFilterObjectSchema<TEntries & {
66
+ readonly $not: StrapiFilterObjectSchema<TEntries>;
61
67
  }>;
62
68
  //#endregion
63
69
  //#region src/filters/primitives/filter-metadata.d.ts
@@ -71,10 +77,15 @@ type FilterSchemaMetadata = {
71
77
  } & Record<string, unknown>;
72
78
  type StrapiFilterOperator = "$eq" | "$ne" | "$eqi" | "$nei" | "$contains" | "$containsi" | "$notContains" | "$notContainsi" | "$startsWith" | "$startsWithi" | "$endsWith" | "$endsWithi" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$notIn" | "$between" | "$null" | "$notNull" | "$not" | "$and" | "$or";
73
79
  declare const STRAPI_FILTER_OPERATORS: Record<StrapiFilterOperator, string>;
74
- declare const createFilterWithMetadata: <const TSchema extends v.GenericSchema, const TMetadata extends FilterSchemaMetadata>(schema: TSchema, metadata: TMetadata) => v.SchemaWithPipe<readonly [TSchema, v.MetadataAction<v.InferOutput<TSchema>, TMetadata>]>;
80
+ declare const STRAPI_FILTER_METADATA: unique symbol;
81
+ type FilterWithMetadata<TSchema extends StrapiBaseSchema, TMetadata extends FilterSchemaMetadata> = TSchema & {
82
+ readonly [STRAPI_FILTER_METADATA]: TMetadata;
83
+ };
84
+ declare const createFilterWithMetadata: <const TSchema extends StrapiBaseSchema, const TMetadata extends FilterSchemaMetadata>(schema: TSchema, metadata: TMetadata) => FilterWithMetadata<TSchema, TMetadata>;
85
+ declare const getFilterMetadata: (schema: unknown) => FilterSchemaMetadata | undefined;
75
86
  //#endregion
76
87
  //#region src/filters/primitives/logical-operators.d.ts
77
- declare const createStrapiLogicalFilterEntries: <const TFilter extends v.GenericSchema>(filter: TFilter) => {
88
+ declare const createStrapiLogicalFilterEntries: <const TFilter extends StrapiBaseSchema>(filter: TFilter) => {
78
89
  $and: v.SchemaWithPipe<readonly [v.ArraySchema<TFilter, undefined>, v.MinLengthAction<v.InferOutput<TFilter>[], 1, undefined>]>;
79
90
  $not: TFilter;
80
91
  $or: v.SchemaWithPipe<readonly [v.ArraySchema<TFilter, undefined>, v.MinLengthAction<v.InferOutput<TFilter>[], 1, undefined>]>;
@@ -82,14 +93,14 @@ declare const createStrapiLogicalFilterEntries: <const TFilter extends v.Generic
82
93
  declare const createStrapiFilterSchema: <const TFieldEntries extends StrapiFilterEntries>(fieldEntries: TFieldEntries) => StrapiFilterSchema<TFieldEntries>;
83
94
  //#endregion
84
95
  //#region src/filters/primitives/membership-operators.d.ts
85
- declare const createStrapiArrayMembershipOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
96
+ declare const createStrapiArrayMembershipOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
86
97
  $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
87
98
  $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
88
99
  };
89
- declare const createStrapiBetweenOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
100
+ declare const createStrapiBetweenOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
90
101
  $between: v.StrictTupleSchema<[TValue, TValue], undefined>;
91
102
  };
92
- declare const createStrapiMembershipOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
103
+ declare const createStrapiMembershipOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
93
104
  $between: v.StrictTupleSchema<[TValue, TValue], undefined>;
94
105
  $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
95
106
  $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
@@ -102,10 +113,11 @@ declare const StrapiNullOperatorEntries: {
102
113
  };
103
114
  //#endregion
104
115
  //#region src/filters/primitives/strict-filter-object.d.ts
116
+ declare const createStrapiFilterObject: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiFilterObjectSchema<TEntries>;
105
117
  declare const createStrapiStrictFilterObject: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiStrictFilterObjectSchema<TEntries>;
106
118
  //#endregion
107
119
  //#region src/filters/primitives/string-matching-operators.d.ts
108
- declare const createStrapiStringMatchingOperatorEntries: <const TValue extends v.GenericSchema>(value: TValue) => {
120
+ declare const createStrapiStringMatchingOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
109
121
  $contains: TValue;
110
122
  $containsi: TValue;
111
123
  $endsWith: TValue;
@@ -119,35 +131,24 @@ declare const createStrapiStringMatchingOperatorEntries: <const TValue extends v
119
131
  //#region src/filters/generics/boolean.d.ts
120
132
  declare const BooleanFilterValue: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
121
133
  type BooleanFilterValue = v.InferOutput<typeof BooleanFilterValue>;
122
- declare const BooleanFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
134
+ declare const BooleanFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
123
135
  readonly $notNull: v.LiteralSchema<true, undefined>;
124
136
  readonly $null: v.LiteralSchema<true, undefined>;
125
137
  readonly $eq: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
126
138
  readonly $ne: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
127
139
  } & {
128
- readonly $not: StrapiStrictFilterObjectSchema<{
140
+ readonly $not: StrapiFilterObjectSchema<{
129
141
  readonly $notNull: v.LiteralSchema<true, undefined>;
130
142
  readonly $null: v.LiteralSchema<true, undefined>;
131
143
  readonly $eq: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
132
144
  readonly $ne: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
133
145
  }>;
134
- }>, v.MetadataAction<{
135
- readonly $notNull?: true | undefined;
136
- readonly $null?: true | undefined;
137
- readonly $eq?: boolean | undefined;
138
- readonly $ne?: boolean | undefined;
139
- readonly $not?: {
140
- readonly $notNull?: true | undefined;
141
- readonly $null?: true | undefined;
142
- readonly $eq?: boolean | undefined;
143
- readonly $ne?: boolean | undefined;
144
- } | undefined;
145
- }, {
146
+ }>, {
146
147
  readonly value: {
147
148
  readonly kind: "comparison";
148
149
  readonly input: "checkbox";
149
150
  };
150
- }>]>;
151
+ }>;
151
152
  type BooleanFilter = v.InferOutput<typeof BooleanFilter>;
152
153
  //#endregion
153
154
  //#region src/filters/generics/date-time.d.ts
@@ -157,7 +158,7 @@ declare const TimeFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Schem
157
158
  type TimeFilterValue = v.InferOutput<typeof TimeFilterValue>;
158
159
  declare const DateTimeFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
159
160
  type DateTimeFilterValue = v.InferOutput<typeof DateTimeFilterValue>;
160
- declare const DateFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
161
+ declare const DateFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
161
162
  readonly $notNull: v.LiteralSchema<true, undefined>;
162
163
  readonly $null: v.LiteralSchema<true, undefined>;
163
164
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>], undefined>;
@@ -170,7 +171,7 @@ declare const DateFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSch
170
171
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
171
172
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
172
173
  } & {
173
- readonly $not: StrapiStrictFilterObjectSchema<{
174
+ readonly $not: StrapiFilterObjectSchema<{
174
175
  readonly $notNull: v.LiteralSchema<true, undefined>;
175
176
  readonly $null: v.LiteralSchema<true, undefined>;
176
177
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>], undefined>;
@@ -183,39 +184,14 @@ declare const DateFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSch
183
184
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
184
185
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
185
186
  }>;
186
- }>, v.MetadataAction<{
187
- readonly $notNull?: true | undefined;
188
- readonly $null?: true | undefined;
189
- readonly $between?: [string, string] | undefined;
190
- readonly $in?: string[] | undefined;
191
- readonly $notIn?: string[] | undefined;
192
- readonly $gt?: string | undefined;
193
- readonly $gte?: string | undefined;
194
- readonly $lt?: string | undefined;
195
- readonly $lte?: string | undefined;
196
- readonly $eq?: string | undefined;
197
- readonly $ne?: string | undefined;
198
- readonly $not?: {
199
- readonly $notNull?: true | undefined;
200
- readonly $null?: true | undefined;
201
- readonly $between?: [string, string] | undefined;
202
- readonly $in?: string[] | undefined;
203
- readonly $notIn?: string[] | undefined;
204
- readonly $gt?: string | undefined;
205
- readonly $gte?: string | undefined;
206
- readonly $lt?: string | undefined;
207
- readonly $lte?: string | undefined;
208
- readonly $eq?: string | undefined;
209
- readonly $ne?: string | undefined;
210
- } | undefined;
211
- }, {
187
+ }>, {
212
188
  readonly value: {
213
189
  readonly kind: "comparison";
214
190
  readonly input: "date-range";
215
191
  };
216
- }>]>;
192
+ }>;
217
193
  type DateFilter = v.InferOutput<typeof DateFilter>;
218
- declare const TimeFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
194
+ declare const TimeFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
219
195
  readonly $notNull: v.LiteralSchema<true, undefined>;
220
196
  readonly $null: v.LiteralSchema<true, undefined>;
221
197
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>], undefined>;
@@ -228,7 +204,7 @@ declare const TimeFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSch
228
204
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
229
205
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
230
206
  } & {
231
- readonly $not: StrapiStrictFilterObjectSchema<{
207
+ readonly $not: StrapiFilterObjectSchema<{
232
208
  readonly $notNull: v.LiteralSchema<true, undefined>;
233
209
  readonly $null: v.LiteralSchema<true, undefined>;
234
210
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>], undefined>;
@@ -241,39 +217,14 @@ declare const TimeFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSch
241
217
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
242
218
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
243
219
  }>;
244
- }>, v.MetadataAction<{
245
- readonly $notNull?: true | undefined;
246
- readonly $null?: true | undefined;
247
- readonly $between?: [string, string] | undefined;
248
- readonly $in?: string[] | undefined;
249
- readonly $notIn?: string[] | undefined;
250
- readonly $gt?: string | undefined;
251
- readonly $gte?: string | undefined;
252
- readonly $lt?: string | undefined;
253
- readonly $lte?: string | undefined;
254
- readonly $eq?: string | undefined;
255
- readonly $ne?: string | undefined;
256
- readonly $not?: {
257
- readonly $notNull?: true | undefined;
258
- readonly $null?: true | undefined;
259
- readonly $between?: [string, string] | undefined;
260
- readonly $in?: string[] | undefined;
261
- readonly $notIn?: string[] | undefined;
262
- readonly $gt?: string | undefined;
263
- readonly $gte?: string | undefined;
264
- readonly $lt?: string | undefined;
265
- readonly $lte?: string | undefined;
266
- readonly $eq?: string | undefined;
267
- readonly $ne?: string | undefined;
268
- } | undefined;
269
- }, {
220
+ }>, {
270
221
  readonly value: {
271
222
  readonly kind: "comparison";
272
223
  readonly input: "time-range";
273
224
  };
274
- }>]>;
225
+ }>;
275
226
  type TimeFilter = v.InferOutput<typeof TimeFilter>;
276
- declare const DateTimeFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
227
+ declare const DateTimeFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
277
228
  readonly $notNull: v.LiteralSchema<true, undefined>;
278
229
  readonly $null: v.LiteralSchema<true, undefined>;
279
230
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>], undefined>;
@@ -286,7 +237,7 @@ declare const DateTimeFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjec
286
237
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
287
238
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
288
239
  } & {
289
- readonly $not: StrapiStrictFilterObjectSchema<{
240
+ readonly $not: StrapiFilterObjectSchema<{
290
241
  readonly $notNull: v.LiteralSchema<true, undefined>;
291
242
  readonly $null: v.LiteralSchema<true, undefined>;
292
243
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>], undefined>;
@@ -299,49 +250,24 @@ declare const DateTimeFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjec
299
250
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
300
251
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
301
252
  }>;
302
- }>, v.MetadataAction<{
303
- readonly $notNull?: true | undefined;
304
- readonly $null?: true | undefined;
305
- readonly $between?: [string, string] | undefined;
306
- readonly $in?: string[] | undefined;
307
- readonly $notIn?: string[] | undefined;
308
- readonly $gt?: string | undefined;
309
- readonly $gte?: string | undefined;
310
- readonly $lt?: string | undefined;
311
- readonly $lte?: string | undefined;
312
- readonly $eq?: string | undefined;
313
- readonly $ne?: string | undefined;
314
- readonly $not?: {
315
- readonly $notNull?: true | undefined;
316
- readonly $null?: true | undefined;
317
- readonly $between?: [string, string] | undefined;
318
- readonly $in?: string[] | undefined;
319
- readonly $notIn?: string[] | undefined;
320
- readonly $gt?: string | undefined;
321
- readonly $gte?: string | undefined;
322
- readonly $lt?: string | undefined;
323
- readonly $lte?: string | undefined;
324
- readonly $eq?: string | undefined;
325
- readonly $ne?: string | undefined;
326
- } | undefined;
327
- }, {
253
+ }>, {
328
254
  readonly value: {
329
255
  readonly kind: "comparison";
330
256
  readonly input: "datetime-range";
331
257
  };
332
- }>]>;
258
+ }>;
333
259
  type DateTimeFilter = v.InferOutput<typeof DateTimeFilter>;
334
260
  //#endregion
335
261
  //#region src/filters/generics/identifier.d.ts
336
262
  declare const IdFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
337
263
  type IdFilterValue = v.InferOutput<typeof IdFilterValue>;
338
- declare const IdFilter: StrapiStrictFilterObjectSchema<{
264
+ declare const IdFilter: StrapiFilterObjectSchema<{
339
265
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>, undefined>, v.MinLengthAction<(string | number)[], 1, undefined>]>;
340
266
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>, undefined>, v.MinLengthAction<(string | number)[], 1, undefined>]>;
341
267
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
342
268
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
343
269
  } & {
344
- readonly $not: StrapiStrictFilterObjectSchema<{
270
+ readonly $not: StrapiFilterObjectSchema<{
345
271
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>, undefined>, v.MinLengthAction<(string | number)[], 1, undefined>]>;
346
272
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>, undefined>, v.MinLengthAction<(string | number)[], 1, undefined>]>;
347
273
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
@@ -349,7 +275,7 @@ declare const IdFilter: StrapiStrictFilterObjectSchema<{
349
275
  }>;
350
276
  }>;
351
277
  type IdFilter = v.InferOutput<typeof IdFilter>;
352
- declare const DocumentIdFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
278
+ declare const DocumentIdFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
353
279
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
354
280
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
355
281
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
@@ -357,7 +283,7 @@ declare const DocumentIdFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObj
357
283
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
358
284
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
359
285
  } & {
360
- readonly $not: StrapiStrictFilterObjectSchema<{
286
+ readonly $not: StrapiFilterObjectSchema<{
361
287
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
362
288
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
363
289
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
@@ -365,29 +291,14 @@ declare const DocumentIdFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObj
365
291
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
366
292
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
367
293
  }>;
368
- }>, v.MetadataAction<{
369
- readonly $in?: string[] | undefined;
370
- readonly $notIn?: string[] | undefined;
371
- readonly $eqi?: string | undefined;
372
- readonly $nei?: string | undefined;
373
- readonly $eq?: string | undefined;
374
- readonly $ne?: string | undefined;
375
- readonly $not?: {
376
- readonly $in?: string[] | undefined;
377
- readonly $notIn?: string[] | undefined;
378
- readonly $eqi?: string | undefined;
379
- readonly $nei?: string | undefined;
380
- readonly $eq?: string | undefined;
381
- readonly $ne?: string | undefined;
382
- } | undefined;
383
- }, {
294
+ }>, {
384
295
  readonly value: {
385
296
  readonly kind: "comparison";
386
297
  readonly input: "text";
387
298
  };
388
- }>]>;
299
+ }>;
389
300
  type DocumentIdFilter = v.InferOutput<typeof DocumentIdFilter>;
390
- declare const SlugFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
301
+ declare const SlugFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
391
302
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
392
303
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
393
304
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
@@ -395,7 +306,7 @@ declare const SlugFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSch
395
306
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
396
307
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
397
308
  } & {
398
- readonly $not: StrapiStrictFilterObjectSchema<{
309
+ readonly $not: StrapiFilterObjectSchema<{
399
310
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
400
311
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
401
312
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
@@ -403,29 +314,14 @@ declare const SlugFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSch
403
314
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
404
315
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
405
316
  }>;
406
- }>, v.MetadataAction<{
407
- readonly $in?: string[] | undefined;
408
- readonly $notIn?: string[] | undefined;
409
- readonly $eqi?: string | undefined;
410
- readonly $nei?: string | undefined;
411
- readonly $eq?: string | undefined;
412
- readonly $ne?: string | undefined;
413
- readonly $not?: {
414
- readonly $in?: string[] | undefined;
415
- readonly $notIn?: string[] | undefined;
416
- readonly $eqi?: string | undefined;
417
- readonly $nei?: string | undefined;
418
- readonly $eq?: string | undefined;
419
- readonly $ne?: string | undefined;
420
- } | undefined;
421
- }, {
317
+ }>, {
422
318
  readonly value: {
423
319
  readonly kind: "comparison";
424
320
  readonly input: "text";
425
321
  };
426
- }>]>;
322
+ }>;
427
323
  type SlugFilter = v.InferOutput<typeof SlugFilter>;
428
- declare const EmailFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
324
+ declare const EmailFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
429
325
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
430
326
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
431
327
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
@@ -433,7 +329,7 @@ declare const EmailFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSc
433
329
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
434
330
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
435
331
  } & {
436
- readonly $not: StrapiStrictFilterObjectSchema<{
332
+ readonly $not: StrapiFilterObjectSchema<{
437
333
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
438
334
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
439
335
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
@@ -441,29 +337,14 @@ declare const EmailFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSc
441
337
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
442
338
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
443
339
  }>;
444
- }>, v.MetadataAction<{
445
- readonly $in?: string[] | undefined;
446
- readonly $notIn?: string[] | undefined;
447
- readonly $eqi?: string | undefined;
448
- readonly $nei?: string | undefined;
449
- readonly $eq?: string | undefined;
450
- readonly $ne?: string | undefined;
451
- readonly $not?: {
452
- readonly $in?: string[] | undefined;
453
- readonly $notIn?: string[] | undefined;
454
- readonly $eqi?: string | undefined;
455
- readonly $nei?: string | undefined;
456
- readonly $eq?: string | undefined;
457
- readonly $ne?: string | undefined;
458
- } | undefined;
459
- }, {
340
+ }>, {
460
341
  readonly value: {
461
342
  readonly kind: "comparison";
462
343
  readonly input: "email";
463
344
  };
464
- }>]>;
345
+ }>;
465
346
  type EmailFilter = v.InferOutput<typeof EmailFilter>;
466
- declare const UrlFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
347
+ declare const UrlFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
467
348
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
468
349
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
469
350
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
@@ -471,7 +352,7 @@ declare const UrlFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSche
471
352
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
472
353
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
473
354
  } & {
474
- readonly $not: StrapiStrictFilterObjectSchema<{
355
+ readonly $not: StrapiFilterObjectSchema<{
475
356
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
476
357
  readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
477
358
  readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
@@ -479,27 +360,12 @@ declare const UrlFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSche
479
360
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
480
361
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
481
362
  }>;
482
- }>, v.MetadataAction<{
483
- readonly $in?: string[] | undefined;
484
- readonly $notIn?: string[] | undefined;
485
- readonly $eqi?: string | undefined;
486
- readonly $nei?: string | undefined;
487
- readonly $eq?: string | undefined;
488
- readonly $ne?: string | undefined;
489
- readonly $not?: {
490
- readonly $in?: string[] | undefined;
491
- readonly $notIn?: string[] | undefined;
492
- readonly $eqi?: string | undefined;
493
- readonly $nei?: string | undefined;
494
- readonly $eq?: string | undefined;
495
- readonly $ne?: string | undefined;
496
- } | undefined;
497
- }, {
363
+ }>, {
498
364
  readonly value: {
499
365
  readonly kind: "comparison";
500
366
  readonly input: "url";
501
367
  };
502
- }>]>;
368
+ }>;
503
369
  type UrlFilter = v.InferOutput<typeof UrlFilter>;
504
370
  //#endregion
505
371
  //#region src/filters/generics/number.d.ts
@@ -508,7 +374,7 @@ declare const NumberFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Num
508
374
  type NumberFilterValue = v.InferOutput<typeof NumberFilterValue>;
509
375
  declare const IntegerFilterValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
510
376
  type IntegerFilterValue = v.InferOutput<typeof IntegerFilterValue>;
511
- declare const NumberFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
377
+ declare const NumberFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
512
378
  readonly $notNull: v.LiteralSchema<true, undefined>;
513
379
  readonly $null: v.LiteralSchema<true, undefined>;
514
380
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>], undefined>;
@@ -521,7 +387,7 @@ declare const NumberFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectS
521
387
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
522
388
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
523
389
  } & {
524
- readonly $not: StrapiStrictFilterObjectSchema<{
390
+ readonly $not: StrapiFilterObjectSchema<{
525
391
  readonly $notNull: v.LiteralSchema<true, undefined>;
526
392
  readonly $null: v.LiteralSchema<true, undefined>;
527
393
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>], undefined>;
@@ -534,39 +400,14 @@ declare const NumberFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectS
534
400
  readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
535
401
  readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
536
402
  }>;
537
- }>, v.MetadataAction<{
538
- readonly $notNull?: true | undefined;
539
- readonly $null?: true | undefined;
540
- readonly $between?: [number, number] | undefined;
541
- readonly $in?: number[] | undefined;
542
- readonly $notIn?: number[] | undefined;
543
- readonly $gt?: number | undefined;
544
- readonly $gte?: number | undefined;
545
- readonly $lt?: number | undefined;
546
- readonly $lte?: number | undefined;
547
- readonly $eq?: number | undefined;
548
- readonly $ne?: number | undefined;
549
- readonly $not?: {
550
- readonly $notNull?: true | undefined;
551
- readonly $null?: true | undefined;
552
- readonly $between?: [number, number] | undefined;
553
- readonly $in?: number[] | undefined;
554
- readonly $notIn?: number[] | undefined;
555
- readonly $gt?: number | undefined;
556
- readonly $gte?: number | undefined;
557
- readonly $lt?: number | undefined;
558
- readonly $lte?: number | undefined;
559
- readonly $eq?: number | undefined;
560
- readonly $ne?: number | undefined;
561
- } | undefined;
562
- }, {
403
+ }>, {
563
404
  readonly value: {
564
405
  readonly kind: "comparison";
565
406
  readonly input: "number-range";
566
407
  };
567
- }>]>;
408
+ }>;
568
409
  type NumberFilter = v.InferOutput<typeof NumberFilter>;
569
- declare const IntegerFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
410
+ declare const IntegerFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
570
411
  readonly $notNull: v.LiteralSchema<true, undefined>;
571
412
  readonly $null: v.LiteralSchema<true, undefined>;
572
413
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>], undefined>;
@@ -579,7 +420,7 @@ declare const IntegerFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObject
579
420
  readonly $eq: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
580
421
  readonly $ne: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
581
422
  } & {
582
- readonly $not: StrapiStrictFilterObjectSchema<{
423
+ readonly $not: StrapiFilterObjectSchema<{
583
424
  readonly $notNull: v.LiteralSchema<true, undefined>;
584
425
  readonly $null: v.LiteralSchema<true, undefined>;
585
426
  readonly $between: v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>], undefined>;
@@ -592,41 +433,16 @@ declare const IntegerFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObject
592
433
  readonly $eq: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
593
434
  readonly $ne: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
594
435
  }>;
595
- }>, v.MetadataAction<{
596
- readonly $notNull?: true | undefined;
597
- readonly $null?: true | undefined;
598
- readonly $between?: [number, number] | undefined;
599
- readonly $in?: number[] | undefined;
600
- readonly $notIn?: number[] | undefined;
601
- readonly $gt?: number | undefined;
602
- readonly $gte?: number | undefined;
603
- readonly $lt?: number | undefined;
604
- readonly $lte?: number | undefined;
605
- readonly $eq?: number | undefined;
606
- readonly $ne?: number | undefined;
607
- readonly $not?: {
608
- readonly $notNull?: true | undefined;
609
- readonly $null?: true | undefined;
610
- readonly $between?: [number, number] | undefined;
611
- readonly $in?: number[] | undefined;
612
- readonly $notIn?: number[] | undefined;
613
- readonly $gt?: number | undefined;
614
- readonly $gte?: number | undefined;
615
- readonly $lt?: number | undefined;
616
- readonly $lte?: number | undefined;
617
- readonly $eq?: number | undefined;
618
- readonly $ne?: number | undefined;
619
- } | undefined;
620
- }, {
436
+ }>, {
621
437
  readonly value: {
622
438
  readonly kind: "comparison";
623
439
  readonly input: "integer-range";
624
440
  };
625
- }>]>;
441
+ }>;
626
442
  type IntegerFilter = v.InferOutput<typeof IntegerFilter>;
627
443
  //#endregion
628
444
  //#region src/filters/generics/picklist.d.ts
629
- declare const createPicklistFilter: <const TValue extends v.GenericSchema>(value: TValue) => v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
445
+ declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<StrapiFilterObjectSchema<{
630
446
  readonly $notNull: v.LiteralSchema<true, undefined>;
631
447
  readonly $null: v.LiteralSchema<true, undefined>;
632
448
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
@@ -634,7 +450,7 @@ declare const createPicklistFilter: <const TValue extends v.GenericSchema>(value
634
450
  readonly $eq: TValue;
635
451
  readonly $ne: TValue;
636
452
  } & {
637
- readonly $not: StrapiStrictFilterObjectSchema<{
453
+ readonly $not: StrapiFilterObjectSchema<{
638
454
  readonly $notNull: v.LiteralSchema<true, undefined>;
639
455
  readonly $null: v.LiteralSchema<true, undefined>;
640
456
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
@@ -642,28 +458,13 @@ declare const createPicklistFilter: <const TValue extends v.GenericSchema>(value
642
458
  readonly $eq: TValue;
643
459
  readonly $ne: TValue;
644
460
  }>;
645
- }>, v.MetadataAction<{
646
- readonly $notNull?: true | undefined;
647
- readonly $null?: true | undefined;
648
- readonly $in?: v.InferOutput<TValue>[] | undefined;
649
- readonly $notIn?: v.InferOutput<TValue>[] | undefined;
650
- readonly $eq?: v.InferOutput<TValue> | undefined;
651
- readonly $ne?: v.InferOutput<TValue> | undefined;
652
- readonly $not?: {
653
- readonly $notNull?: true | undefined;
654
- readonly $null?: true | undefined;
655
- readonly $in?: v.InferOutput<TValue>[] | undefined;
656
- readonly $notIn?: v.InferOutput<TValue>[] | undefined;
657
- readonly $eq?: v.InferOutput<TValue> | undefined;
658
- readonly $ne?: v.InferOutput<TValue> | undefined;
659
- } | undefined;
660
- }, {
461
+ }>, {
661
462
  readonly value: {
662
463
  readonly kind: "comparison";
663
464
  readonly input: "select";
664
465
  };
665
- }>]>;
666
- declare const createPicklistArrayFilter: <const TValue extends v.GenericSchema>(value: TValue) => v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
466
+ }>;
467
+ declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<StrapiFilterObjectSchema<{
667
468
  readonly $notNull: v.LiteralSchema<true, undefined>;
668
469
  readonly $null: v.LiteralSchema<true, undefined>;
669
470
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
@@ -671,7 +472,7 @@ declare const createPicklistArrayFilter: <const TValue extends v.GenericSchema>(
671
472
  readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
672
473
  readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
673
474
  } & {
674
- readonly $not: StrapiStrictFilterObjectSchema<{
475
+ readonly $not: StrapiFilterObjectSchema<{
675
476
  readonly $notNull: v.LiteralSchema<true, undefined>;
676
477
  readonly $null: v.LiteralSchema<true, undefined>;
677
478
  readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
@@ -679,30 +480,15 @@ declare const createPicklistArrayFilter: <const TValue extends v.GenericSchema>(
679
480
  readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
680
481
  readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
681
482
  }>;
682
- }>, v.MetadataAction<{
683
- readonly $notNull?: true | undefined;
684
- readonly $null?: true | undefined;
685
- readonly $in?: v.InferOutput<TValue>[] | undefined;
686
- readonly $notIn?: v.InferOutput<TValue>[] | undefined;
687
- readonly $eq?: v.InferOutput<TValue>[] | undefined;
688
- readonly $ne?: v.InferOutput<TValue>[] | undefined;
689
- readonly $not?: {
690
- readonly $notNull?: true | undefined;
691
- readonly $null?: true | undefined;
692
- readonly $in?: v.InferOutput<TValue>[] | undefined;
693
- readonly $notIn?: v.InferOutput<TValue>[] | undefined;
694
- readonly $eq?: v.InferOutput<TValue>[] | undefined;
695
- readonly $ne?: v.InferOutput<TValue>[] | undefined;
696
- } | undefined;
697
- }, {
483
+ }>, {
698
484
  readonly value: {
699
485
  readonly kind: "comparison";
700
486
  readonly input: "select";
701
487
  };
702
- }>]>;
488
+ }>;
703
489
  //#endregion
704
490
  //#region src/filters/generics/string.d.ts
705
- declare const StringFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
491
+ declare const StringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
706
492
  readonly $notNull: v.LiteralSchema<true, undefined>;
707
493
  readonly $null: v.LiteralSchema<true, undefined>;
708
494
  readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
@@ -718,7 +504,7 @@ declare const StringFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectS
718
504
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
719
505
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
720
506
  } & {
721
- readonly $not: StrapiStrictFilterObjectSchema<{
507
+ readonly $not: StrapiFilterObjectSchema<{
722
508
  readonly $notNull: v.LiteralSchema<true, undefined>;
723
509
  readonly $null: v.LiteralSchema<true, undefined>;
724
510
  readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
@@ -734,46 +520,15 @@ declare const StringFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectS
734
520
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
735
521
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
736
522
  }>;
737
- }>, v.MetadataAction<{
738
- readonly $notNull?: true | undefined;
739
- readonly $null?: true | undefined;
740
- readonly $contains?: string | undefined;
741
- readonly $containsi?: string | undefined;
742
- readonly $endsWith?: string | undefined;
743
- readonly $endsWithi?: string | undefined;
744
- readonly $notContains?: string | undefined;
745
- readonly $notContainsi?: string | undefined;
746
- readonly $startsWith?: string | undefined;
747
- readonly $startsWithi?: string | undefined;
748
- readonly $eqi?: string | undefined;
749
- readonly $nei?: string | undefined;
750
- readonly $eq?: string | undefined;
751
- readonly $ne?: string | undefined;
752
- readonly $not?: {
753
- readonly $notNull?: true | undefined;
754
- readonly $null?: true | undefined;
755
- readonly $contains?: string | undefined;
756
- readonly $containsi?: string | undefined;
757
- readonly $endsWith?: string | undefined;
758
- readonly $endsWithi?: string | undefined;
759
- readonly $notContains?: string | undefined;
760
- readonly $notContainsi?: string | undefined;
761
- readonly $startsWith?: string | undefined;
762
- readonly $startsWithi?: string | undefined;
763
- readonly $eqi?: string | undefined;
764
- readonly $nei?: string | undefined;
765
- readonly $eq?: string | undefined;
766
- readonly $ne?: string | undefined;
767
- } | undefined;
768
- }, {
523
+ }>, {
769
524
  readonly value: {
770
525
  readonly kind: "comparison";
771
526
  readonly input: "text";
772
527
  };
773
528
  readonly operators: readonly [];
774
- }>]>;
529
+ }>;
775
530
  type StringFilter = v.InferOutput<typeof StringFilter>;
776
- declare const LongStringFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObjectSchema<{
531
+ declare const LongStringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
777
532
  readonly $notNull: v.LiteralSchema<true, undefined>;
778
533
  readonly $null: v.LiteralSchema<true, undefined>;
779
534
  readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
@@ -789,7 +544,7 @@ declare const LongStringFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObj
789
544
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
790
545
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
791
546
  } & {
792
- readonly $not: StrapiStrictFilterObjectSchema<{
547
+ readonly $not: StrapiFilterObjectSchema<{
793
548
  readonly $notNull: v.LiteralSchema<true, undefined>;
794
549
  readonly $null: v.LiteralSchema<true, undefined>;
795
550
  readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
@@ -805,43 +560,12 @@ declare const LongStringFilter: v.SchemaWithPipe<readonly [StrapiStrictFilterObj
805
560
  readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
806
561
  readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
807
562
  }>;
808
- }>, v.MetadataAction<{
809
- readonly $notNull?: true | undefined;
810
- readonly $null?: true | undefined;
811
- readonly $contains?: string | undefined;
812
- readonly $containsi?: string | undefined;
813
- readonly $endsWith?: string | undefined;
814
- readonly $endsWithi?: string | undefined;
815
- readonly $notContains?: string | undefined;
816
- readonly $notContainsi?: string | undefined;
817
- readonly $startsWith?: string | undefined;
818
- readonly $startsWithi?: string | undefined;
819
- readonly $eqi?: string | undefined;
820
- readonly $nei?: string | undefined;
821
- readonly $eq?: string | undefined;
822
- readonly $ne?: string | undefined;
823
- readonly $not?: {
824
- readonly $notNull?: true | undefined;
825
- readonly $null?: true | undefined;
826
- readonly $contains?: string | undefined;
827
- readonly $containsi?: string | undefined;
828
- readonly $endsWith?: string | undefined;
829
- readonly $endsWithi?: string | undefined;
830
- readonly $notContains?: string | undefined;
831
- readonly $notContainsi?: string | undefined;
832
- readonly $startsWith?: string | undefined;
833
- readonly $startsWithi?: string | undefined;
834
- readonly $eqi?: string | undefined;
835
- readonly $nei?: string | undefined;
836
- readonly $eq?: string | undefined;
837
- readonly $ne?: string | undefined;
838
- } | undefined;
839
- }, {
563
+ }>, {
840
564
  readonly value: {
841
565
  readonly kind: "comparison";
842
566
  readonly input: "textarea";
843
567
  };
844
- }>]>;
568
+ }>;
845
569
  type LongStringFilter = v.InferOutput<typeof LongStringFilter>;
846
570
  //#endregion
847
- export { createStrapiFilterSchema as A, OptionalStrapiFilterEntries as B, BooleanFilterValue as C, createStrapiArrayMembershipOperatorEntries as D, StrapiNullOperatorEntries as E, StrapiFilterOperator as F, StrapiLogicalFilter as G, StrapiFilterInput as H, StrapiFilterOperatorKind as I, StrapiStrictFilterObjectSchema as J, StrapiStrictFilterObjectInput as K, createFilterWithMetadata as L, FilterSchemaMetadata as M, STRAPI_FILTER_OPERATORS as N, createStrapiBetweenOperatorEntries as O, StrapiFilterInputType as P, createStrapiOrderedComparisonOperatorEntries as Q, createStrapiFieldOperatorSchema as R, BooleanFilter as S, createStrapiStrictFilterObject as T, StrapiFilterOutput as U, StrapiFilterEntries as V, StrapiFilterSchema as W, createStrapiComparisonOperatorEntries as X, createStrapiCaseInsensitiveEqualityOperatorEntries as Y, createStrapiEqualityOperatorEntries as Z, DateFilterValue as _, IntegerFilter as a, TimeFilter as b, NumberFilter as c, EmailFilter as d, IdFilter as f, DateFilter as g, UrlFilter as h, createPicklistFilter as i, createStrapiLogicalFilterEntries as j, createStrapiMembershipOperatorEntries as k, NumberFilterValue as l, SlugFilter as m, StringFilter as n, IntegerFilterValue as o, IdFilterValue as p, StrapiStrictFilterObjectOutput as q, createPicklistArrayFilter as r, NUMBER_STRING_PATTERN as s, LongStringFilter as t, DocumentIdFilter as u, DateTimeFilter as v, createStrapiStringMatchingOperatorEntries as w, TimeFilterValue as x, DateTimeFilterValue as y, createStrapiOperatorSchema as z };
571
+ export { StrapiFilterObjectOutput as $, createStrapiMembershipOperatorEntries as A, createFilterWithMetadata as B, BooleanFilterValue as C, StrapiNullOperatorEntries as D, createStrapiStrictFilterObject as E, STRAPI_FILTER_METADATA as F, createStrapiComparisonOperatorEntries as G, createStrapiFieldOperatorSchema as H, STRAPI_FILTER_OPERATORS as I, OptionalStrapiFilterEntries as J, createStrapiEqualityOperatorEntries as K, StrapiFilterInputType as L, createStrapiLogicalFilterEntries as M, FilterSchemaMetadata as N, createStrapiArrayMembershipOperatorEntries as O, FilterWithMetadata as P, StrapiFilterObjectInput as Q, StrapiFilterOperator as R, BooleanFilter as S, createStrapiFilterObject as T, createStrapiOperatorSchema as U, getFilterMetadata as V, createStrapiCaseInsensitiveEqualityOperatorEntries as W, StrapiFilterEntries as X, StrapiBaseSchema as Y, StrapiFilterInput as Z, DateFilterValue as _, IntegerFilter as a, StrapiObjectSchema as at, TimeFilter as b, NumberFilter as c, StrapiStrictFilterObjectSchema as ct, EmailFilter as d, StrapiFilterObjectSchema as et, IdFilter as f, DateFilter as g, UrlFilter as h, createPicklistFilter as i, StrapiLogicalFilterBaseSchema as it, createStrapiFilterSchema as j, createStrapiBetweenOperatorEntries as k, NumberFilterValue as l, SlugFilter as m, StringFilter as n, StrapiFilterSchema as nt, IntegerFilterValue as o, StrapiStrictFilterObjectInput as ot, IdFilterValue as p, createStrapiOrderedComparisonOperatorEntries as q, createPicklistArrayFilter as r, StrapiLogicalFilter as rt, NUMBER_STRING_PATTERN as s, StrapiStrictFilterObjectOutput as st, LongStringFilter as t, StrapiFilterOutput as tt, DocumentIdFilter as u, DateTimeFilter as v, createStrapiStringMatchingOperatorEntries as w, TimeFilterValue as x, DateTimeFilterValue as y, StrapiFilterOperatorKind as z };