@getcommunity/gc-validators 0.0.306 → 0.0.308
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/base/index.cjs +1 -1
- package/dist/base/index.d.cts +2 -2
- package/dist/base/index.d.mts +2 -2
- package/dist/base/index.mjs +1 -1
- package/dist/{boolean-B9pkVr9K.mjs → boolean-Awn5E33N.mjs} +1 -1
- package/dist/{boolean-DZB5dGaW.cjs → boolean-DzD4fTb5.cjs} +1 -1
- package/dist/entities/audit-log/query.cjs +3 -3
- package/dist/entities/audit-log/query.d.cts +5 -5
- package/dist/entities/audit-log/query.d.mts +5 -5
- package/dist/entities/audit-log/query.mjs +3 -3
- package/dist/entities/blog-post/query.cjs +4 -4
- package/dist/entities/blog-post/query.d.cts +5 -5
- package/dist/entities/blog-post/query.d.mts +5 -5
- package/dist/entities/blog-post/query.mjs +4 -4
- package/dist/entities/category/query.cjs +2 -2
- package/dist/entities/category/query.d.cts +1 -1
- package/dist/entities/category/query.d.mts +1 -1
- package/dist/entities/category/query.mjs +2 -2
- package/dist/entities/client/query.cjs +4 -4
- package/dist/entities/client/query.d.cts +1 -1
- package/dist/entities/client/query.d.mts +1 -1
- package/dist/entities/client/query.mjs +4 -4
- package/dist/entities/client-content-pillar/query.cjs +1 -1
- package/dist/entities/client-content-pillar/query.d.cts +1 -1
- package/dist/entities/client-content-pillar/query.d.mts +1 -1
- package/dist/entities/client-content-pillar/query.mjs +1 -1
- package/dist/entities/client-email/query.cjs +2 -2
- package/dist/entities/client-email/query.d.cts +2 -2
- package/dist/entities/client-email/query.d.mts +2 -2
- package/dist/entities/client-email/query.mjs +2 -2
- package/dist/entities/client-media-platform/query.cjs +1 -1
- package/dist/entities/client-media-platform/query.d.cts +1 -1
- package/dist/entities/client-media-platform/query.d.mts +1 -1
- package/dist/entities/client-media-platform/query.mjs +1 -1
- package/dist/entities/client-project/query.cjs +4 -4
- package/dist/entities/client-project/query.d.cts +10 -10
- package/dist/entities/client-project/query.d.mts +10 -10
- package/dist/entities/client-project/query.mjs +4 -4
- package/dist/entities/client-report/query.cjs +4 -4
- package/dist/entities/client-report/query.d.cts +6 -6
- package/dist/entities/client-report/query.d.mts +6 -6
- package/dist/entities/client-report/query.mjs +4 -4
- package/dist/entities/client-styleguide/query.cjs +3 -3
- package/dist/entities/client-styleguide/query.d.cts +2 -2
- package/dist/entities/client-styleguide/query.d.mts +2 -2
- package/dist/entities/client-styleguide/query.mjs +3 -3
- package/dist/entities/client-user/query.cjs +1 -1
- package/dist/entities/client-user/query.d.cts +1 -1
- package/dist/entities/client-user/query.d.mts +1 -1
- package/dist/entities/client-user/query.mjs +1 -1
- package/dist/entities/content-pillar/query.cjs +1 -1
- package/dist/entities/content-pillar/query.d.cts +1 -1
- package/dist/entities/content-pillar/query.d.mts +1 -1
- package/dist/entities/content-pillar/query.mjs +1 -1
- package/dist/entities/gcflytour/query.cjs +1 -1
- package/dist/entities/gcflytour/query.d.cts +1 -1
- package/dist/entities/gcflytour/query.d.mts +1 -1
- package/dist/entities/gcflytour/query.mjs +1 -1
- package/dist/entities/gcflytour-snap/query.cjs +1 -1
- package/dist/entities/gcflytour-snap/query.d.cts +1 -1
- package/dist/entities/gcflytour-snap/query.d.mts +1 -1
- package/dist/entities/gcflytour-snap/query.mjs +1 -1
- package/dist/entities/media-content-type/query.cjs +1 -1
- package/dist/entities/media-content-type/query.d.cts +1 -1
- package/dist/entities/media-content-type/query.d.mts +1 -1
- package/dist/entities/media-content-type/query.mjs +1 -1
- package/dist/entities/media-creative-format/query.cjs +1 -1
- package/dist/entities/media-creative-format/query.d.cts +1 -1
- package/dist/entities/media-creative-format/query.d.mts +1 -1
- package/dist/entities/media-creative-format/query.mjs +1 -1
- package/dist/entities/media-medium/query.cjs +1 -1
- package/dist/entities/media-medium/query.d.cts +1 -1
- package/dist/entities/media-medium/query.d.mts +1 -1
- package/dist/entities/media-medium/query.mjs +1 -1
- package/dist/entities/media-platform/query.cjs +1 -1
- package/dist/entities/media-platform/query.d.cts +1 -1
- package/dist/entities/media-platform/query.d.mts +1 -1
- package/dist/entities/media-platform/query.mjs +1 -1
- package/dist/entities/monday-workspace/query.cjs +2 -2
- package/dist/entities/monday-workspace/query.d.cts +2 -2
- package/dist/entities/monday-workspace/query.d.mts +2 -2
- package/dist/entities/monday-workspace/query.mjs +2 -2
- package/dist/entities/tag/query.cjs +2 -2
- package/dist/entities/tag/query.d.cts +1 -1
- package/dist/entities/tag/query.d.mts +1 -1
- package/dist/entities/tag/query.mjs +2 -2
- package/dist/entities/team-member/query.cjs +4 -4
- package/dist/entities/team-member/query.d.cts +9 -9
- package/dist/entities/team-member/query.d.mts +9 -9
- package/dist/entities/team-member/query.mjs +4 -4
- package/dist/entities/up-permission/fields.cjs +1 -1
- package/dist/entities/up-permission/fields.d.cts +1 -1
- package/dist/entities/up-permission/fields.d.mts +1 -1
- package/dist/entities/up-permission/fields.mjs +1 -1
- package/dist/entities/up-role/query.cjs +3 -3
- package/dist/entities/up-role/query.d.cts +1 -1
- package/dist/entities/up-role/query.d.mts +1 -1
- package/dist/entities/up-role/query.mjs +3 -3
- package/dist/entities/up-user/query.cjs +1 -1
- package/dist/entities/up-user/query.d.cts +1 -1
- package/dist/entities/up-user/query.d.mts +1 -1
- package/dist/entities/up-user/query.mjs +1 -1
- package/dist/entities/url-redirect/query.cjs +4 -4
- package/dist/entities/url-redirect/query.d.cts +9 -9
- package/dist/entities/url-redirect/query.d.mts +9 -9
- package/dist/entities/url-redirect/query.mjs +4 -4
- package/dist/entities/user-account/query.cjs +1 -1
- package/dist/entities/user-account/query.d.cts +1 -1
- package/dist/entities/user-account/query.d.mts +1 -1
- package/dist/entities/user-account/query.mjs +1 -1
- package/dist/entities/utm-tracking-link/query.cjs +4 -4
- package/dist/entities/utm-tracking-link/query.d.cts +3 -3
- package/dist/entities/utm-tracking-link/query.d.mts +3 -3
- package/dist/entities/utm-tracking-link/query.mjs +4 -4
- package/dist/{fields-fxTmaSCr.d.mts → fields-1U7noaTo.d.mts} +5 -5
- package/dist/{fields-BScANfM0.d.cts → fields-BmZULYPg.d.cts} +5 -5
- package/dist/filters/index.cjs +5 -5
- package/dist/filters/index.d.cts +1 -1
- package/dist/filters/index.d.mts +1 -1
- package/dist/filters/index.mjs +5 -5
- package/dist/{identifier-ZVc5ZEFp.cjs → identifier-B5hoNK94.cjs} +1 -1
- package/dist/{identifier-BnAdr43c.mjs → identifier-P11I6-2e.mjs} +1 -1
- package/dist/{index-feHp4WUf.d.cts → index-BKxoyWIT.d.cts} +1 -1
- package/dist/{index-Br1DLTK5.d.mts → index-DrNoP-_5.d.mts} +1 -1
- package/dist/{index-NJSPHzTh.d.cts → index-M8czzs6r.d.cts} +45 -45
- package/dist/{index-NJSPHzTh.d.mts → index-M8czzs6r.d.mts} +45 -45
- package/dist/{null-operators-BpmMpWMs.cjs → null-operators-CGfkGrIO.cjs} +4 -6
- package/dist/{null-operators-CW41NZJ7.mjs → null-operators-t1LAL1Jv.mjs} +4 -6
- package/dist/{picklist-BOceTxAA.mjs → picklist-DbQ-Fjn0.mjs} +1 -1
- package/dist/{picklist-DW93VQfj.cjs → picklist-ilW7cZW7.cjs} +1 -1
- package/dist/{query-D-TAJCFs.mjs → query-37qHv0dT.mjs} +1 -1
- package/dist/{query-vcgkM1mZ.d.cts → query-BLEF9j_D.d.cts} +1 -1
- package/dist/{query-DXHnxqVS.d.mts → query-BMbkq_eR.d.mts} +4 -4
- package/dist/{query-DQircRXp.d.mts → query-BeE--MIO.d.cts} +2 -2
- package/dist/{query-Dh4jAM04.cjs → query-Bj9M3CNT.cjs} +3 -3
- package/dist/{query-DfzqhG9z.d.cts → query-BqtZJliF.d.mts} +2 -2
- package/dist/query-Bwjam4Z-.d.cts +40 -0
- package/dist/{query-CAg5Fdvq.d.cts → query-C7PXaNyZ.d.mts} +2 -2
- package/dist/{query-DXZC6dBq.d.cts → query-C98m5sMH.d.cts} +2 -2
- package/dist/query-CAsrSbX3.d.mts +40 -0
- package/dist/{query-CjNK8XHh.d.mts → query-CB5--WQd.d.mts} +2 -2
- package/dist/{query-DQSgkyFZ.mjs → query-CCVy5AFa.mjs} +3 -3
- package/dist/{query-CRRAhj8h.d.mts → query-CV9Q9iZv.d.mts} +1 -1
- package/dist/{query-BTn7Mbhe.cjs → query-CtFtyo3M.cjs} +3 -3
- package/dist/{query-C-zn1aDf.cjs → query-CtrsxZKW.cjs} +3 -3
- package/dist/{query-BUBZG0lk.cjs → query-D-i9F0yF.cjs} +1 -1
- package/dist/{query-BDt1XbaT.mjs → query-D1zYGtel.mjs} +3 -3
- package/dist/{query-OgBn6Wb8.mjs → query-D6FiVYPp.mjs} +3 -3
- package/dist/{query-CXwQ-JYD.d.cts → query-DF85FJRT.d.cts} +5 -5
- package/dist/{query-DBsIg3a3.d.mts → query-DJb7ukGF.d.mts} +5 -5
- package/dist/{query-D-asGibs.mjs → query-DmP074m6.mjs} +3 -3
- package/dist/{query-DBdw5lhZ.cjs → query-LI2-OdpF.cjs} +3 -3
- package/dist/{query-ChglmGUi.d.cts → query-lMKzM90T.d.cts} +4 -4
- package/dist/{query-CiGpXQwP.d.mts → query-nhy4I6mm.d.cts} +2 -2
- package/dist/{string-JZ5Ebp4F.cjs → string-CFRNdIpd.cjs} +1 -1
- package/dist/{string-E9RFN4GE.mjs → string-DFJlWRKA.mjs} +1 -1
- package/dist/utilities/index.d.cts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/query-Bm3k4hEl.d.mts +0 -40
- package/dist/query-BocM-8zw.d.cts +0 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as StrapiLogicalFilter, f as IdFilter, ot as StrapiLogicalFilterBaseSchema, u as DocumentIdFilter, v as DateTimeFilter } from "./index-
|
|
1
|
+
import { at as StrapiLogicalFilter, f as IdFilter, ot as StrapiLogicalFilterBaseSchema, u as DocumentIdFilter, v as DateTimeFilter } from "./index-M8czzs6r.cjs";
|
|
2
2
|
import { t as JsonData } from "./json-Ygk2txLN.cjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as StrapiLogicalFilter, f as IdFilter, ot as StrapiLogicalFilterBaseSchema, u as DocumentIdFilter, v as DateTimeFilter } from "./index-
|
|
1
|
+
import { at as StrapiLogicalFilter, f as IdFilter, ot as StrapiLogicalFilterBaseSchema, u as DocumentIdFilter, v as DateTimeFilter } from "./index-M8czzs6r.mjs";
|
|
2
2
|
import { t as JsonData } from "./json-Ygk2txLN.mjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
@@ -52,7 +52,7 @@ type StrapiLogicalFilter<TFields extends object, TDepth extends StrapiFilterMaxD
|
|
|
52
52
|
$not?: StrapiLogicalFilter<TFields, PreviousStrapiFilterDepth<TDepth>>;
|
|
53
53
|
});
|
|
54
54
|
type StrapiMembershipInput<TValue> = TValue extends readonly (infer TItem)[] ? (TItem | undefined)[] : TValue;
|
|
55
|
-
type StrapiBetweenInput<TValue> = TValue extends readonly
|
|
55
|
+
type StrapiBetweenInput<TValue> = TValue extends readonly (infer TItem)[] ? (TItem | undefined)[] : TValue;
|
|
56
56
|
type StrapiLogicalFilterInputValue<TKey extends PropertyKey, TValue> = TKey extends "$in" | "$notIn" ? StrapiMembershipInput<TValue> : TKey extends "$between" ? StrapiBetweenInput<TValue> : TKey extends "$and" | "$or" ? TValue extends readonly (infer TItem)[] ? StrapiLogicalFilterInputField<TItem>[] : TValue : TKey extends "$not" ? StrapiLogicalFilterInputField<TValue> : StrapiLogicalFilterInputField<TValue>;
|
|
57
57
|
type StrapiLogicalFilterInputField<TField> = TField extends readonly unknown[] ? TField : TField extends object ? Simplify<{ [TKey in keyof TField]: StrapiLogicalFilterInputValue<TKey, TField[TKey]> }> : TField;
|
|
58
58
|
type StrapiLogicalFilterInputFields<TFields extends object> = { [TKey in keyof TFields]: StrapiLogicalFilterInputField<TFields[TKey]> };
|
|
@@ -129,16 +129,16 @@ declare const createStrapiFilterSchema: <const TFieldEntries extends StrapiFilte
|
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/filters/primitives/membership-operators.d.ts
|
|
131
131
|
declare const createStrapiArrayMembershipOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
|
|
132
|
-
$in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
133
|
-
$notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
132
|
+
$in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
133
|
+
$notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
134
134
|
};
|
|
135
135
|
declare const createStrapiBetweenOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
|
|
136
|
-
$between: v.
|
|
136
|
+
$between: v.OptionalSchema<v.ArraySchema<TValue, undefined>, undefined>;
|
|
137
137
|
};
|
|
138
138
|
declare const createStrapiMembershipOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
|
|
139
|
-
$between: v.
|
|
140
|
-
$in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
141
|
-
$notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
139
|
+
$between: v.OptionalSchema<v.ArraySchema<TValue, undefined>, undefined>;
|
|
140
|
+
$in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
141
|
+
$notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
142
142
|
};
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/filters/primitives/null-operators.d.ts
|
|
@@ -197,9 +197,9 @@ type DateTimeFilterValue = v.InferOutput<typeof DateTimeFilterValue>;
|
|
|
197
197
|
declare const DateFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
198
198
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
199
199
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
200
|
-
readonly $between: v.
|
|
201
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
202
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
200
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
201
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
202
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
203
203
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
204
204
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
205
205
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -210,9 +210,9 @@ declare const DateFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilter
|
|
|
210
210
|
$not: StrapiFilterObjectSchema<{
|
|
211
211
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
212
212
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
213
|
-
readonly $between: v.
|
|
214
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
215
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
213
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
214
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
215
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
216
216
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
217
217
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
218
218
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -230,9 +230,9 @@ type DateFilter = v.InferOutput<typeof DateFilter>;
|
|
|
230
230
|
declare const TimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
231
231
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
232
232
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
233
|
-
readonly $between: v.
|
|
234
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
235
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
233
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
234
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
235
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
236
236
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
237
237
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
238
238
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -243,9 +243,9 @@ declare const TimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilter
|
|
|
243
243
|
$not: StrapiFilterObjectSchema<{
|
|
244
244
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
245
245
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
246
|
-
readonly $between: v.
|
|
247
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
248
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
246
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
247
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
248
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
249
249
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
250
250
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
251
251
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -263,9 +263,9 @@ type TimeFilter = v.InferOutput<typeof TimeFilter>;
|
|
|
263
263
|
declare const DateTimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
264
264
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
265
265
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
266
|
-
readonly $between: v.
|
|
267
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
268
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
266
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
267
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
268
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
269
269
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
270
270
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
271
271
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -276,9 +276,9 @@ declare const DateTimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFi
|
|
|
276
276
|
$not: StrapiFilterObjectSchema<{
|
|
277
277
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
278
278
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
279
|
-
readonly $between: v.
|
|
280
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
281
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
279
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
280
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
281
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
282
282
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
283
283
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
284
284
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -398,9 +398,9 @@ type IntegerFilterValue = v.InferOutput<typeof IntegerFilterValue>;
|
|
|
398
398
|
declare const NumberFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
399
399
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
400
400
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
401
|
-
readonly $between: v.
|
|
402
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
403
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
401
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, undefined>;
|
|
402
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
403
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
404
404
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
405
405
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
406
406
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
@@ -411,9 +411,9 @@ declare const NumberFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilt
|
|
|
411
411
|
$not: StrapiFilterObjectSchema<{
|
|
412
412
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
413
413
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
414
|
-
readonly $between: v.
|
|
415
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
416
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
414
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, undefined>;
|
|
415
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
416
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
417
417
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
418
418
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
419
419
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
@@ -431,9 +431,9 @@ type NumberFilter = v.InferOutput<typeof NumberFilter>;
|
|
|
431
431
|
declare const IntegerFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
432
432
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
433
433
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
434
|
-
readonly $between: v.
|
|
435
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
436
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
434
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
435
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
436
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
437
437
|
readonly $gt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
438
438
|
readonly $gte: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
439
439
|
readonly $lt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
@@ -444,9 +444,9 @@ declare const IntegerFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFil
|
|
|
444
444
|
$not: StrapiFilterObjectSchema<{
|
|
445
445
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
446
446
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
447
|
-
readonly $between: v.
|
|
448
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
449
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
447
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
448
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
449
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
450
450
|
readonly $gt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
451
451
|
readonly $gte: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
452
452
|
readonly $lt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
@@ -466,16 +466,16 @@ type IntegerFilter = v.InferOutput<typeof IntegerFilter>;
|
|
|
466
466
|
declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
467
467
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
468
468
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
469
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
470
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
469
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
470
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
471
471
|
readonly $eq: TValue;
|
|
472
472
|
readonly $ne: TValue;
|
|
473
473
|
} & {
|
|
474
474
|
$not: StrapiFilterObjectSchema<{
|
|
475
475
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
476
476
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
477
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
478
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
477
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
478
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
479
479
|
readonly $eq: TValue;
|
|
480
480
|
readonly $ne: TValue;
|
|
481
481
|
}>;
|
|
@@ -488,16 +488,16 @@ declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(valu
|
|
|
488
488
|
declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
489
489
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
490
490
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
491
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
492
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
491
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
492
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
493
493
|
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
494
494
|
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
495
495
|
} & {
|
|
496
496
|
$not: StrapiFilterObjectSchema<{
|
|
497
497
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
498
498
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
499
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
500
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
499
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
500
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
501
501
|
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
502
502
|
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
503
503
|
}>;
|
|
@@ -52,7 +52,7 @@ type StrapiLogicalFilter<TFields extends object, TDepth extends StrapiFilterMaxD
|
|
|
52
52
|
$not?: StrapiLogicalFilter<TFields, PreviousStrapiFilterDepth<TDepth>>;
|
|
53
53
|
});
|
|
54
54
|
type StrapiMembershipInput<TValue> = TValue extends readonly (infer TItem)[] ? (TItem | undefined)[] : TValue;
|
|
55
|
-
type StrapiBetweenInput<TValue> = TValue extends readonly
|
|
55
|
+
type StrapiBetweenInput<TValue> = TValue extends readonly (infer TItem)[] ? (TItem | undefined)[] : TValue;
|
|
56
56
|
type StrapiLogicalFilterInputValue<TKey extends PropertyKey, TValue> = TKey extends "$in" | "$notIn" ? StrapiMembershipInput<TValue> : TKey extends "$between" ? StrapiBetweenInput<TValue> : TKey extends "$and" | "$or" ? TValue extends readonly (infer TItem)[] ? StrapiLogicalFilterInputField<TItem>[] : TValue : TKey extends "$not" ? StrapiLogicalFilterInputField<TValue> : StrapiLogicalFilterInputField<TValue>;
|
|
57
57
|
type StrapiLogicalFilterInputField<TField> = TField extends readonly unknown[] ? TField : TField extends object ? Simplify<{ [TKey in keyof TField]: StrapiLogicalFilterInputValue<TKey, TField[TKey]> }> : TField;
|
|
58
58
|
type StrapiLogicalFilterInputFields<TFields extends object> = { [TKey in keyof TFields]: StrapiLogicalFilterInputField<TFields[TKey]> };
|
|
@@ -129,16 +129,16 @@ declare const createStrapiFilterSchema: <const TFieldEntries extends StrapiFilte
|
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/filters/primitives/membership-operators.d.ts
|
|
131
131
|
declare const createStrapiArrayMembershipOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
|
|
132
|
-
$in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
133
|
-
$notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
132
|
+
$in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
133
|
+
$notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
134
134
|
};
|
|
135
135
|
declare const createStrapiBetweenOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
|
|
136
|
-
$between: v.
|
|
136
|
+
$between: v.OptionalSchema<v.ArraySchema<TValue, undefined>, undefined>;
|
|
137
137
|
};
|
|
138
138
|
declare const createStrapiMembershipOperatorEntries: <const TValue extends StrapiBaseSchema>(value: TValue) => {
|
|
139
|
-
$between: v.
|
|
140
|
-
$in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
141
|
-
$notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
139
|
+
$between: v.OptionalSchema<v.ArraySchema<TValue, undefined>, undefined>;
|
|
140
|
+
$in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
141
|
+
$notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
142
142
|
};
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/filters/primitives/null-operators.d.ts
|
|
@@ -197,9 +197,9 @@ type DateTimeFilterValue = v.InferOutput<typeof DateTimeFilterValue>;
|
|
|
197
197
|
declare const DateFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
198
198
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
199
199
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
200
|
-
readonly $between: v.
|
|
201
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
202
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
200
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
201
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
202
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
203
203
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
204
204
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
205
205
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -210,9 +210,9 @@ declare const DateFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilter
|
|
|
210
210
|
$not: StrapiFilterObjectSchema<{
|
|
211
211
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
212
212
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
213
|
-
readonly $between: v.
|
|
214
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
215
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
213
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
214
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
215
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
216
216
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
217
217
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
218
218
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -230,9 +230,9 @@ type DateFilter = v.InferOutput<typeof DateFilter>;
|
|
|
230
230
|
declare const TimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
231
231
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
232
232
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
233
|
-
readonly $between: v.
|
|
234
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
235
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
233
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
234
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
235
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
236
236
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
237
237
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
238
238
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -243,9 +243,9 @@ declare const TimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilter
|
|
|
243
243
|
$not: StrapiFilterObjectSchema<{
|
|
244
244
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
245
245
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
246
|
-
readonly $between: v.
|
|
247
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
248
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
246
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
247
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
248
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
249
249
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
250
250
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
251
251
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -263,9 +263,9 @@ type TimeFilter = v.InferOutput<typeof TimeFilter>;
|
|
|
263
263
|
declare const DateTimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
264
264
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
265
265
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
266
|
-
readonly $between: v.
|
|
267
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
268
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
266
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
267
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
268
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
269
269
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
270
270
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
271
271
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -276,9 +276,9 @@ declare const DateTimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFi
|
|
|
276
276
|
$not: StrapiFilterObjectSchema<{
|
|
277
277
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
278
278
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
279
|
-
readonly $between: v.
|
|
280
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
281
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
279
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, undefined>;
|
|
280
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
281
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>, undefined>, v.TransformAction<string[], string[]>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
282
282
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
283
283
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
284
284
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
@@ -398,9 +398,9 @@ type IntegerFilterValue = v.InferOutput<typeof IntegerFilterValue>;
|
|
|
398
398
|
declare const NumberFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
399
399
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
400
400
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
401
|
-
readonly $between: v.
|
|
402
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
403
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
401
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, undefined>;
|
|
402
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
403
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
404
404
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
405
405
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
406
406
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
@@ -411,9 +411,9 @@ declare const NumberFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilt
|
|
|
411
411
|
$not: StrapiFilterObjectSchema<{
|
|
412
412
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
413
413
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
414
|
-
readonly $between: v.
|
|
415
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
416
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
414
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, undefined>;
|
|
415
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
416
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
417
417
|
readonly $gt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
418
418
|
readonly $gte: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
419
419
|
readonly $lt: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
@@ -431,9 +431,9 @@ type NumberFilter = v.InferOutput<typeof NumberFilter>;
|
|
|
431
431
|
declare const IntegerFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
432
432
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
433
433
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
434
|
-
readonly $between: v.
|
|
435
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
436
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
434
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
435
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
436
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
437
437
|
readonly $gt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
438
438
|
readonly $gte: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
439
439
|
readonly $lt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
@@ -444,9 +444,9 @@ declare const IntegerFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFil
|
|
|
444
444
|
$not: StrapiFilterObjectSchema<{
|
|
445
445
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
446
446
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
447
|
-
readonly $between: v.
|
|
448
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
449
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
447
|
+
readonly $between: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
448
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
449
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MinLengthAction<number[], 1, undefined>]>, undefined>;
|
|
450
450
|
readonly $gt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
451
451
|
readonly $gte: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
452
452
|
readonly $lt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
@@ -466,16 +466,16 @@ type IntegerFilter = v.InferOutput<typeof IntegerFilter>;
|
|
|
466
466
|
declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
467
467
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
468
468
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
469
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
470
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
469
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
470
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
471
471
|
readonly $eq: TValue;
|
|
472
472
|
readonly $ne: TValue;
|
|
473
473
|
} & {
|
|
474
474
|
$not: StrapiFilterObjectSchema<{
|
|
475
475
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
476
476
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
477
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
478
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
477
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
478
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
479
479
|
readonly $eq: TValue;
|
|
480
480
|
readonly $ne: TValue;
|
|
481
481
|
}>;
|
|
@@ -488,16 +488,16 @@ declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(valu
|
|
|
488
488
|
declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
489
489
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
490
490
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
491
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
492
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
491
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
492
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
493
493
|
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
494
494
|
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
495
495
|
} & {
|
|
496
496
|
$not: StrapiFilterObjectSchema<{
|
|
497
497
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
498
498
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
499
|
-
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
500
|
-
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<
|
|
499
|
+
readonly $in: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
500
|
+
readonly $notIn: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.TransformAction<v.InferOutput<TValue>[], v.InferOutput<TValue>[]>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>, undefined>;
|
|
501
501
|
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
502
502
|
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
503
503
|
}>;
|
|
@@ -42,12 +42,10 @@ function createStrapiFieldOperatorSchema(entries, metadata) {
|
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/filters/primitives/membership-operators.ts
|
|
44
44
|
const isDefined = (value) => value !== void 0;
|
|
45
|
-
const createStrapiArrayMembershipValue = (value) => valibot.
|
|
46
|
-
const createStrapiBetweenValue = (value) =>
|
|
47
|
-
valibot.
|
|
48
|
-
|
|
49
|
-
valibot.strictTuple([valibot.optional(value), valibot.optional(value)])
|
|
50
|
-
]);
|
|
45
|
+
const createStrapiArrayMembershipValue = (value) => valibot.optional(valibot.pipe(valibot.array(value), valibot.transform((items) => items.filter(isDefined)), valibot.minLength(1)));
|
|
46
|
+
const createStrapiBetweenValue = (value) => {
|
|
47
|
+
return valibot.optional(valibot.array(value));
|
|
48
|
+
};
|
|
51
49
|
const createStrapiArrayMembershipOperatorEntries = (value) => ({
|
|
52
50
|
$in: createStrapiArrayMembershipValue(value),
|
|
53
51
|
$notIn: createStrapiArrayMembershipValue(value)
|