@getcommunity/gc-validators 0.0.297 → 0.0.299
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-DDWUN-57.mjs → boolean-BvzTfxwy.mjs} +3 -3
- package/dist/{boolean-Dsl1C-Ra.cjs → boolean-DoVoZltY.cjs} +3 -3
- package/dist/{document-CQXaMh3B.mjs → document-0ZHuVdfl.mjs} +19 -19
- package/dist/entities/audit-log/query.cjs +3 -3
- package/dist/entities/audit-log/query.d.cts +4 -4
- package/dist/entities/audit-log/query.d.mts +4 -4
- 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 +4 -4
- package/dist/entities/blog-post/query.d.mts +4 -4
- 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 +8 -8
- package/dist/entities/client-project/query.d.mts +8 -8
- 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 +5 -5
- package/dist/entities/client-report/query.d.mts +5 -5
- 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 +7 -7
- package/dist/entities/team-member/query.d.mts +7 -7
- package/dist/entities/team-member/query.mjs +4 -4
- package/dist/entities/teamwork/query.cjs +12 -5
- package/dist/entities/teamwork/query.d.cts +19 -4
- package/dist/entities/teamwork/query.d.mts +19 -4
- package/dist/entities/teamwork/query.mjs +12 -6
- 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 +7 -7
- package/dist/entities/url-redirect/query.d.mts +7 -7
- 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-C6QDTmb0.d.cts → fields-CZ5p98M8.d.cts} +4 -4
- package/dist/{fields-CW6Yk8yM.d.mts → fields-O3HDb-Qw.d.mts} +4 -4
- package/dist/filters/index.cjs +41 -9
- package/dist/filters/index.d.cts +2 -2
- package/dist/filters/index.d.mts +2 -2
- package/dist/filters/index.mjs +37 -6
- package/dist/{identifier-ZA0AkHoR.mjs → identifier-BD_RigJQ.mjs} +21 -18
- package/dist/{identifier-DG1qfAj_.cjs → identifier-gnsvtFf8.cjs} +21 -18
- package/dist/{index-BT0CIpnR.d.cts → index-B_W2lD3A.d.cts} +1 -1
- package/dist/{index-bg-zPAlD.d.cts → index-C8zvJAcn.d.cts} +63 -57
- package/dist/{index-bg-zPAlD.d.mts → index-C8zvJAcn.d.mts} +63 -57
- package/dist/{index-DJ3LAbaV.d.mts → index-DeX5X0JI.d.mts} +1 -1
- package/dist/{null-operators-D0ijm3Xq.cjs → null-operators-BUWeBpfM.cjs} +11 -60
- package/dist/null-operators-ChVQtMKo.mjs +58 -0
- package/dist/{picklist-BMOTqyK3.cjs → picklist-BAFeyJ7r.cjs} +5 -5
- package/dist/{picklist-Clrg9KLL.mjs → picklist-CRMInABi.mjs} +5 -5
- package/dist/{query-SVauZUSS.cjs → query-2TsOtbtM.cjs} +3 -3
- package/dist/{query-BzQGVclk.d.mts → query-B4tNADyH.d.cts} +4 -4
- package/dist/{query-FgWCZ38f.d.mts → query-B67RY7OC.d.mts} +1 -1
- package/dist/{query-DP430sQT.cjs → query-BGXP9PSs.cjs} +3 -3
- package/dist/{query-DlKp-dA5.d.mts → query-BGosCIOv.d.mts} +2 -2
- package/dist/{query-BiFE_bzG.mjs → query-BXEy-_2K.mjs} +3 -3
- package/dist/{query-CDwMPstD.d.mts → query-Bc6kwdXU.d.mts} +4 -4
- package/dist/{query-BTiEfanP.mjs → query-Bh96xFZv.mjs} +3 -3
- package/dist/{query-Ct48gLvP.d.mts → query-C6X-a3tM.d.cts} +8 -8
- package/dist/{query-RGx-4Sp6.d.cts → query-CA8nFgl3.d.mts} +2 -2
- package/dist/{query-EwjQM38Y.d.mts → query-CDF2H6fF.d.cts} +2 -2
- package/dist/{query-vCWKNSUm.cjs → query-CQZoRZEr.cjs} +1 -1
- package/dist/{query-ZVlS5pZJ.d.cts → query-CXv6jojq.d.cts} +2 -2
- package/dist/{query-CfoIC7ng.cjs → query-Ce0oVN3B.cjs} +3 -3
- package/dist/{query-D6p-dpm7.d.cts → query-CnNTSuGY.d.mts} +2 -2
- package/dist/{query-Dlx0YFAr.d.cts → query-Cs-FN3ea.d.cts} +4 -4
- package/dist/{query-BDTpEIPG.d.mts → query-CvQ81zW7.d.cts} +2 -2
- package/dist/{query-BUkFu-Kg.mjs → query-DCl3hfWc.mjs} +1 -1
- package/dist/{query-BdtgkFJ7.mjs → query-DFGpoaeB.mjs} +3 -3
- package/dist/{query-5Dhe5KuM.mjs → query-DSmHfYUo.mjs} +3 -3
- package/dist/{query-DF-6m1Rt.d.cts → query-Dz5mKiz6.d.mts} +8 -8
- package/dist/{query-ChpRaNq7.d.cts → query-KJdd8STW.d.mts} +4 -4
- package/dist/{query-Cz5fEpo-.cjs → query-w3mWLivj.cjs} +3 -3
- package/dist/{query-BDHkFnFz.d.cts → query-ymBgXke3.d.cts} +1 -1
- package/dist/{string-CIc74QYv.cjs → string-CabdwbFC.cjs} +5 -5
- package/dist/{string-CoI3xSs-.mjs → string-DfcvXgd6.mjs} +5 -5
- package/dist/utilities/index.d.cts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/null-operators-Cr7Gk-nO.mjs +0 -83
- package/dist/{document-DMIwyuT8.cjs → document-y3W3rg2J.cjs} +18 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-D6vf50IK.cjs");
|
|
2
|
-
const require_null_operators = require("./null-operators-
|
|
2
|
+
const require_null_operators = require("./null-operators-BUWeBpfM.cjs");
|
|
3
3
|
const require_relationships = require("./relationships-BiOl8YTc.cjs");
|
|
4
4
|
const require_email = require("./email-dsbWKuhH.cjs");
|
|
5
5
|
const require_slug = require("./slug-BcLLMLTX.cjs");
|
|
@@ -50,30 +50,30 @@ const normalizeTimestamp = (input) => {
|
|
|
50
50
|
const DateFilterValue = valibot.pipe(valibot.union([valibot.pipe(valibot.string(), valibot.trim(), valibot.check(isValidDateInput))]), valibot.transform(normalizeDate));
|
|
51
51
|
const TimeFilterValue = valibot.pipe(valibot.union([valibot.pipe(valibot.string(), valibot.trim(), valibot.regex(TIME_PATTERN))]), valibot.transform(normalizeTime));
|
|
52
52
|
const DateTimeFilterValue = valibot.pipe(valibot.union([valibot.pipe(valibot.string(), valibot.trim(), valibot.check(isValidTimestampInput))]), valibot.transform(normalizeTimestamp));
|
|
53
|
-
const DateFilter = require_null_operators.
|
|
53
|
+
const DateFilter = require_null_operators.createStrapiFieldOperatorSchema({
|
|
54
54
|
...require_null_operators.createStrapiEqualityOperatorEntries(DateFilterValue),
|
|
55
55
|
...require_null_operators.createStrapiOrderedComparisonOperatorEntries(DateFilterValue),
|
|
56
56
|
...require_null_operators.createStrapiMembershipOperatorEntries(DateFilterValue),
|
|
57
57
|
...require_null_operators.StrapiNullOperatorEntries
|
|
58
|
-
}
|
|
58
|
+
}, { value: {
|
|
59
59
|
kind: "comparison",
|
|
60
60
|
input: "date-range"
|
|
61
61
|
} });
|
|
62
|
-
const TimeFilter = require_null_operators.
|
|
62
|
+
const TimeFilter = require_null_operators.createStrapiFieldOperatorSchema({
|
|
63
63
|
...require_null_operators.createStrapiEqualityOperatorEntries(TimeFilterValue),
|
|
64
64
|
...require_null_operators.createStrapiOrderedComparisonOperatorEntries(TimeFilterValue),
|
|
65
65
|
...require_null_operators.createStrapiMembershipOperatorEntries(TimeFilterValue),
|
|
66
66
|
...require_null_operators.StrapiNullOperatorEntries
|
|
67
|
-
}
|
|
67
|
+
}, { value: {
|
|
68
68
|
kind: "comparison",
|
|
69
69
|
input: "time-range"
|
|
70
70
|
} });
|
|
71
|
-
const DateTimeFilter = require_null_operators.
|
|
71
|
+
const DateTimeFilter = require_null_operators.createStrapiFieldOperatorSchema({
|
|
72
72
|
...require_null_operators.createStrapiEqualityOperatorEntries(DateTimeFilterValue),
|
|
73
73
|
...require_null_operators.createStrapiOrderedComparisonOperatorEntries(DateTimeFilterValue),
|
|
74
74
|
...require_null_operators.createStrapiMembershipOperatorEntries(DateTimeFilterValue),
|
|
75
75
|
...require_null_operators.StrapiNullOperatorEntries
|
|
76
|
-
}
|
|
76
|
+
}, { value: {
|
|
77
77
|
kind: "comparison",
|
|
78
78
|
input: "datetime-range"
|
|
79
79
|
} });
|
|
@@ -82,21 +82,21 @@ const DateTimeFilter = require_null_operators.createFilterWithMetadata(require_n
|
|
|
82
82
|
const NUMBER_STRING_PATTERN = /^-?(?:\d+|\d*\.\d+)$/;
|
|
83
83
|
const NumberFilterValue = valibot.pipe(valibot.union([valibot.number()]), valibot.finite());
|
|
84
84
|
const IntegerFilterValue = valibot.pipe(NumberFilterValue, valibot.integer());
|
|
85
|
-
const NumberFilter = require_null_operators.
|
|
85
|
+
const NumberFilter = require_null_operators.createStrapiFieldOperatorSchema({
|
|
86
86
|
...require_null_operators.createStrapiEqualityOperatorEntries(NumberFilterValue),
|
|
87
87
|
...require_null_operators.createStrapiOrderedComparisonOperatorEntries(NumberFilterValue),
|
|
88
88
|
...require_null_operators.createStrapiMembershipOperatorEntries(NumberFilterValue),
|
|
89
89
|
...require_null_operators.StrapiNullOperatorEntries
|
|
90
|
-
}
|
|
90
|
+
}, { value: {
|
|
91
91
|
kind: "comparison",
|
|
92
92
|
input: "number-range"
|
|
93
93
|
} });
|
|
94
|
-
const IntegerFilter = require_null_operators.
|
|
94
|
+
const IntegerFilter = require_null_operators.createStrapiFieldOperatorSchema({
|
|
95
95
|
...require_null_operators.createStrapiEqualityOperatorEntries(IntegerFilterValue),
|
|
96
96
|
...require_null_operators.createStrapiOrderedComparisonOperatorEntries(IntegerFilterValue),
|
|
97
97
|
...require_null_operators.createStrapiMembershipOperatorEntries(IntegerFilterValue),
|
|
98
98
|
...require_null_operators.StrapiNullOperatorEntries
|
|
99
|
-
}
|
|
99
|
+
}, { value: {
|
|
100
100
|
kind: "comparison",
|
|
101
101
|
input: "integer-range"
|
|
102
102
|
} });
|
|
@@ -106,25 +106,28 @@ const IdFilterValue = valibot.pipe(valibot.union([valibot.number(), valibot.pipe
|
|
|
106
106
|
const IdFilter = require_null_operators.createStrapiFieldOperatorSchema({
|
|
107
107
|
...require_null_operators.createStrapiEqualityOperatorEntries(IdFilterValue),
|
|
108
108
|
...require_null_operators.createStrapiArrayMembershipOperatorEntries(IdFilterValue)
|
|
109
|
-
}
|
|
110
|
-
|
|
109
|
+
}, { value: {
|
|
110
|
+
kind: "comparison",
|
|
111
|
+
input: "integer-range"
|
|
112
|
+
} });
|
|
113
|
+
const createExactIdentifierFilter = (value, metadata) => require_null_operators.createStrapiFieldOperatorSchema({
|
|
111
114
|
...require_null_operators.createStrapiEqualityOperatorEntries(value),
|
|
112
115
|
...require_null_operators.createStrapiCaseInsensitiveEqualityOperatorEntries(value),
|
|
113
116
|
...require_null_operators.createStrapiArrayMembershipOperatorEntries(value)
|
|
114
|
-
});
|
|
115
|
-
const DocumentIdFilter =
|
|
117
|
+
}, metadata);
|
|
118
|
+
const DocumentIdFilter = createExactIdentifierFilter(require_relationships.AssociateOneEntity, { value: {
|
|
116
119
|
kind: "comparison",
|
|
117
120
|
input: "text"
|
|
118
121
|
} });
|
|
119
|
-
const SlugFilter =
|
|
122
|
+
const SlugFilter = createExactIdentifierFilter(require_slug.VStringSlug(), { value: {
|
|
120
123
|
kind: "comparison",
|
|
121
124
|
input: "text"
|
|
122
125
|
} });
|
|
123
|
-
const EmailFilter =
|
|
126
|
+
const EmailFilter = createExactIdentifierFilter(require_email.VStringEmail(), { value: {
|
|
124
127
|
kind: "comparison",
|
|
125
128
|
input: "email"
|
|
126
129
|
} });
|
|
127
|
-
const UrlFilter =
|
|
130
|
+
const UrlFilter = createExactIdentifierFilter(require_urls.VStringUrl(), { value: {
|
|
128
131
|
kind: "comparison",
|
|
129
132
|
input: "url"
|
|
130
133
|
} });
|
|
@@ -69,12 +69,6 @@ declare const createStrapiComparisonOperatorEntries: <const TValue extends Strap
|
|
|
69
69
|
$ne: TValue;
|
|
70
70
|
};
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region src/filters/primitives/field-operators.d.ts
|
|
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>;
|
|
76
|
-
}>;
|
|
77
|
-
//#endregion
|
|
78
72
|
//#region src/filters/primitives/filter-metadata.d.ts
|
|
79
73
|
type StrapiFilterOperatorKind = "comparison" | "array" | "null" | "logical";
|
|
80
74
|
type StrapiFilterInputType = "textarea" | "text" | "url" | "email" | "number-range" | "integer-range" | "checkbox" | "date-range" | "time-range" | "datetime-range" | "select";
|
|
@@ -86,12 +80,18 @@ type FilterSchemaMetadata = {
|
|
|
86
80
|
} & Record<string, unknown>;
|
|
87
81
|
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";
|
|
88
82
|
declare const STRAPI_FILTER_OPERATORS: Record<StrapiFilterOperator, string>;
|
|
89
|
-
|
|
90
|
-
type FilterWithMetadata<TSchema extends StrapiBaseSchema, TMetadata extends FilterSchemaMetadata> = TSchema & {
|
|
91
|
-
readonly [STRAPI_FILTER_METADATA]: TMetadata;
|
|
92
|
-
};
|
|
83
|
+
type FilterWithMetadata<TSchema extends StrapiBaseSchema, TMetadata extends FilterSchemaMetadata> = v.SchemaWithPipe<readonly [TSchema, v.MetadataAction<v.InferOutput<TSchema>, TMetadata>]>;
|
|
93
84
|
declare const createFilterWithMetadata: <const TSchema extends StrapiBaseSchema, const TMetadata extends FilterSchemaMetadata>(schema: TSchema, metadata: TMetadata) => FilterWithMetadata<TSchema, TMetadata>;
|
|
94
|
-
declare const getFilterMetadata: (schema:
|
|
85
|
+
declare const getFilterMetadata: <const TSchema extends StrapiBaseSchema>(schema: TSchema) => v.InferMetadata<TSchema>;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/filters/primitives/field-operators.d.ts
|
|
88
|
+
declare const createStrapiOperatorSchema: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiFilterObjectSchema<TEntries>;
|
|
89
|
+
type StrapiFieldOperatorEntries<TEntries extends StrapiFilterEntries> = TEntries & {
|
|
90
|
+
$not: StrapiFilterObjectSchema<TEntries>;
|
|
91
|
+
};
|
|
92
|
+
type StrapiFieldOperatorSchema<TEntries extends StrapiFilterEntries> = StrapiFilterObjectSchema<StrapiFieldOperatorEntries<TEntries>>;
|
|
93
|
+
declare function createStrapiFieldOperatorSchema<const TEntries extends StrapiFilterEntries>(entries: TEntries): StrapiFieldOperatorSchema<TEntries>;
|
|
94
|
+
declare function createStrapiFieldOperatorSchema<const TEntries extends StrapiFilterEntries, const TMetadata extends FilterSchemaMetadata>(entries: TEntries, metadata: TMetadata): FilterWithMetadata<StrapiFieldOperatorSchema<TEntries>, TMetadata>;
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/filters/primitives/logical-operators.d.ts
|
|
97
97
|
declare const DEFAULT_STRAPI_FILTER_MAX_DEPTH = 3;
|
|
@@ -126,7 +126,8 @@ declare const StrapiNullOperatorEntries: {
|
|
|
126
126
|
};
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/filters/primitives/strict-filter-object.d.ts
|
|
129
|
-
declare
|
|
129
|
+
declare function createStrapiFilterObject<const TEntries extends StrapiFilterEntries>(entries: TEntries): StrapiFilterObjectSchema<TEntries>;
|
|
130
|
+
declare function createStrapiFilterObject<const TEntries extends StrapiFilterEntries, const TMetadata extends FilterSchemaMetadata>(entries: TEntries, metadata: TMetadata): FilterWithMetadata<StrapiFilterObjectSchema<TEntries>, TMetadata>;
|
|
130
131
|
declare const createStrapiStrictFilterObject: <const TEntries extends StrapiFilterEntries>(entries: TEntries) => StrapiStrictFilterObjectSchema<TEntries>;
|
|
131
132
|
//#endregion
|
|
132
133
|
//#region src/filters/primitives/string-matching-operators.d.ts
|
|
@@ -144,19 +145,19 @@ declare const createStrapiStringMatchingOperatorEntries: <const TValue extends S
|
|
|
144
145
|
//#region src/filters/generics/boolean.d.ts
|
|
145
146
|
declare const BooleanFilterValue: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
146
147
|
type BooleanFilterValue = v.InferOutput<typeof BooleanFilterValue>;
|
|
147
|
-
declare const BooleanFilter: FilterWithMetadata<
|
|
148
|
+
declare const BooleanFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
148
149
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
149
150
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
150
151
|
readonly $eq: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
151
152
|
readonly $ne: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
152
153
|
} & {
|
|
153
|
-
|
|
154
|
+
$not: StrapiFilterObjectSchema<{
|
|
154
155
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
155
156
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
156
157
|
readonly $eq: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
157
158
|
readonly $ne: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
158
159
|
}>;
|
|
159
|
-
}>, {
|
|
160
|
+
}>, undefined>, {
|
|
160
161
|
readonly value: {
|
|
161
162
|
readonly kind: "comparison";
|
|
162
163
|
readonly input: "checkbox";
|
|
@@ -171,7 +172,7 @@ declare const TimeFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Schem
|
|
|
171
172
|
type TimeFilterValue = v.InferOutput<typeof TimeFilterValue>;
|
|
172
173
|
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>]>;
|
|
173
174
|
type DateTimeFilterValue = v.InferOutput<typeof DateTimeFilterValue>;
|
|
174
|
-
declare const DateFilter: FilterWithMetadata<
|
|
175
|
+
declare const DateFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
175
176
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
176
177
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
177
178
|
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>;
|
|
@@ -184,7 +185,7 @@ declare const DateFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
184
185
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
185
186
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
186
187
|
} & {
|
|
187
|
-
|
|
188
|
+
$not: StrapiFilterObjectSchema<{
|
|
188
189
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
189
190
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
190
191
|
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>;
|
|
@@ -197,14 +198,14 @@ declare const DateFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
197
198
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
198
199
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
199
200
|
}>;
|
|
200
|
-
}>, {
|
|
201
|
+
}>, undefined>, {
|
|
201
202
|
readonly value: {
|
|
202
203
|
readonly kind: "comparison";
|
|
203
204
|
readonly input: "date-range";
|
|
204
205
|
};
|
|
205
206
|
}>;
|
|
206
207
|
type DateFilter = v.InferOutput<typeof DateFilter>;
|
|
207
|
-
declare const TimeFilter: FilterWithMetadata<
|
|
208
|
+
declare const TimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
208
209
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
209
210
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
210
211
|
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>;
|
|
@@ -217,7 +218,7 @@ declare const TimeFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
217
218
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
218
219
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
219
220
|
} & {
|
|
220
|
-
|
|
221
|
+
$not: StrapiFilterObjectSchema<{
|
|
221
222
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
222
223
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
223
224
|
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,14 +231,14 @@ declare const TimeFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
230
231
|
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
232
|
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
233
|
}>;
|
|
233
|
-
}>, {
|
|
234
|
+
}>, undefined>, {
|
|
234
235
|
readonly value: {
|
|
235
236
|
readonly kind: "comparison";
|
|
236
237
|
readonly input: "time-range";
|
|
237
238
|
};
|
|
238
239
|
}>;
|
|
239
240
|
type TimeFilter = v.InferOutput<typeof TimeFilter>;
|
|
240
|
-
declare const DateTimeFilter: FilterWithMetadata<
|
|
241
|
+
declare const DateTimeFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
241
242
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
242
243
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
243
244
|
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>;
|
|
@@ -250,7 +251,7 @@ declare const DateTimeFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
250
251
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
251
252
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
252
253
|
} & {
|
|
253
|
-
|
|
254
|
+
$not: StrapiFilterObjectSchema<{
|
|
254
255
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
255
256
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
256
257
|
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>;
|
|
@@ -263,7 +264,7 @@ declare const DateTimeFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
263
264
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
264
265
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, undefined>]>], undefined>, v.TransformAction<string, string>]>;
|
|
265
266
|
}>;
|
|
266
|
-
}>, {
|
|
267
|
+
}>, undefined>, {
|
|
267
268
|
readonly value: {
|
|
268
269
|
readonly kind: "comparison";
|
|
269
270
|
readonly input: "datetime-range";
|
|
@@ -274,21 +275,26 @@ type DateTimeFilter = v.InferOutput<typeof DateTimeFilter>;
|
|
|
274
275
|
//#region src/filters/generics/identifier.d.ts
|
|
275
276
|
declare const IdFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
|
|
276
277
|
type IdFilterValue = v.InferOutput<typeof IdFilterValue>;
|
|
277
|
-
declare const IdFilter:
|
|
278
|
+
declare const IdFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
278
279
|
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>]>;
|
|
279
280
|
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>]>;
|
|
280
281
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
|
|
281
282
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
|
|
282
283
|
} & {
|
|
283
|
-
|
|
284
|
+
$not: StrapiFilterObjectSchema<{
|
|
284
285
|
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>]>;
|
|
285
286
|
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>]>;
|
|
286
287
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
|
|
287
288
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>]>], undefined>]>;
|
|
288
289
|
}>;
|
|
290
|
+
}>, undefined>, {
|
|
291
|
+
readonly value: {
|
|
292
|
+
readonly kind: "comparison";
|
|
293
|
+
readonly input: "integer-range";
|
|
294
|
+
};
|
|
289
295
|
}>;
|
|
290
296
|
type IdFilter = v.InferOutput<typeof IdFilter>;
|
|
291
|
-
declare const DocumentIdFilter: FilterWithMetadata<
|
|
297
|
+
declare const DocumentIdFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
292
298
|
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>]>;
|
|
293
299
|
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>]>;
|
|
294
300
|
readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
@@ -296,7 +302,7 @@ declare const DocumentIdFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
296
302
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
297
303
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
298
304
|
} & {
|
|
299
|
-
|
|
305
|
+
$not: StrapiFilterObjectSchema<{
|
|
300
306
|
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>]>;
|
|
301
307
|
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>]>;
|
|
302
308
|
readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
@@ -304,14 +310,14 @@ declare const DocumentIdFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
304
310
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
305
311
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
306
312
|
}>;
|
|
307
|
-
}>, {
|
|
313
|
+
}>, undefined>, {
|
|
308
314
|
readonly value: {
|
|
309
315
|
readonly kind: "comparison";
|
|
310
316
|
readonly input: "text";
|
|
311
317
|
};
|
|
312
318
|
}>;
|
|
313
319
|
type DocumentIdFilter = v.InferOutput<typeof DocumentIdFilter>;
|
|
314
|
-
declare const SlugFilter: FilterWithMetadata<
|
|
320
|
+
declare const SlugFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
315
321
|
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>]>;
|
|
316
322
|
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>]>;
|
|
317
323
|
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: - _ .">]>;
|
|
@@ -319,7 +325,7 @@ declare const SlugFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
319
325
|
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: - _ .">]>;
|
|
320
326
|
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: - _ .">]>;
|
|
321
327
|
} & {
|
|
322
|
-
|
|
328
|
+
$not: StrapiFilterObjectSchema<{
|
|
323
329
|
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>]>;
|
|
324
330
|
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>]>;
|
|
325
331
|
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: - _ .">]>;
|
|
@@ -327,14 +333,14 @@ declare const SlugFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
327
333
|
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: - _ .">]>;
|
|
328
334
|
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: - _ .">]>;
|
|
329
335
|
}>;
|
|
330
|
-
}>, {
|
|
336
|
+
}>, undefined>, {
|
|
331
337
|
readonly value: {
|
|
332
338
|
readonly kind: "comparison";
|
|
333
339
|
readonly input: "text";
|
|
334
340
|
};
|
|
335
341
|
}>;
|
|
336
342
|
type SlugFilter = v.InferOutput<typeof SlugFilter>;
|
|
337
|
-
declare const EmailFilter: FilterWithMetadata<
|
|
343
|
+
declare const EmailFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
338
344
|
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>]>;
|
|
339
345
|
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>]>;
|
|
340
346
|
readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
@@ -342,7 +348,7 @@ declare const EmailFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
342
348
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
343
349
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
344
350
|
} & {
|
|
345
|
-
|
|
351
|
+
$not: StrapiFilterObjectSchema<{
|
|
346
352
|
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>]>;
|
|
347
353
|
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>]>;
|
|
348
354
|
readonly $eqi: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
@@ -350,14 +356,14 @@ declare const EmailFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
350
356
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
351
357
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
352
358
|
}>;
|
|
353
|
-
}>, {
|
|
359
|
+
}>, undefined>, {
|
|
354
360
|
readonly value: {
|
|
355
361
|
readonly kind: "comparison";
|
|
356
362
|
readonly input: "email";
|
|
357
363
|
};
|
|
358
364
|
}>;
|
|
359
365
|
type EmailFilter = v.InferOutput<typeof EmailFilter>;
|
|
360
|
-
declare const UrlFilter: FilterWithMetadata<
|
|
366
|
+
declare const UrlFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
361
367
|
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>]>;
|
|
362
368
|
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>]>;
|
|
363
369
|
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.">]>;
|
|
@@ -365,7 +371,7 @@ declare const UrlFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
365
371
|
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.">]>;
|
|
366
372
|
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.">]>;
|
|
367
373
|
} & {
|
|
368
|
-
|
|
374
|
+
$not: StrapiFilterObjectSchema<{
|
|
369
375
|
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>]>;
|
|
370
376
|
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>]>;
|
|
371
377
|
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.">]>;
|
|
@@ -373,7 +379,7 @@ declare const UrlFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
373
379
|
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.">]>;
|
|
374
380
|
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.">]>;
|
|
375
381
|
}>;
|
|
376
|
-
}>, {
|
|
382
|
+
}>, undefined>, {
|
|
377
383
|
readonly value: {
|
|
378
384
|
readonly kind: "comparison";
|
|
379
385
|
readonly input: "url";
|
|
@@ -387,7 +393,7 @@ declare const NumberFilterValue: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Num
|
|
|
387
393
|
type NumberFilterValue = v.InferOutput<typeof NumberFilterValue>;
|
|
388
394
|
declare const IntegerFilterValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
389
395
|
type IntegerFilterValue = v.InferOutput<typeof IntegerFilterValue>;
|
|
390
|
-
declare const NumberFilter: FilterWithMetadata<
|
|
396
|
+
declare const NumberFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
391
397
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
392
398
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
393
399
|
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>;
|
|
@@ -400,7 +406,7 @@ declare const NumberFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
400
406
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
401
407
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
402
408
|
} & {
|
|
403
|
-
|
|
409
|
+
$not: StrapiFilterObjectSchema<{
|
|
404
410
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
405
411
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
406
412
|
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>;
|
|
@@ -413,14 +419,14 @@ declare const NumberFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
413
419
|
readonly $eq: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
414
420
|
readonly $ne: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>;
|
|
415
421
|
}>;
|
|
416
|
-
}>, {
|
|
422
|
+
}>, undefined>, {
|
|
417
423
|
readonly value: {
|
|
418
424
|
readonly kind: "comparison";
|
|
419
425
|
readonly input: "number-range";
|
|
420
426
|
};
|
|
421
427
|
}>;
|
|
422
428
|
type NumberFilter = v.InferOutput<typeof NumberFilter>;
|
|
423
|
-
declare const IntegerFilter: FilterWithMetadata<
|
|
429
|
+
declare const IntegerFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
424
430
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
425
431
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
426
432
|
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>;
|
|
@@ -433,7 +439,7 @@ declare const IntegerFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
433
439
|
readonly $eq: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
434
440
|
readonly $ne: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
435
441
|
} & {
|
|
436
|
-
|
|
442
|
+
$not: StrapiFilterObjectSchema<{
|
|
437
443
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
438
444
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
439
445
|
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>;
|
|
@@ -446,7 +452,7 @@ declare const IntegerFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
446
452
|
readonly $eq: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
447
453
|
readonly $ne: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>], undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>]>;
|
|
448
454
|
}>;
|
|
449
|
-
}>, {
|
|
455
|
+
}>, undefined>, {
|
|
450
456
|
readonly value: {
|
|
451
457
|
readonly kind: "comparison";
|
|
452
458
|
readonly input: "integer-range";
|
|
@@ -455,7 +461,7 @@ declare const IntegerFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
455
461
|
type IntegerFilter = v.InferOutput<typeof IntegerFilter>;
|
|
456
462
|
//#endregion
|
|
457
463
|
//#region src/filters/generics/picklist.d.ts
|
|
458
|
-
declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<
|
|
464
|
+
declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
459
465
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
460
466
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
461
467
|
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
@@ -463,7 +469,7 @@ declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(valu
|
|
|
463
469
|
readonly $eq: TValue;
|
|
464
470
|
readonly $ne: TValue;
|
|
465
471
|
} & {
|
|
466
|
-
|
|
472
|
+
$not: StrapiFilterObjectSchema<{
|
|
467
473
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
468
474
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
469
475
|
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
@@ -471,13 +477,13 @@ declare const createPicklistFilter: <const TValue extends StrapiBaseSchema>(valu
|
|
|
471
477
|
readonly $eq: TValue;
|
|
472
478
|
readonly $ne: TValue;
|
|
473
479
|
}>;
|
|
474
|
-
}>, {
|
|
480
|
+
}>, undefined>, {
|
|
475
481
|
readonly value: {
|
|
476
482
|
readonly kind: "comparison";
|
|
477
483
|
readonly input: "select";
|
|
478
484
|
};
|
|
479
485
|
}>;
|
|
480
|
-
declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<
|
|
486
|
+
declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>(value: TValue) => FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
481
487
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
482
488
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
483
489
|
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
@@ -485,7 +491,7 @@ declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>
|
|
|
485
491
|
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
486
492
|
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
487
493
|
} & {
|
|
488
|
-
|
|
494
|
+
$not: StrapiFilterObjectSchema<{
|
|
489
495
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
490
496
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
491
497
|
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
@@ -493,7 +499,7 @@ declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>
|
|
|
493
499
|
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
494
500
|
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<TValue, undefined>, v.MinLengthAction<v.InferOutput<TValue>[], 1, undefined>]>;
|
|
495
501
|
}>;
|
|
496
|
-
}>, {
|
|
502
|
+
}>, undefined>, {
|
|
497
503
|
readonly value: {
|
|
498
504
|
readonly kind: "comparison";
|
|
499
505
|
readonly input: "select";
|
|
@@ -501,7 +507,7 @@ declare const createPicklistArrayFilter: <const TValue extends StrapiBaseSchema>
|
|
|
501
507
|
}>;
|
|
502
508
|
//#endregion
|
|
503
509
|
//#region src/filters/generics/string.d.ts
|
|
504
|
-
declare const StringFilter: FilterWithMetadata<
|
|
510
|
+
declare const StringFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
505
511
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
506
512
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
507
513
|
readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
@@ -517,7 +523,7 @@ declare const StringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
517
523
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
518
524
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
519
525
|
} & {
|
|
520
|
-
|
|
526
|
+
$not: StrapiFilterObjectSchema<{
|
|
521
527
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
522
528
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
523
529
|
readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
@@ -533,7 +539,7 @@ declare const StringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
533
539
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
534
540
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
535
541
|
}>;
|
|
536
|
-
}>, {
|
|
542
|
+
}>, undefined>, {
|
|
537
543
|
readonly value: {
|
|
538
544
|
readonly kind: "comparison";
|
|
539
545
|
readonly input: "text";
|
|
@@ -541,7 +547,7 @@ declare const StringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
541
547
|
readonly operators: readonly [];
|
|
542
548
|
}>;
|
|
543
549
|
type StringFilter = v.InferOutput<typeof StringFilter>;
|
|
544
|
-
declare const LongStringFilter: FilterWithMetadata<
|
|
550
|
+
declare const LongStringFilter: FilterWithMetadata<v.ObjectSchema<OptionalStrapiFilterEntries<{
|
|
545
551
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
546
552
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
547
553
|
readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
@@ -557,7 +563,7 @@ declare const LongStringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
557
563
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
558
564
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
559
565
|
} & {
|
|
560
|
-
|
|
566
|
+
$not: StrapiFilterObjectSchema<{
|
|
561
567
|
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
562
568
|
readonly $null: v.LiteralSchema<true, undefined>;
|
|
563
569
|
readonly $contains: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
@@ -573,7 +579,7 @@ declare const LongStringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
573
579
|
readonly $eq: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
574
580
|
readonly $ne: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
575
581
|
}>;
|
|
576
|
-
}>, {
|
|
582
|
+
}>, undefined>, {
|
|
577
583
|
readonly value: {
|
|
578
584
|
readonly kind: "comparison";
|
|
579
585
|
readonly input: "textarea";
|
|
@@ -581,4 +587,4 @@ declare const LongStringFilter: FilterWithMetadata<StrapiFilterObjectSchema<{
|
|
|
581
587
|
}>;
|
|
582
588
|
type LongStringFilter = v.InferOutput<typeof LongStringFilter>;
|
|
583
589
|
//#endregion
|
|
584
|
-
export {
|
|
590
|
+
export { StrapiFilterMaxDepth as $, createStrapiMembershipOperatorEntries as A, StrapiFilterInputType as B, BooleanFilterValue as C, StrapiNullOperatorEntries as D, createStrapiStrictFilterObject as E, createStrapiFieldOperatorSchema as F, createStrapiCaseInsensitiveEqualityOperatorEntries as G, StrapiFilterOperatorKind as H, createStrapiOperatorSchema as I, createStrapiOrderedComparisonOperatorEntries as J, createStrapiComparisonOperatorEntries as K, FilterSchemaMetadata as L, DEFAULT_STRAPI_FILTER_MAX_DEPTH as M, createStrapiFilterSchema as N, createStrapiArrayMembershipOperatorEntries as O, createStrapiLogicalFilterEntries as P, StrapiFilterInput as Q, FilterWithMetadata as R, BooleanFilter as S, createStrapiFilterObject as T, createFilterWithMetadata as U, StrapiFilterOperator as V, getFilterMetadata as W, StrapiBaseSchema as X, OptionalStrapiFilterEntries as Y, StrapiFilterEntries as Z, DateFilterValue as _, IntegerFilter as a, StrapiLogicalFilter as at, TimeFilter as b, NumberFilter as c, StrapiStrictFilterObjectInput as ct, EmailFilter as d, StrapiFilterObjectInput as et, IdFilter as f, DateFilter as g, UrlFilter as h, createPicklistFilter as i, StrapiFilterSchema as it, CreateStrapiFilterSchemaOptions as j, createStrapiBetweenOperatorEntries as k, NumberFilterValue as l, StrapiStrictFilterObjectOutput as lt, SlugFilter as m, StringFilter as n, StrapiFilterObjectSchema as nt, IntegerFilterValue as o, StrapiLogicalFilterBaseSchema as ot, IdFilterValue as p, createStrapiEqualityOperatorEntries as q, createPicklistArrayFilter as r, StrapiFilterOutput as rt, NUMBER_STRING_PATTERN as s, StrapiObjectSchema as st, LongStringFilter as t, StrapiFilterObjectOutput as tt, DocumentIdFilter as u, StrapiStrictFilterObjectSchema as ut, DateTimeFilter as v, createStrapiStringMatchingOperatorEntries as w, TimeFilterValue as x, DateTimeFilterValue as y, STRAPI_FILTER_OPERATORS as z };
|