@getcommunity/gc-validators 0.0.287 → 0.0.288-alpha.1
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 +6 -7
- package/dist/base/index.d.cts +1 -1
- package/dist/base/index.d.mts +1 -1
- package/dist/base/index.mjs +2 -3
- package/dist/boolean-BwqaNE9c.cjs +23 -0
- package/dist/boolean-cJxcC8gC.mjs +10 -0
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/{document-Cv0UyYmb.d.cts → document-CPHhI3jF.d.cts} +118 -19
- package/dist/{document-Cxhs9JXi.d.mts → document-DHJf5HxE.d.mts} +118 -19
- package/dist/entities/audit-log/mutation.cjs +1 -1
- package/dist/entities/audit-log/mutation.mjs +1 -1
- package/dist/entities/audit-log/query.cjs +29 -18
- package/dist/entities/audit-log/query.d.cts +64 -16
- package/dist/entities/audit-log/query.d.mts +64 -16
- package/dist/entities/audit-log/query.mjs +28 -19
- package/dist/entities/blog-post/fields.cjs +1 -1
- package/dist/entities/blog-post/fields.mjs +1 -1
- package/dist/entities/blog-post/query.cjs +32 -7
- package/dist/entities/blog-post/query.d.cts +60 -5
- package/dist/entities/blog-post/query.d.mts +60 -5
- package/dist/entities/blog-post/query.mjs +29 -6
- package/dist/entities/category/mutation.cjs +1 -1
- package/dist/entities/category/mutation.mjs +1 -1
- package/dist/entities/category/query.cjs +13 -4
- package/dist/entities/category/query.d.cts +19 -3
- package/dist/entities/category/query.d.mts +19 -3
- package/dist/entities/category/query.mjs +13 -5
- package/dist/entities/client/document.d.cts +1 -1
- package/dist/entities/client/document.d.mts +1 -1
- package/dist/entities/client/fields.cjs +3 -1
- package/dist/entities/client/fields.d.cts +3 -1
- package/dist/entities/client/fields.d.mts +3 -1
- package/dist/entities/client/fields.mjs +3 -2
- package/dist/entities/client/mutation.cjs +1 -1
- package/dist/entities/client/mutation.mjs +1 -1
- package/dist/entities/client/query.cjs +27 -14
- package/dist/entities/client/query.d.cts +2 -23
- package/dist/entities/client/query.d.mts +2 -23
- package/dist/entities/client/query.mjs +27 -16
- package/dist/entities/client-content-pillar/document.d.cts +1 -1
- package/dist/entities/client-content-pillar/document.d.mts +1 -1
- package/dist/entities/client-content-pillar/mutation.cjs +1 -1
- package/dist/entities/client-content-pillar/mutation.mjs +1 -1
- package/dist/entities/client-content-pillar/query.cjs +3 -20
- package/dist/entities/client-content-pillar/query.d.cts +2 -16
- package/dist/entities/client-content-pillar/query.d.mts +2 -16
- package/dist/entities/client-content-pillar/query.mjs +2 -18
- package/dist/entities/client-media-platform/document.d.cts +1 -1
- package/dist/entities/client-media-platform/document.d.mts +1 -1
- package/dist/entities/client-media-platform/mutation.cjs +1 -1
- package/dist/entities/client-media-platform/mutation.mjs +1 -1
- package/dist/entities/client-media-platform/query.cjs +3 -22
- package/dist/entities/client-media-platform/query.d.cts +2 -17
- package/dist/entities/client-media-platform/query.d.mts +2 -17
- package/dist/entities/client-media-platform/query.mjs +2 -20
- package/dist/entities/client-project/document.d.cts +1 -1
- package/dist/entities/client-project/document.d.mts +1 -1
- package/dist/entities/client-project/mutation.cjs +2 -2
- package/dist/entities/client-project/mutation.mjs +2 -2
- package/dist/entities/client-project/query.cjs +36 -26
- package/dist/entities/client-project/query.d.cts +89 -19
- package/dist/entities/client-project/query.d.mts +89 -19
- package/dist/entities/client-project/query.mjs +34 -27
- package/dist/entities/client-report/document.d.cts +1 -1
- package/dist/entities/client-report/document.d.mts +1 -1
- package/dist/entities/client-report/mutation.cjs +1 -1
- package/dist/entities/client-report/mutation.mjs +1 -1
- package/dist/entities/client-report/query.cjs +23 -10
- package/dist/entities/client-report/query.d.cts +49 -8
- package/dist/entities/client-report/query.d.mts +49 -8
- package/dist/entities/client-report/query.mjs +22 -11
- package/dist/entities/client-styleguide/document.d.cts +1 -1
- package/dist/entities/client-styleguide/document.d.mts +1 -1
- package/dist/entities/client-styleguide/mutation.cjs +1 -1
- package/dist/entities/client-styleguide/mutation.mjs +1 -1
- package/dist/entities/client-styleguide/query.cjs +16 -7
- package/dist/entities/client-styleguide/query.d.cts +22 -5
- package/dist/entities/client-styleguide/query.d.mts +22 -5
- package/dist/entities/client-styleguide/query.mjs +16 -8
- package/dist/entities/client-user/document.d.cts +1 -1
- package/dist/entities/client-user/document.d.mts +1 -1
- package/dist/entities/client-user/fields.cjs +2 -0
- package/dist/entities/client-user/fields.d.cts +2 -2
- package/dist/entities/client-user/fields.d.mts +2 -2
- package/dist/entities/client-user/fields.mjs +2 -1
- package/dist/entities/client-user/mutation.cjs +1 -1
- package/dist/entities/client-user/mutation.d.cts +1 -1
- package/dist/entities/client-user/mutation.d.mts +1 -1
- package/dist/entities/client-user/mutation.mjs +1 -1
- package/dist/entities/client-user/query.cjs +3 -13
- package/dist/entities/client-user/query.d.cts +2 -11
- package/dist/entities/client-user/query.d.mts +2 -11
- package/dist/entities/client-user/query.mjs +2 -11
- package/dist/entities/content-pillar/document.d.cts +1 -1
- package/dist/entities/content-pillar/document.d.mts +1 -1
- package/dist/entities/content-pillar/mutation.cjs +1 -1
- package/dist/entities/content-pillar/mutation.mjs +1 -1
- package/dist/entities/content-pillar/query.cjs +3 -17
- package/dist/entities/content-pillar/query.d.cts +2 -14
- package/dist/entities/content-pillar/query.d.mts +2 -14
- package/dist/entities/content-pillar/query.mjs +2 -15
- package/dist/entities/formatter/constants.d.cts +1 -1
- package/dist/entities/formatter/constants.d.mts +1 -1
- package/dist/entities/formatter/fields.d.cts +4 -4
- package/dist/entities/formatter/fields.d.mts +4 -4
- package/dist/entities/gcflytour/document.d.cts +1 -1
- package/dist/entities/gcflytour/document.d.mts +1 -1
- package/dist/entities/gcflytour/mutation.cjs +1 -1
- package/dist/entities/gcflytour/mutation.mjs +1 -1
- package/dist/entities/gcflytour/query.cjs +3 -20
- package/dist/entities/gcflytour/query.d.cts +2 -16
- package/dist/entities/gcflytour/query.d.mts +2 -16
- package/dist/entities/gcflytour/query.mjs +2 -18
- package/dist/entities/gcflytour-snap/document.d.cts +1 -1
- package/dist/entities/gcflytour-snap/document.d.mts +1 -1
- package/dist/entities/gcflytour-snap/mutation.cjs +1 -1
- package/dist/entities/gcflytour-snap/mutation.mjs +1 -1
- package/dist/entities/gcflytour-snap/query.cjs +3 -21
- package/dist/entities/gcflytour-snap/query.d.cts +2 -17
- package/dist/entities/gcflytour-snap/query.d.mts +2 -17
- package/dist/entities/gcflytour-snap/query.mjs +2 -19
- package/dist/entities/lead/mutation.cjs +1 -1
- package/dist/entities/lead/mutation.mjs +1 -1
- package/dist/entities/media-content-type/document.d.cts +1 -1
- package/dist/entities/media-content-type/document.d.mts +1 -1
- package/dist/entities/media-content-type/mutation.cjs +1 -1
- package/dist/entities/media-content-type/mutation.mjs +1 -1
- package/dist/entities/media-content-type/query.cjs +3 -22
- package/dist/entities/media-content-type/query.d.cts +2 -18
- package/dist/entities/media-content-type/query.d.mts +2 -18
- package/dist/entities/media-content-type/query.mjs +2 -20
- package/dist/entities/media-creative-format/document.d.cts +1 -1
- package/dist/entities/media-creative-format/document.d.mts +1 -1
- package/dist/entities/media-creative-format/mutation.cjs +1 -1
- package/dist/entities/media-creative-format/mutation.mjs +1 -1
- package/dist/entities/media-creative-format/query.cjs +3 -20
- package/dist/entities/media-creative-format/query.d.cts +2 -16
- package/dist/entities/media-creative-format/query.d.mts +2 -16
- package/dist/entities/media-creative-format/query.mjs +2 -18
- package/dist/entities/media-medium/document.d.cts +1 -1
- package/dist/entities/media-medium/document.d.mts +1 -1
- package/dist/entities/media-medium/mutation.cjs +1 -1
- package/dist/entities/media-medium/mutation.mjs +1 -1
- package/dist/entities/media-medium/query.cjs +3 -21
- package/dist/entities/media-medium/query.d.cts +2 -17
- package/dist/entities/media-medium/query.d.mts +2 -17
- package/dist/entities/media-medium/query.mjs +2 -19
- package/dist/entities/media-platform/document.d.cts +1 -1
- package/dist/entities/media-platform/document.d.mts +1 -1
- package/dist/entities/media-platform/mutation.cjs +1 -1
- package/dist/entities/media-platform/mutation.mjs +1 -1
- package/dist/entities/media-platform/query.cjs +3 -25
- package/dist/entities/media-platform/query.d.cts +2 -20
- package/dist/entities/media-platform/query.d.mts +2 -20
- package/dist/entities/media-platform/query.mjs +2 -23
- package/dist/entities/monday-workspace/document.d.cts +1 -1
- package/dist/entities/monday-workspace/document.d.mts +1 -1
- package/dist/entities/monday-workspace/mutation.cjs +1 -1
- package/dist/entities/monday-workspace/mutation.mjs +1 -1
- package/dist/entities/monday-workspace/query.cjs +15 -6
- package/dist/entities/monday-workspace/query.d.cts +22 -4
- package/dist/entities/monday-workspace/query.d.mts +22 -4
- package/dist/entities/monday-workspace/query.mjs +15 -7
- package/dist/entities/newsletter-signup/mutation.cjs +1 -1
- package/dist/entities/newsletter-signup/mutation.mjs +1 -1
- package/dist/entities/product-highlight/document.d.cts +1 -1
- package/dist/entities/product-highlight/document.d.mts +1 -1
- package/dist/entities/resume/mutation.cjs +1 -1
- package/dist/entities/resume/mutation.mjs +1 -1
- package/dist/entities/tag/mutation.cjs +1 -1
- package/dist/entities/tag/mutation.mjs +1 -1
- package/dist/entities/tag/query.cjs +13 -4
- package/dist/entities/tag/query.d.cts +19 -3
- package/dist/entities/tag/query.d.mts +19 -3
- package/dist/entities/tag/query.mjs +13 -5
- package/dist/entities/team-member/query.cjs +24 -9
- package/dist/entities/team-member/query.d.cts +66 -7
- package/dist/entities/team-member/query.d.mts +66 -7
- package/dist/entities/team-member/query.mjs +22 -10
- package/dist/entities/teamwork/query.cjs +0 -1
- package/dist/entities/teamwork/query.mjs +0 -1
- package/dist/entities/trend/mutation.cjs +1 -1
- package/dist/entities/trend/mutation.mjs +1 -1
- package/dist/entities/up-auth/mutation.d.cts +1 -103
- package/dist/entities/up-auth/mutation.d.mts +1 -103
- package/dist/entities/up-permission/document.d.cts +1 -1
- package/dist/entities/up-permission/document.d.mts +1 -1
- package/dist/entities/up-permission/fields.cjs +7 -0
- package/dist/entities/up-permission/fields.d.cts +2 -0
- package/dist/entities/up-permission/fields.d.mts +2 -0
- package/dist/entities/up-permission/fields.mjs +6 -0
- package/dist/entities/up-role/document.d.cts +1 -1
- package/dist/entities/up-role/document.d.mts +1 -1
- package/dist/entities/up-role/query.cjs +19 -0
- package/dist/entities/up-role/query.d.cts +2 -0
- package/dist/entities/up-role/query.d.mts +2 -0
- package/dist/entities/up-role/query.mjs +17 -0
- package/dist/entities/up-user/document.d.cts +1 -1
- package/dist/entities/up-user/document.d.mts +1 -1
- package/dist/entities/up-user/query.cjs +4 -20
- package/dist/entities/up-user/query.d.cts +2 -17
- package/dist/entities/up-user/query.d.mts +2 -17
- package/dist/entities/up-user/query.mjs +2 -17
- package/dist/entities/url-redirect/query.cjs +25 -3
- package/dist/entities/url-redirect/query.d.cts +64 -3
- package/dist/entities/url-redirect/query.d.mts +64 -3
- package/dist/entities/url-redirect/query.mjs +22 -3
- package/dist/entities/user-account/document.d.cts +1 -1
- package/dist/entities/user-account/document.d.mts +1 -1
- package/dist/entities/user-account/mutation.cjs +1 -1
- package/dist/entities/user-account/mutation.mjs +1 -1
- package/dist/entities/user-account/query.cjs +1 -1
- package/dist/entities/user-account/query.mjs +1 -1
- package/dist/entities/utm-link-builder/mutation.cjs +1 -1
- package/dist/entities/utm-link-builder/mutation.mjs +1 -1
- package/dist/entities/utm-tracking-link/document.d.cts +1 -1
- package/dist/entities/utm-tracking-link/document.d.mts +1 -1
- package/dist/entities/utm-tracking-link/mutation.cjs +1 -1
- package/dist/entities/utm-tracking-link/mutation.mjs +1 -1
- package/dist/entities/utm-tracking-link/query.cjs +32 -25
- package/dist/entities/utm-tracking-link/query.d.cts +53 -21
- package/dist/entities/utm-tracking-link/query.d.mts +53 -21
- package/dist/entities/utm-tracking-link/query.mjs +32 -26
- package/dist/fields-BN1MQEFa.d.mts +25 -0
- package/dist/{fields-BNrM_SmR.d.cts → fields-CPhXlK2H.d.cts} +3 -1
- package/dist/{fields-BNrM_SmR.d.mts → fields-CPhXlK2H.d.mts} +3 -1
- package/dist/fields-KhJJEwDn.d.cts +25 -0
- package/dist/filters/index.cjs +173 -0
- package/dist/filters/index.d.cts +110 -0
- package/dist/filters/index.d.mts +110 -0
- package/dist/filters/index.mjs +148 -0
- package/dist/{index-DHHJwRNf.d.mts → index-26DCj3kM.d.mts} +6 -6
- package/dist/index-CJnvK9aa.d.cts +395 -0
- package/dist/index-CJoIbrN-.d.mts +395 -0
- package/dist/index-CstRGKNl.d.cts +10 -0
- package/dist/index-CstRGKNl.d.mts +10 -0
- package/dist/{index-zDQP0gcQ.d.cts → index-RcVef_Z2.d.cts} +6 -6
- package/dist/logical-operators-Bku8NPDs.cjs +24 -0
- package/dist/logical-operators-C0-wSK0P.mjs +17 -0
- package/dist/null-operators-CyK5Nxn3.cjs +96 -0
- package/dist/null-operators-DvwH8j8n.mjs +47 -0
- package/dist/permissions/index.d.cts +2 -2
- package/dist/permissions/index.d.mts +2 -2
- package/dist/picklist-DMZjp2EE.cjs +29 -0
- package/dist/picklist-DayZlSoN.mjs +16 -0
- package/dist/query-7_zddNOX.d.mts +68 -0
- package/dist/query-9XKj-s81.d.mts +75 -0
- package/dist/query-CI3ZWJqL2.cjs +74 -0
- package/dist/query-CI5JQhH_.d.cts +73 -0
- package/dist/query-CY7W3BZ5.mjs +49 -0
- package/dist/query-CeillfBr.d.cts +35 -0
- package/dist/query-CgWG7dSl.mjs +43 -0
- package/dist/query-CtCcNIyW.d.cts +75 -0
- package/dist/query-CyYPluP3.d.mts +73 -0
- package/dist/query-D1mBqALL.cjs +68 -0
- package/dist/query-DD39dkbH.d.cts +174 -0
- package/dist/query-DVcH4-JK.cjs +171 -0
- package/dist/query-DZdytwSD.d.cts +61 -0
- package/dist/query-Do-3hcZD.d.mts +35 -0
- package/dist/{query-iF2acn2f.cjs → query-DqwF7V2G.cjs} +1 -1
- package/dist/{query-Bflh6Vd8.mjs → query-DuuwYQWE.mjs} +1 -1
- package/dist/query-Q18zizCQ.mjs +110 -0
- package/dist/query-Wt8Cx9OF.mjs +54 -0
- package/dist/query-emzTCCDq.d.mts +174 -0
- package/dist/query-qb1G3OKt.cjs +85 -0
- package/dist/query-vsyN6YiK.d.mts +61 -0
- package/dist/query-y7Fuj2mF.d.cts +68 -0
- package/dist/{relationships-yGO2L8BR.cjs → relationships-B7XakNhb.cjs} +34 -4
- package/dist/{relationships-fCFeEt1G.mjs → relationships-DYr9eF1a.mjs} +8 -2
- package/dist/string-DnXY8Tir.cjs +227 -0
- package/dist/string-cbk3BUGq.mjs +106 -0
- package/dist/utilities/index.d.cts +2 -3
- package/dist/utilities/index.d.mts +2 -3
- package/dist/validators/index.cjs +2 -2
- package/dist/validators/index.mjs +2 -2
- package/package.json +20 -6
- package/dist/strapi-B79JabkQ.cjs +0 -34
- package/dist/strapi-BgfOZjWn.mjs +0 -9
|
@@ -1,31 +1,63 @@
|
|
|
1
|
+
import { C as BooleanFilter, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, y as DateTimeFilter } from "../../index-CJoIbrN-.mjs";
|
|
2
|
+
import { n as FilterStrapiClients } from "../../query-7_zddNOX.mjs";
|
|
3
|
+
import { r as FilterStrapiUsers } from "../../query-9XKj-s81.mjs";
|
|
1
4
|
import * as v from "valibot";
|
|
2
5
|
|
|
3
6
|
//#region src/entities/utm-tracking-link/query.d.ts
|
|
7
|
+
declare const FilterStrapiUtmTrackingLinks: v.GenericSchema<{
|
|
8
|
+
id?: IdFilter;
|
|
9
|
+
documentId?: DocumentIdFilter;
|
|
10
|
+
createdAt?: DateTimeFilter;
|
|
11
|
+
updatedAt?: DateTimeFilter;
|
|
12
|
+
url_destination?: LongStringFilter;
|
|
13
|
+
utm_medium?: LongStringFilter;
|
|
14
|
+
utm_source?: LongStringFilter;
|
|
15
|
+
utm_campaign?: LongStringFilter;
|
|
16
|
+
utm_content?: LongStringFilter;
|
|
17
|
+
utm_creative_format?: LongStringFilter;
|
|
18
|
+
utm_id?: LongStringFilter;
|
|
19
|
+
campaign_phase?: LongStringFilter;
|
|
20
|
+
campaign_product?: LongStringFilter;
|
|
21
|
+
campaign_targeting?: LongStringFilter;
|
|
22
|
+
campaign_key?: LongStringFilter;
|
|
23
|
+
creative_format?: LongStringFilter;
|
|
24
|
+
creative_format_variants?: LongStringFilter;
|
|
25
|
+
url?: LongStringFilter;
|
|
26
|
+
is_active?: BooleanFilter;
|
|
27
|
+
notes?: LongStringFilter;
|
|
28
|
+
creator?: FilterStrapiUsers;
|
|
29
|
+
client?: FilterStrapiClients;
|
|
30
|
+
}>;
|
|
31
|
+
type FilterStrapiUtmTrackingLinks = v.InferOutput<typeof FilterStrapiUtmTrackingLinks>;
|
|
4
32
|
declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
|
|
5
33
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
6
34
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
7
|
-
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
|
-
readonly creator_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
10
|
-
readonly users: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
11
|
-
readonly url_destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please remove any query parameters from the URL.">]>, undefined>;
|
|
12
|
-
readonly utm_medium: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
13
|
-
readonly utm_source: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
14
|
-
readonly utm_campaign: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
15
|
-
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
16
|
-
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
17
|
-
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
18
|
-
readonly campaign_phase: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
19
|
-
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
20
|
-
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
21
|
-
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
22
|
-
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
23
|
-
readonly creative_format_variants: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
24
|
-
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
25
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
26
|
-
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
27
35
|
readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
|
|
36
|
+
readonly f: v.OptionalSchema<v.GenericSchema<{
|
|
37
|
+
id?: IdFilter;
|
|
38
|
+
documentId?: DocumentIdFilter;
|
|
39
|
+
createdAt?: DateTimeFilter;
|
|
40
|
+
updatedAt?: DateTimeFilter;
|
|
41
|
+
url_destination?: LongStringFilter;
|
|
42
|
+
utm_medium?: LongStringFilter;
|
|
43
|
+
utm_source?: LongStringFilter;
|
|
44
|
+
utm_campaign?: LongStringFilter;
|
|
45
|
+
utm_content?: LongStringFilter;
|
|
46
|
+
utm_creative_format?: LongStringFilter;
|
|
47
|
+
utm_id?: LongStringFilter;
|
|
48
|
+
campaign_phase?: LongStringFilter;
|
|
49
|
+
campaign_product?: LongStringFilter;
|
|
50
|
+
campaign_targeting?: LongStringFilter;
|
|
51
|
+
campaign_key?: LongStringFilter;
|
|
52
|
+
creative_format?: LongStringFilter;
|
|
53
|
+
creative_format_variants?: LongStringFilter;
|
|
54
|
+
url?: LongStringFilter;
|
|
55
|
+
is_active?: BooleanFilter;
|
|
56
|
+
notes?: LongStringFilter;
|
|
57
|
+
creator?: FilterStrapiUsers;
|
|
58
|
+
client?: FilterStrapiClients;
|
|
59
|
+
}>, undefined>;
|
|
28
60
|
}, undefined>;
|
|
29
61
|
type QueryStrapiSearchUtmTrackingLinks = v.InferOutput<typeof QueryStrapiSearchUtmTrackingLinks>;
|
|
30
62
|
//#endregion
|
|
31
|
-
export { QueryStrapiSearchUtmTrackingLinks };
|
|
63
|
+
export { FilterStrapiUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks };
|
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
import { n as VSize, t as VPage } from "../../pagination-CK-mJT5q.mjs";
|
|
2
2
|
import { t as QuerySortValues } from "../../sort-FYsWXlaD.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { t as createStrapiFilterSchema } from "../../logical-operators-C0-wSK0P.mjs";
|
|
4
|
+
import { _ as DateTimeFilter, i as DocumentIdFilter, n as LongStringFilter, o as IdFilter } from "../../string-cbk3BUGq.mjs";
|
|
5
|
+
import { t as BooleanFilter } from "../../boolean-cJxcC8gC.mjs";
|
|
6
|
+
import { FilterStrapiClients } from "../client/query.mjs";
|
|
7
|
+
import { r as FilterStrapiUsers } from "../../query-Wt8Cx9OF.mjs";
|
|
7
8
|
import * as v from "valibot";
|
|
8
9
|
//#region src/entities/utm-tracking-link/query.ts
|
|
10
|
+
const FilterStrapiUtmTrackingLinks = createStrapiFilterSchema({
|
|
11
|
+
id: IdFilter,
|
|
12
|
+
documentId: DocumentIdFilter,
|
|
13
|
+
createdAt: DateTimeFilter,
|
|
14
|
+
updatedAt: DateTimeFilter,
|
|
15
|
+
url_destination: LongStringFilter,
|
|
16
|
+
utm_medium: LongStringFilter,
|
|
17
|
+
utm_source: LongStringFilter,
|
|
18
|
+
utm_campaign: LongStringFilter,
|
|
19
|
+
utm_content: LongStringFilter,
|
|
20
|
+
utm_creative_format: LongStringFilter,
|
|
21
|
+
utm_id: LongStringFilter,
|
|
22
|
+
campaign_phase: LongStringFilter,
|
|
23
|
+
campaign_product: LongStringFilter,
|
|
24
|
+
campaign_targeting: LongStringFilter,
|
|
25
|
+
campaign_key: LongStringFilter,
|
|
26
|
+
creative_format: LongStringFilter,
|
|
27
|
+
creative_format_variants: LongStringFilter,
|
|
28
|
+
url: LongStringFilter,
|
|
29
|
+
is_active: BooleanFilter,
|
|
30
|
+
notes: LongStringFilter,
|
|
31
|
+
creator: v.optional(v.lazy(() => FilterStrapiUsers)),
|
|
32
|
+
client: v.optional(v.lazy(() => FilterStrapiClients))
|
|
33
|
+
});
|
|
9
34
|
const QueryStrapiSearchUtmTrackingLinks = v.object({
|
|
10
35
|
page: VPage(),
|
|
11
36
|
size: VSize(),
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
clients: v.optional(QueryManyEntities),
|
|
15
|
-
users: v.optional(QueryManyEntities),
|
|
16
|
-
url_destination: v.optional(VStringUrlNoUtm()),
|
|
17
|
-
utm_medium: v.optional(ValidUtmSource),
|
|
18
|
-
utm_source: v.optional(ValidUtmMedium),
|
|
19
|
-
utm_campaign: v.optional(ValidUtmCampaign),
|
|
20
|
-
utm_content: v.optional(ValidUtmContent),
|
|
21
|
-
utm_creative_format: v.optional(ValidUtmCreativeFormat),
|
|
22
|
-
utm_id: v.optional(ValidUtmId),
|
|
23
|
-
campaign_phase: v.optional(VStringShort(0)),
|
|
24
|
-
campaign_product: v.optional(VStringShort(0)),
|
|
25
|
-
campaign_targeting: v.optional(VStringShort(0)),
|
|
26
|
-
campaign_key: v.optional(VStringShort(0)),
|
|
27
|
-
creative_format: v.optional(VStringShort(0)),
|
|
28
|
-
creative_format_variants: v.optional(v.array(VStringShort())),
|
|
29
|
-
url: v.optional(VStringUrlUtm()),
|
|
30
|
-
is_active: v.optional(v.boolean()),
|
|
31
|
-
notes: v.optional(VStringShort(0)),
|
|
32
|
-
sort: v.optional(QuerySortValues)
|
|
37
|
+
sort: v.optional(QuerySortValues),
|
|
38
|
+
f: v.optional(FilterStrapiUtmTrackingLinks)
|
|
33
39
|
});
|
|
34
40
|
//#endregion
|
|
35
|
-
export { QueryStrapiSearchUtmTrackingLinks };
|
|
41
|
+
export { FilterStrapiUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as StrapiStrictFilterObjectSchema } from "./index-CstRGKNl.mjs";
|
|
2
|
+
import { c as ClientEntityScope } from "./fields-CPhXlK2H.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
|
|
5
|
+
//#region src/entities/up-permission/fields.d.ts
|
|
6
|
+
declare const FilterScopes: StrapiStrictFilterObjectSchema<{
|
|
7
|
+
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
8
|
+
readonly $null: v.LiteralSchema<true, undefined>;
|
|
9
|
+
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
10
|
+
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
11
|
+
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
12
|
+
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
13
|
+
} & {
|
|
14
|
+
readonly $not: StrapiStrictFilterObjectSchema<{
|
|
15
|
+
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
16
|
+
readonly $null: v.LiteralSchema<true, undefined>;
|
|
17
|
+
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
18
|
+
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
19
|
+
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
20
|
+
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
type FilterScopes = v.InferOutput<typeof FilterScopes>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FilterScopes as t };
|
|
@@ -28,7 +28,9 @@ declare const CLIENT_ENTITY_KEYS: ClientEntityKey[];
|
|
|
28
28
|
declare const CLIENT_ENTITY_SCOPES: ClientEntityScope[];
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/entities/client-user/fields.d.ts
|
|
31
|
+
declare const ClientUserScope: v.PicklistSchema<ClientEntityScope[], undefined>;
|
|
32
|
+
type ClientUserScope = v.InferOutput<typeof ClientUserScope>;
|
|
31
33
|
declare const ClientUserScopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>;
|
|
32
34
|
type ClientUserScopes = v.InferOutput<typeof ClientUserScopes>;
|
|
33
35
|
//#endregion
|
|
34
|
-
export {
|
|
36
|
+
export { CLIENT_ENTITY_SCOPES as a, ClientEntityScope as c, CLIENT_ENTITY_PERMISSIONS as i, ClientUserScopes as n, ClientEntityActions as o, CLIENT_ENTITY_KEYS as r, ClientEntityKey as s, ClientUserScope as t };
|
|
@@ -28,7 +28,9 @@ declare const CLIENT_ENTITY_KEYS: ClientEntityKey[];
|
|
|
28
28
|
declare const CLIENT_ENTITY_SCOPES: ClientEntityScope[];
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/entities/client-user/fields.d.ts
|
|
31
|
+
declare const ClientUserScope: v.PicklistSchema<ClientEntityScope[], undefined>;
|
|
32
|
+
type ClientUserScope = v.InferOutput<typeof ClientUserScope>;
|
|
31
33
|
declare const ClientUserScopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>;
|
|
32
34
|
type ClientUserScopes = v.InferOutput<typeof ClientUserScopes>;
|
|
33
35
|
//#endregion
|
|
34
|
-
export {
|
|
36
|
+
export { CLIENT_ENTITY_SCOPES as a, ClientEntityScope as c, CLIENT_ENTITY_PERMISSIONS as i, ClientUserScopes as n, ClientEntityActions as o, CLIENT_ENTITY_KEYS as r, ClientEntityKey as s, ClientUserScope as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as StrapiStrictFilterObjectSchema } from "./index-CstRGKNl.cjs";
|
|
2
|
+
import { c as ClientEntityScope } from "./fields-CPhXlK2H.cjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
|
|
5
|
+
//#region src/entities/up-permission/fields.d.ts
|
|
6
|
+
declare const FilterScopes: StrapiStrictFilterObjectSchema<{
|
|
7
|
+
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
8
|
+
readonly $null: v.LiteralSchema<true, undefined>;
|
|
9
|
+
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
10
|
+
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
11
|
+
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
12
|
+
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
13
|
+
} & {
|
|
14
|
+
readonly $not: StrapiStrictFilterObjectSchema<{
|
|
15
|
+
readonly $notNull: v.LiteralSchema<true, undefined>;
|
|
16
|
+
readonly $null: v.LiteralSchema<true, undefined>;
|
|
17
|
+
readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
18
|
+
readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
19
|
+
readonly $eq: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
20
|
+
readonly $ne: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<ClientEntityScope[], undefined>, undefined>, v.MinLengthAction<ClientEntityScope[], 1, undefined>]>;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
type FilterScopes = v.InferOutput<typeof FilterScopes>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FilterScopes as t };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_string = require("../string-DnXY8Tir.cjs");
|
|
3
|
+
const require_boolean = require("../boolean-BwqaNE9c.cjs");
|
|
4
|
+
const require_picklist = require("../picklist-DMZjp2EE.cjs");
|
|
5
|
+
//#region src/filters/constants.ts
|
|
6
|
+
const STRAPI_FILTER_OPERATORS = {
|
|
7
|
+
$eq: {
|
|
8
|
+
type: "comparison",
|
|
9
|
+
valueType: [
|
|
10
|
+
"string",
|
|
11
|
+
"number",
|
|
12
|
+
"boolean",
|
|
13
|
+
"date",
|
|
14
|
+
"datetime",
|
|
15
|
+
"picklist"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
$ne: {
|
|
19
|
+
type: "comparison",
|
|
20
|
+
valueType: [
|
|
21
|
+
"string",
|
|
22
|
+
"number",
|
|
23
|
+
"boolean",
|
|
24
|
+
"date",
|
|
25
|
+
"datetime",
|
|
26
|
+
"picklist"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
$eqi: {
|
|
30
|
+
type: "comparison",
|
|
31
|
+
valueType: ["string"]
|
|
32
|
+
},
|
|
33
|
+
$nei: {
|
|
34
|
+
type: "comparison",
|
|
35
|
+
valueType: ["string"]
|
|
36
|
+
},
|
|
37
|
+
$gt: {
|
|
38
|
+
type: "comparison",
|
|
39
|
+
valueType: [
|
|
40
|
+
"number",
|
|
41
|
+
"date",
|
|
42
|
+
"datetime"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
$gte: {
|
|
46
|
+
type: "comparison",
|
|
47
|
+
valueType: [
|
|
48
|
+
"number",
|
|
49
|
+
"date",
|
|
50
|
+
"datetime"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
$lt: {
|
|
54
|
+
type: "comparison",
|
|
55
|
+
valueType: [
|
|
56
|
+
"number",
|
|
57
|
+
"date",
|
|
58
|
+
"datetime"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
$lte: {
|
|
62
|
+
type: "comparison",
|
|
63
|
+
valueType: [
|
|
64
|
+
"number",
|
|
65
|
+
"date",
|
|
66
|
+
"datetime"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
$contains: {
|
|
70
|
+
type: "string",
|
|
71
|
+
valueType: ["string"]
|
|
72
|
+
},
|
|
73
|
+
$containsi: {
|
|
74
|
+
type: "string",
|
|
75
|
+
valueType: ["string"]
|
|
76
|
+
},
|
|
77
|
+
$endsWith: {
|
|
78
|
+
type: "string",
|
|
79
|
+
valueType: ["string"]
|
|
80
|
+
},
|
|
81
|
+
$endsWithi: {
|
|
82
|
+
type: "string",
|
|
83
|
+
valueType: ["string"]
|
|
84
|
+
},
|
|
85
|
+
$notContains: {
|
|
86
|
+
type: "string",
|
|
87
|
+
valueType: ["string"]
|
|
88
|
+
},
|
|
89
|
+
$notContainsi: {
|
|
90
|
+
type: "string",
|
|
91
|
+
valueType: ["string"]
|
|
92
|
+
},
|
|
93
|
+
$startsWith: {
|
|
94
|
+
type: "string",
|
|
95
|
+
valueType: ["string"]
|
|
96
|
+
},
|
|
97
|
+
$startsWithi: {
|
|
98
|
+
type: "string",
|
|
99
|
+
valueType: ["string"]
|
|
100
|
+
},
|
|
101
|
+
$in: {
|
|
102
|
+
type: "array",
|
|
103
|
+
valueType: [
|
|
104
|
+
"string",
|
|
105
|
+
"number",
|
|
106
|
+
"date",
|
|
107
|
+
"picklist"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
$notIn: {
|
|
111
|
+
type: "array",
|
|
112
|
+
valueType: [
|
|
113
|
+
"string",
|
|
114
|
+
"number",
|
|
115
|
+
"date",
|
|
116
|
+
"picklist"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
$between: {
|
|
120
|
+
type: "array",
|
|
121
|
+
valueType: [
|
|
122
|
+
"number",
|
|
123
|
+
"date",
|
|
124
|
+
"datetime"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
$notNull: {
|
|
128
|
+
type: "null",
|
|
129
|
+
valueType: ["nullable"]
|
|
130
|
+
},
|
|
131
|
+
$null: {
|
|
132
|
+
type: "null",
|
|
133
|
+
valueType: ["nullable"]
|
|
134
|
+
},
|
|
135
|
+
$and: {
|
|
136
|
+
type: "logical",
|
|
137
|
+
valueType: ["join"]
|
|
138
|
+
},
|
|
139
|
+
$not: {
|
|
140
|
+
type: "logical",
|
|
141
|
+
valueType: ["join"]
|
|
142
|
+
},
|
|
143
|
+
$or: {
|
|
144
|
+
type: "logical",
|
|
145
|
+
valueType: ["join"]
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
exports.BooleanFilter = require_boolean.BooleanFilter;
|
|
150
|
+
exports.BooleanFilterValue = require_boolean.BooleanFilterValue;
|
|
151
|
+
exports.DateFilter = require_string.DateFilter;
|
|
152
|
+
exports.DateFilterValue = require_string.DateFilterValue;
|
|
153
|
+
exports.DateTimeFilter = require_string.DateTimeFilter;
|
|
154
|
+
exports.DateTimeFilterValue = require_string.DateTimeFilterValue;
|
|
155
|
+
exports.DocumentIdFilter = require_string.DocumentIdFilter;
|
|
156
|
+
exports.EmailFilter = require_string.EmailFilter;
|
|
157
|
+
exports.ExactStringFilter = require_string.ExactStringFilter;
|
|
158
|
+
exports.IdFilter = require_string.IdFilter;
|
|
159
|
+
exports.IdFilterValue = require_string.IdFilterValue;
|
|
160
|
+
exports.IntegerFilter = require_string.IntegerFilter;
|
|
161
|
+
exports.IntegerFilterValue = require_string.IntegerFilterValue;
|
|
162
|
+
exports.LongStringFilter = require_string.LongStringFilter;
|
|
163
|
+
exports.NUMBER_STRING_PATTERN = require_string.NUMBER_STRING_PATTERN;
|
|
164
|
+
exports.NumberFilter = require_string.NumberFilter;
|
|
165
|
+
exports.NumberFilterValue = require_string.NumberFilterValue;
|
|
166
|
+
exports.STRAPI_FILTER_OPERATORS = STRAPI_FILTER_OPERATORS;
|
|
167
|
+
exports.SlugFilter = require_string.SlugFilter;
|
|
168
|
+
exports.StringFilter = require_string.StringFilter;
|
|
169
|
+
exports.TimeFilter = require_string.TimeFilter;
|
|
170
|
+
exports.TimeFilterValue = require_string.TimeFilterValue;
|
|
171
|
+
exports.UrlFilter = require_string.UrlFilter;
|
|
172
|
+
exports.createPicklistArrayFilter = require_picklist.createPicklistArrayFilter;
|
|
173
|
+
exports.createPicklistFilter = require_picklist.createPicklistFilter;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { C as BooleanFilter, S as TimeFilterValue, _ as DateFilter, a as createPicklistFilter, b as DateTimeFilterValue, c as NUMBER_STRING_PATTERN, d as DocumentIdFilter, f as EmailFilter, g as UrlFilter, h as SlugFilter, i as createPicklistArrayFilter, l as NumberFilter, m as IdFilterValue, n as LongStringFilter, o as IntegerFilter, p as IdFilter, r as StringFilter, s as IntegerFilterValue, t as ExactStringFilter, u as NumberFilterValue, v as DateFilterValue, w as BooleanFilterValue, x as TimeFilter, y as DateTimeFilter } from "../index-CJnvK9aa.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/filters/constants.d.ts
|
|
4
|
+
declare const STRAPI_FILTER_OPERATORS: {
|
|
5
|
+
readonly $eq: {
|
|
6
|
+
readonly type: "comparison";
|
|
7
|
+
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
8
|
+
};
|
|
9
|
+
readonly $ne: {
|
|
10
|
+
readonly type: "comparison";
|
|
11
|
+
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
12
|
+
};
|
|
13
|
+
readonly $eqi: {
|
|
14
|
+
readonly type: "comparison";
|
|
15
|
+
readonly valueType: readonly ["string"];
|
|
16
|
+
};
|
|
17
|
+
readonly $nei: {
|
|
18
|
+
readonly type: "comparison";
|
|
19
|
+
readonly valueType: readonly ["string"];
|
|
20
|
+
};
|
|
21
|
+
readonly $gt: {
|
|
22
|
+
readonly type: "comparison";
|
|
23
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
24
|
+
};
|
|
25
|
+
readonly $gte: {
|
|
26
|
+
readonly type: "comparison";
|
|
27
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
28
|
+
};
|
|
29
|
+
readonly $lt: {
|
|
30
|
+
readonly type: "comparison";
|
|
31
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
32
|
+
};
|
|
33
|
+
readonly $lte: {
|
|
34
|
+
readonly type: "comparison";
|
|
35
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
36
|
+
};
|
|
37
|
+
readonly $contains: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly valueType: readonly ["string"];
|
|
40
|
+
};
|
|
41
|
+
readonly $containsi: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly valueType: readonly ["string"];
|
|
44
|
+
};
|
|
45
|
+
readonly $endsWith: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly valueType: readonly ["string"];
|
|
48
|
+
};
|
|
49
|
+
readonly $endsWithi: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly valueType: readonly ["string"];
|
|
52
|
+
};
|
|
53
|
+
readonly $notContains: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly valueType: readonly ["string"];
|
|
56
|
+
};
|
|
57
|
+
readonly $notContainsi: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly valueType: readonly ["string"];
|
|
60
|
+
};
|
|
61
|
+
readonly $startsWith: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly valueType: readonly ["string"];
|
|
64
|
+
};
|
|
65
|
+
readonly $startsWithi: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly valueType: readonly ["string"];
|
|
68
|
+
};
|
|
69
|
+
readonly $in: {
|
|
70
|
+
readonly type: "array";
|
|
71
|
+
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
72
|
+
};
|
|
73
|
+
readonly $notIn: {
|
|
74
|
+
readonly type: "array";
|
|
75
|
+
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
76
|
+
};
|
|
77
|
+
readonly $between: {
|
|
78
|
+
readonly type: "array";
|
|
79
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
80
|
+
};
|
|
81
|
+
readonly $notNull: {
|
|
82
|
+
readonly type: "null";
|
|
83
|
+
readonly valueType: readonly ["nullable"];
|
|
84
|
+
};
|
|
85
|
+
readonly $null: {
|
|
86
|
+
readonly type: "null";
|
|
87
|
+
readonly valueType: readonly ["nullable"];
|
|
88
|
+
};
|
|
89
|
+
readonly $and: {
|
|
90
|
+
readonly type: "logical";
|
|
91
|
+
readonly valueType: readonly ["join"];
|
|
92
|
+
};
|
|
93
|
+
readonly $not: {
|
|
94
|
+
readonly type: "logical";
|
|
95
|
+
readonly valueType: readonly ["join"];
|
|
96
|
+
};
|
|
97
|
+
readonly $or: {
|
|
98
|
+
readonly type: "logical";
|
|
99
|
+
readonly valueType: readonly ["join"];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
type StrapiFilterOperandKey = keyof typeof STRAPI_FILTER_OPERATORS;
|
|
103
|
+
type StrapiFilterOperandType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["type"];
|
|
104
|
+
type StrapiFilterOperandValueType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["valueType"];
|
|
105
|
+
type StrapiFilterOperationDef = {
|
|
106
|
+
type: StrapiFilterOperandType;
|
|
107
|
+
valueType: Array<StrapiFilterOperandValueType>;
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
export { BooleanFilter, BooleanFilterValue, DateFilter, DateFilterValue, DateTimeFilter, DateTimeFilterValue, DocumentIdFilter, EmailFilter, ExactStringFilter, IdFilter, IdFilterValue, IntegerFilter, IntegerFilterValue, LongStringFilter, NUMBER_STRING_PATTERN, NumberFilter, NumberFilterValue, STRAPI_FILTER_OPERATORS, SlugFilter, StrapiFilterOperandKey, StrapiFilterOperandType, StrapiFilterOperandValueType, StrapiFilterOperationDef, StringFilter, TimeFilter, TimeFilterValue, UrlFilter, createPicklistArrayFilter, createPicklistFilter };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { C as BooleanFilter, S as TimeFilterValue, _ as DateFilter, a as createPicklistFilter, b as DateTimeFilterValue, c as NUMBER_STRING_PATTERN, d as DocumentIdFilter, f as EmailFilter, g as UrlFilter, h as SlugFilter, i as createPicklistArrayFilter, l as NumberFilter, m as IdFilterValue, n as LongStringFilter, o as IntegerFilter, p as IdFilter, r as StringFilter, s as IntegerFilterValue, t as ExactStringFilter, u as NumberFilterValue, v as DateFilterValue, w as BooleanFilterValue, x as TimeFilter, y as DateTimeFilter } from "../index-CJoIbrN-.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/filters/constants.d.ts
|
|
4
|
+
declare const STRAPI_FILTER_OPERATORS: {
|
|
5
|
+
readonly $eq: {
|
|
6
|
+
readonly type: "comparison";
|
|
7
|
+
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
8
|
+
};
|
|
9
|
+
readonly $ne: {
|
|
10
|
+
readonly type: "comparison";
|
|
11
|
+
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
12
|
+
};
|
|
13
|
+
readonly $eqi: {
|
|
14
|
+
readonly type: "comparison";
|
|
15
|
+
readonly valueType: readonly ["string"];
|
|
16
|
+
};
|
|
17
|
+
readonly $nei: {
|
|
18
|
+
readonly type: "comparison";
|
|
19
|
+
readonly valueType: readonly ["string"];
|
|
20
|
+
};
|
|
21
|
+
readonly $gt: {
|
|
22
|
+
readonly type: "comparison";
|
|
23
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
24
|
+
};
|
|
25
|
+
readonly $gte: {
|
|
26
|
+
readonly type: "comparison";
|
|
27
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
28
|
+
};
|
|
29
|
+
readonly $lt: {
|
|
30
|
+
readonly type: "comparison";
|
|
31
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
32
|
+
};
|
|
33
|
+
readonly $lte: {
|
|
34
|
+
readonly type: "comparison";
|
|
35
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
36
|
+
};
|
|
37
|
+
readonly $contains: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly valueType: readonly ["string"];
|
|
40
|
+
};
|
|
41
|
+
readonly $containsi: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly valueType: readonly ["string"];
|
|
44
|
+
};
|
|
45
|
+
readonly $endsWith: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly valueType: readonly ["string"];
|
|
48
|
+
};
|
|
49
|
+
readonly $endsWithi: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly valueType: readonly ["string"];
|
|
52
|
+
};
|
|
53
|
+
readonly $notContains: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly valueType: readonly ["string"];
|
|
56
|
+
};
|
|
57
|
+
readonly $notContainsi: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly valueType: readonly ["string"];
|
|
60
|
+
};
|
|
61
|
+
readonly $startsWith: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly valueType: readonly ["string"];
|
|
64
|
+
};
|
|
65
|
+
readonly $startsWithi: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly valueType: readonly ["string"];
|
|
68
|
+
};
|
|
69
|
+
readonly $in: {
|
|
70
|
+
readonly type: "array";
|
|
71
|
+
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
72
|
+
};
|
|
73
|
+
readonly $notIn: {
|
|
74
|
+
readonly type: "array";
|
|
75
|
+
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
76
|
+
};
|
|
77
|
+
readonly $between: {
|
|
78
|
+
readonly type: "array";
|
|
79
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
80
|
+
};
|
|
81
|
+
readonly $notNull: {
|
|
82
|
+
readonly type: "null";
|
|
83
|
+
readonly valueType: readonly ["nullable"];
|
|
84
|
+
};
|
|
85
|
+
readonly $null: {
|
|
86
|
+
readonly type: "null";
|
|
87
|
+
readonly valueType: readonly ["nullable"];
|
|
88
|
+
};
|
|
89
|
+
readonly $and: {
|
|
90
|
+
readonly type: "logical";
|
|
91
|
+
readonly valueType: readonly ["join"];
|
|
92
|
+
};
|
|
93
|
+
readonly $not: {
|
|
94
|
+
readonly type: "logical";
|
|
95
|
+
readonly valueType: readonly ["join"];
|
|
96
|
+
};
|
|
97
|
+
readonly $or: {
|
|
98
|
+
readonly type: "logical";
|
|
99
|
+
readonly valueType: readonly ["join"];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
type StrapiFilterOperandKey = keyof typeof STRAPI_FILTER_OPERATORS;
|
|
103
|
+
type StrapiFilterOperandType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["type"];
|
|
104
|
+
type StrapiFilterOperandValueType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["valueType"];
|
|
105
|
+
type StrapiFilterOperationDef = {
|
|
106
|
+
type: StrapiFilterOperandType;
|
|
107
|
+
valueType: Array<StrapiFilterOperandValueType>;
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
export { BooleanFilter, BooleanFilterValue, DateFilter, DateFilterValue, DateTimeFilter, DateTimeFilterValue, DocumentIdFilter, EmailFilter, ExactStringFilter, IdFilter, IdFilterValue, IntegerFilter, IntegerFilterValue, LongStringFilter, NUMBER_STRING_PATTERN, NumberFilter, NumberFilterValue, STRAPI_FILTER_OPERATORS, SlugFilter, StrapiFilterOperandKey, StrapiFilterOperandType, StrapiFilterOperandValueType, StrapiFilterOperationDef, StringFilter, TimeFilter, TimeFilterValue, UrlFilter, createPicklistArrayFilter, createPicklistFilter };
|