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