@getcommunity/gc-validators 0.0.288-alpha.1 → 0.0.288-alpha.2
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 +3 -2
- package/dist/base/index.d.cts +3 -3
- package/dist/base/index.d.mts +3 -3
- package/dist/base/index.mjs +3 -3
- package/dist/constants/index.cjs +2 -2
- package/dist/constants/index.mjs +2 -2
- package/dist/{document-CMD9cQiK.mjs → document-DKCXrhcv.mjs} +9 -9
- package/dist/entities/audit-log/mutation.cjs +3 -3
- package/dist/entities/audit-log/mutation.mjs +3 -3
- package/dist/entities/audit-log/query.cjs +3 -3
- package/dist/entities/audit-log/query.d.cts +1 -2
- package/dist/entities/audit-log/query.d.mts +1 -2
- package/dist/entities/audit-log/query.mjs +3 -3
- package/dist/entities/blog-post/document.cjs +1 -1
- package/dist/entities/blog-post/document.mjs +1 -1
- 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 +15 -15
- package/dist/entities/blog-post/query.d.cts +1 -2
- package/dist/entities/blog-post/query.d.mts +1 -2
- package/dist/entities/blog-post/query.mjs +5 -5
- package/dist/entities/category/document.cjs +1 -1
- package/dist/entities/category/document.mjs +1 -1
- package/dist/entities/category/mutation.cjs +1 -1
- package/dist/entities/category/mutation.mjs +1 -1
- 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/mutation.cjs +1 -1
- package/dist/entities/client/mutation.mjs +1 -1
- package/dist/entities/client/query.cjs +3 -3
- package/dist/entities/client/query.d.cts +1 -1
- package/dist/entities/client/query.d.mts +1 -1
- package/dist/entities/client/query.mjs +3 -3
- 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 +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-media-platform/mutation.cjs +1 -1
- package/dist/entities/client-media-platform/mutation.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/mutation.cjs +3 -3
- package/dist/entities/client-project/mutation.mjs +3 -3
- package/dist/entities/client-project/query.cjs +3 -3
- package/dist/entities/client-project/query.d.cts +2 -3
- package/dist/entities/client-project/query.d.mts +2 -3
- package/dist/entities/client-project/query.mjs +3 -3
- 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 +3 -3
- package/dist/entities/client-report/query.d.cts +2 -3
- package/dist/entities/client-report/query.d.mts +2 -3
- package/dist/entities/client-report/query.mjs +3 -3
- 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 +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/mutation.cjs +1 -1
- package/dist/entities/client-user/mutation.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/comment/query.cjs +2 -2
- package/dist/entities/comment/query.mjs +2 -2
- 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 +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/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/mutation.cjs +1 -1
- package/dist/entities/gcflytour/mutation.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/mutation.cjs +1 -1
- package/dist/entities/gcflytour-snap/mutation.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/lead/mutation.cjs +2 -2
- package/dist/entities/lead/mutation.mjs +2 -2
- 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 +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/mutation.cjs +1 -1
- package/dist/entities/media-creative-format/mutation.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/mutation.cjs +1 -1
- package/dist/entities/media-medium/mutation.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/mutation.cjs +2 -2
- package/dist/entities/media-platform/mutation.mjs +2 -2
- 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/mutation.cjs +1 -1
- package/dist/entities/monday-workspace/mutation.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/newsletter-signup/mutation.cjs +2 -2
- package/dist/entities/newsletter-signup/mutation.mjs +2 -2
- package/dist/entities/resume/mutation.cjs +3 -3
- package/dist/entities/resume/mutation.mjs +3 -3
- package/dist/entities/sharpspring/mutation.cjs +1 -1
- package/dist/entities/sharpspring/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 +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/document.cjs +1 -1
- package/dist/entities/team-member/document.mjs +1 -1
- package/dist/entities/team-member/query.cjs +3 -3
- package/dist/entities/team-member/query.d.cts +1 -2
- package/dist/entities/team-member/query.d.mts +1 -2
- package/dist/entities/team-member/query.mjs +3 -3
- package/dist/entities/teamwork/query.cjs +1 -1
- package/dist/entities/teamwork/query.mjs +1 -1
- package/dist/entities/trend/document.cjs +1 -1
- package/dist/entities/trend/document.mjs +1 -1
- package/dist/entities/trend/mutation.cjs +1 -1
- package/dist/entities/trend/mutation.mjs +1 -1
- package/dist/entities/up-auth/mutation.cjs +1 -1
- package/dist/entities/up-auth/mutation.mjs +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-role/query.cjs +1 -1
- 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 +1 -1
- package/dist/entities/up-user/fields.cjs +2 -1
- package/dist/entities/up-user/fields.mjs +1 -1
- package/dist/entities/up-user/mutation.cjs +1 -1
- package/dist/entities/up-user/mutation.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 +3 -3
- package/dist/entities/url-redirect/query.d.cts +1 -2
- package/dist/entities/url-redirect/query.d.mts +1 -2
- package/dist/entities/url-redirect/query.mjs +3 -3
- 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.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-link-builder/mutation.cjs +2 -2
- package/dist/entities/utm-link-builder/mutation.mjs +2 -2
- package/dist/entities/utm-tracking-link/fields.cjs +1 -1
- package/dist/entities/utm-tracking-link/fields.mjs +1 -1
- package/dist/entities/utm-tracking-link/mutation.cjs +2 -2
- package/dist/entities/utm-tracking-link/mutation.mjs +2 -2
- 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-KhJJEwDn.d.cts → fields-PCsCdBLK.d.cts} +1 -1
- package/dist/{fields-BN1MQEFa.d.mts → fields-S54MmK9N.d.mts} +1 -1
- package/dist/filters/index.cjs +1 -1
- package/dist/filters/index.d.cts +2 -109
- package/dist/filters/index.d.mts +2 -109
- package/dist/filters/index.mjs +1 -1
- package/dist/{index-CJnvK9aa.d.cts → index-B3eh9Z-Q.d.cts} +8 -2
- package/dist/{index-CJoIbrN-.d.mts → index-B3eh9Z-Q.d.mts} +8 -2
- package/dist/index-Bk5hIBoB.d.cts +108 -0
- package/dist/index-Bk5hIBoB.d.mts +108 -0
- package/dist/{index-RcVef_Z2.d.cts → index-G2dwQO5K.d.cts} +17 -1
- package/dist/{index-26DCj3kM.d.mts → index-S6qdsw3U.d.mts} +17 -1
- package/dist/{query-CtCcNIyW.d.cts → query-0Z9KdoGa.d.mts} +4 -4
- package/dist/{query-Do-3hcZD.d.mts → query-BGz5Dj7o.d.cts} +5 -6
- package/dist/{query-CI3ZWJqL2.cjs → query-B_0RzvVW.cjs} +14 -14
- package/dist/{query-Wt8Cx9OF.mjs → query-Bi8_XzuT.mjs} +4 -4
- package/dist/{query-DVcH4-JK.cjs → query-BjiGq9-J.cjs} +3 -3
- package/dist/{query-DD39dkbH.d.cts → query-C-G04KqP.d.mts} +2 -2
- package/dist/{query-CyYPluP3.d.mts → query-C6GwPFXA.d.mts} +2 -2
- package/dist/{query-DZdytwSD.d.cts → query-CEvYGQyI.d.cts} +2 -2
- package/dist/{query-CgWG7dSl.mjs → query-CJTbiRV2.mjs} +3 -3
- package/dist/{query-DqwF7V2G.cjs → query-CMOLb-qs.cjs} +23 -6
- package/dist/{query-Q18zizCQ.mjs → query-CZV-Qu8U.mjs} +3 -3
- package/dist/{query-DPFgSbu5.d.mts → query-CZWKfQ2W.d.mts} +25 -0
- package/dist/{query-D1mBqALL.cjs → query-Ck0NC_9l.cjs} +3 -3
- package/dist/{query-CI5JQhH_.d.cts → query-DAmB2_nm.d.cts} +2 -2
- package/dist/{query-CY7W3BZ5.mjs → query-DV68iZaG.mjs} +15 -15
- package/dist/{query-DPFgSbu5.d.cts → query-Db1jwzou.d.cts} +25 -0
- package/dist/{query-DuuwYQWE.mjs → query-Du84-6vd.mjs} +16 -5
- package/dist/{query-emzTCCDq.d.mts → query-DxEOf4Ya.d.cts} +2 -2
- package/dist/{query-qb1G3OKt.cjs → query-Dzx1W_xi.cjs} +16 -16
- package/dist/{query-CeillfBr.d.cts → query-F1Pi5Frs.d.mts} +5 -6
- package/dist/{query-vsyN6YiK.d.mts → query-X_l9YFS6.d.mts} +2 -2
- package/dist/{query-9XKj-s81.d.mts → query-gZEGybi3.d.cts} +4 -4
- package/dist/{query-7_zddNOX.d.mts → query-hvHQxwdK.d.mts} +1 -2
- package/dist/{query-y7Fuj2mF.d.cts → query-ohFZ5p3e.d.cts} +1 -2
- package/dist/{string-cbk3BUGq.mjs → string-BzuFgUlq.mjs} +3 -3
- package/dist/{string-DnXY8Tir.cjs → string-CmrQCAO3.cjs} +3 -3
- package/dist/utilities/index.d.cts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/validators/index.cjs +4 -4
- package/dist/validators/index.mjs +4 -4
- package/package.json +1 -1
- package/dist/index-CstRGKNl.d.cts +0 -10
- package/dist/index-CstRGKNl.d.mts +0 -10
- package/dist/{document-C5i7ol4r.cjs → document-D-6H7hBf.cjs} +8 -8
- package/dist/{relationships-DYr9eF1a.mjs → relationships-BFmesnzw.mjs} +1 -1
- package/dist/{relationships-B7XakNhb.cjs → relationships-BjJkIfbK.cjs} +1 -1
- package/dist/{utm-B6km5JHd.mjs → utm-Bt8jPpRI.mjs} +1 -1
- package/dist/{utm-DxODH4Ry.cjs → utm-Dt4mu8AU.cjs} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
|
+
const require_relationships = require("../../relationships-BjJkIfbK.cjs");
|
|
3
4
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
4
|
-
const require_relationships = require("../../relationships-B7XakNhb.cjs");
|
|
5
5
|
let valibot = require("valibot");
|
|
6
6
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
7
|
//#region src/entities/user-account/mutation.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { o as AssociateOneEntity } from "../../relationships-BFmesnzw.mjs";
|
|
1
2
|
import { a as VStringMinMax } from "../../string-v2gu3xz0.mjs";
|
|
2
|
-
import { o as AssociateOneEntity } from "../../relationships-DYr9eF1a.mjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
//#region src/entities/user-account/mutation.ts
|
|
5
5
|
const UpdateUserAccount = v.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_query = require("../../query-
|
|
2
|
+
const require_query = require("../../query-CMOLb-qs.cjs");
|
|
3
3
|
//#region src/entities/user-account/query.ts
|
|
4
4
|
const SReadUserAccountById = require_query.QueryStrapiById;
|
|
5
5
|
const SReadUserAccountByDocumentId = require_query.QueryStrapiByDocumentId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-
|
|
1
|
+
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-Db1jwzou.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/user-account/query.d.ts
|
|
4
4
|
declare const SReadUserAccountById: import("valibot").ObjectSchema<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-
|
|
1
|
+
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-CZWKfQ2W.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/user-account/query.d.ts
|
|
4
4
|
declare const SReadUserAccountById: import("valibot").ObjectSchema<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-
|
|
1
|
+
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-Du84-6vd.mjs";
|
|
2
2
|
//#region src/entities/user-account/query.ts
|
|
3
3
|
const SReadUserAccountById = QueryStrapiById;
|
|
4
4
|
const SReadUserAccountByDocumentId = QueryStrapiByDocumentId;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
|
+
const require_relationships = require("../../relationships-BjJkIfbK.cjs");
|
|
3
4
|
require("../../limits-Drbhufdn.cjs");
|
|
4
5
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
5
|
-
const require_relationships = require("../../relationships-B7XakNhb.cjs");
|
|
6
6
|
const require_number = require("../../number-DbwYKIg2.cjs");
|
|
7
|
-
const require_utm = require("../../utm-
|
|
7
|
+
const require_utm = require("../../utm-Dt4mu8AU.cjs");
|
|
8
8
|
const require_entities_utm_link_builder_fields = require("./fields.cjs");
|
|
9
9
|
let valibot = require("valibot");
|
|
10
10
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { o as AssociateOneEntity } from "../../relationships-BFmesnzw.mjs";
|
|
1
2
|
import "../../limits-Dlni_x0-.mjs";
|
|
2
3
|
import { a as VStringMinMax, i as VStringMax } from "../../string-v2gu3xz0.mjs";
|
|
3
|
-
import { o as AssociateOneEntity } from "../../relationships-DYr9eF1a.mjs";
|
|
4
4
|
import { t as VIntegerNullable } from "../../number-Klusc2Oc.mjs";
|
|
5
|
-
import { n as VStringUrlUtm, r as VStringUtmKey, t as VStringUrlNoUtm } from "../../utm-
|
|
5
|
+
import { n as VStringUrlUtm, r as VStringUtmKey, t as VStringUrlNoUtm } from "../../utm-Bt8jPpRI.mjs";
|
|
6
6
|
import { UtmLinkBuilderPartCampaignDate } from "./fields.mjs";
|
|
7
7
|
import * as v from "valibot";
|
|
8
8
|
//#region src/entities/utm-link-builder/mutation.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_limits = require("../../limits-Drbhufdn.cjs");
|
|
3
|
-
const require_regex = require("../../regex-CyP06YBM.cjs");
|
|
4
3
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
4
|
+
const require_regex = require("../../regex-CyP06YBM.cjs");
|
|
5
5
|
//#region src/entities/utm-tracking-link/fields.ts
|
|
6
6
|
const ValidUtmSource = require_string.VStringMinMaxRegex(1, require_limits.LIMIT_MAX_UTM_SOURCE, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE);
|
|
7
7
|
const ValidUtmMedium = require_string.VStringMinMaxRegex(1, require_limits.LIMIT_MAX_UTM_MEDIUM, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as LIMIT_MAX_UTM_CONTENT, d as LIMIT_MAX_UTM_MEDIUM, f as LIMIT_MAX_UTM_SOURCE, l as LIMIT_MAX_UTM_CREATIVE_FORMAT, s as LIMIT_MAX_UTM_CAMPAIGN, u as LIMIT_MAX_UTM_ID } from "../../limits-Dlni_x0-.mjs";
|
|
2
|
-
import { r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE } from "../../regex-B0yrJN5-.mjs";
|
|
3
2
|
import { o as VStringMinMaxRegex } from "../../string-v2gu3xz0.mjs";
|
|
3
|
+
import { r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE } from "../../regex-B0yrJN5-.mjs";
|
|
4
4
|
//#region src/entities/utm-tracking-link/fields.ts
|
|
5
5
|
const ValidUtmSource = VStringMinMaxRegex(1, LIMIT_MAX_UTM_SOURCE, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE);
|
|
6
6
|
const ValidUtmMedium = VStringMinMaxRegex(1, LIMIT_MAX_UTM_MEDIUM, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
|
+
const require_relationships = require("../../relationships-BjJkIfbK.cjs");
|
|
3
4
|
require("../../limits-Drbhufdn.cjs");
|
|
4
5
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
5
|
-
const
|
|
6
|
-
const require_utm = require("../../utm-DxODH4Ry.cjs");
|
|
6
|
+
const require_utm = require("../../utm-Dt4mu8AU.cjs");
|
|
7
7
|
const require_entities_utm_tracking_link_fields = require("./fields.cjs");
|
|
8
8
|
let valibot = require("valibot");
|
|
9
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { o as AssociateOneEntity } from "../../relationships-BFmesnzw.mjs";
|
|
1
2
|
import "../../limits-Dlni_x0-.mjs";
|
|
2
3
|
import { a as VStringMinMax, c as VStringShortNullable, l as VStringShortToCSV, r as VStringLongNullable, s as VStringShort } from "../../string-v2gu3xz0.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as VStringUrlUtm, t as VStringUrlNoUtm } from "../../utm-B6km5JHd.mjs";
|
|
4
|
+
import { n as VStringUrlUtm, t as VStringUrlNoUtm } from "../../utm-Bt8jPpRI.mjs";
|
|
5
5
|
import { ValidUtmCampaign, ValidUtmMedium, ValidUtmSource } from "./fields.mjs";
|
|
6
6
|
import * as v from "valibot";
|
|
7
7
|
//#region src/entities/utm-tracking-link/mutation.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
|
-
const require_pagination = require("../../pagination-DhAgQr7d.cjs");
|
|
4
|
-
const require_sort = require("../../sort-CYllFl6q.cjs");
|
|
5
3
|
const require_logical_operators = require("../../logical-operators-Bku8NPDs.cjs");
|
|
6
|
-
const require_string = require("../../string-
|
|
4
|
+
const require_string = require("../../string-CmrQCAO3.cjs");
|
|
7
5
|
const require_boolean = require("../../boolean-BwqaNE9c.cjs");
|
|
6
|
+
const require_pagination = require("../../pagination-DhAgQr7d.cjs");
|
|
7
|
+
const require_sort = require("../../sort-CYllFl6q.cjs");
|
|
8
8
|
const require_entities_client_query = require("../client/query.cjs");
|
|
9
|
-
const require_query = require("../../query-
|
|
9
|
+
const require_query = require("../../query-Dzx1W_xi.cjs");
|
|
10
10
|
let valibot = require("valibot");
|
|
11
11
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
12
12
|
//#region src/entities/utm-tracking-link/query.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as BooleanFilter, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, y as DateTimeFilter } from "../../index-
|
|
2
|
-
import { n as FilterStrapiClients } from "../../query-
|
|
3
|
-
import { r as FilterStrapiUsers } from "../../query-
|
|
1
|
+
import { C as BooleanFilter, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, y as DateTimeFilter } from "../../index-B3eh9Z-Q.cjs";
|
|
2
|
+
import { n as FilterStrapiClients } from "../../query-ohFZ5p3e.cjs";
|
|
3
|
+
import { r as FilterStrapiUsers } from "../../query-gZEGybi3.cjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
|
|
6
6
|
//#region src/entities/utm-tracking-link/query.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as BooleanFilter, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, y as DateTimeFilter } from "../../index-
|
|
2
|
-
import { n as FilterStrapiClients } from "../../query-
|
|
3
|
-
import { r as FilterStrapiUsers } from "../../query-
|
|
1
|
+
import { C as BooleanFilter, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, y as DateTimeFilter } from "../../index-B3eh9Z-Q.mjs";
|
|
2
|
+
import { n as FilterStrapiClients } from "../../query-hvHQxwdK.mjs";
|
|
3
|
+
import { r as FilterStrapiUsers } from "../../query-0Z9KdoGa.mjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
|
|
6
6
|
//#region src/entities/utm-tracking-link/query.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as VSize, t as VPage } from "../../pagination-CK-mJT5q.mjs";
|
|
2
|
-
import { t as QuerySortValues } from "../../sort-FYsWXlaD.mjs";
|
|
3
1
|
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-
|
|
2
|
+
import { _ as DateTimeFilter, i as DocumentIdFilter, n as LongStringFilter, o as IdFilter } from "../../string-BzuFgUlq.mjs";
|
|
5
3
|
import { t as BooleanFilter } from "../../boolean-cJxcC8gC.mjs";
|
|
4
|
+
import { n as VSize, t as VPage } from "../../pagination-CK-mJT5q.mjs";
|
|
5
|
+
import { t as QuerySortValues } from "../../sort-FYsWXlaD.mjs";
|
|
6
6
|
import { FilterStrapiClients } from "../client/query.mjs";
|
|
7
|
-
import { r as FilterStrapiUsers } from "../../query-
|
|
7
|
+
import { r as FilterStrapiUsers } from "../../query-Bi8_XzuT.mjs";
|
|
8
8
|
import * as v from "valibot";
|
|
9
9
|
//#region src/entities/utm-tracking-link/query.ts
|
|
10
10
|
const FilterStrapiUtmTrackingLinks = createStrapiFilterSchema({
|
package/dist/filters/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_string = require("../string-
|
|
2
|
+
const require_string = require("../string-CmrQCAO3.cjs");
|
|
3
3
|
const require_boolean = require("../boolean-BwqaNE9c.cjs");
|
|
4
4
|
const require_picklist = require("../picklist-DMZjp2EE.cjs");
|
|
5
5
|
//#region src/filters/constants.ts
|
package/dist/filters/index.d.cts
CHANGED
|
@@ -1,110 +1,3 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { a as StrapiFilterOperationDef, i as StrapiFilterOperandValueType, n as StrapiFilterOperandKey, r as StrapiFilterOperandType, t as STRAPI_FILTER_OPERATORS } from "../index-Bk5hIBoB.cjs";
|
|
2
|
+
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-B3eh9Z-Q.cjs";
|
|
110
3
|
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 };
|
package/dist/filters/index.d.mts
CHANGED
|
@@ -1,110 +1,3 @@
|
|
|
1
|
-
import {
|
|
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
|
|
1
|
+
import { a as StrapiFilterOperationDef, i as StrapiFilterOperandValueType, n as StrapiFilterOperandKey, r as StrapiFilterOperandType, t as STRAPI_FILTER_OPERATORS } from "../index-Bk5hIBoB.mjs";
|
|
2
|
+
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-B3eh9Z-Q.mjs";
|
|
110
3
|
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 };
|
package/dist/filters/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as DateTimeFilter, a as EmailFilter, b as TimeFilterValue, c as SlugFilter, d as IntegerFilterValue, f as NUMBER_STRING_PATTERN, g as DateFilterValue, h as DateFilter, i as DocumentIdFilter, l as UrlFilter, m as NumberFilterValue, n as LongStringFilter, o as IdFilter, p as NumberFilter, r as StringFilter, s as IdFilterValue, t as ExactStringFilter, u as IntegerFilter, v as DateTimeFilterValue, y as TimeFilter } from "../string-
|
|
1
|
+
import { _ as DateTimeFilter, a as EmailFilter, b as TimeFilterValue, c as SlugFilter, d as IntegerFilterValue, f as NUMBER_STRING_PATTERN, g as DateFilterValue, h as DateFilter, i as DocumentIdFilter, l as UrlFilter, m as NumberFilterValue, n as LongStringFilter, o as IdFilter, p as NumberFilter, r as StringFilter, s as IdFilterValue, t as ExactStringFilter, u as IntegerFilter, v as DateTimeFilterValue, y as TimeFilter } from "../string-BzuFgUlq.mjs";
|
|
2
2
|
import { n as BooleanFilterValue, t as BooleanFilter } from "../boolean-cJxcC8gC.mjs";
|
|
3
3
|
import { n as createPicklistFilter, t as createPicklistArrayFilter } from "../picklist-DayZlSoN.mjs";
|
|
4
4
|
//#region src/filters/constants.ts
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { t as StrapiStrictFilterObjectSchema } from "./index-CstRGKNl.cjs";
|
|
2
1
|
import * as v from "valibot";
|
|
3
2
|
|
|
3
|
+
//#region src/filters/primitives/types.d.ts
|
|
4
|
+
type Simplify<T> = { [TKey in keyof T]: T[TKey] } & {};
|
|
5
|
+
type StrapiFilterEntries = Record<string, v.GenericSchema>;
|
|
6
|
+
type StrapiStrictFilterObjectInput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferInput<TEntries[TKey]> }>>;
|
|
7
|
+
type StrapiStrictFilterObjectOutput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferOutput<TEntries[TKey]> }>>;
|
|
8
|
+
type StrapiStrictFilterObjectSchema<TEntries extends StrapiFilterEntries> = v.GenericSchema<StrapiStrictFilterObjectInput<TEntries>, StrapiStrictFilterObjectOutput<TEntries>>;
|
|
9
|
+
//#endregion
|
|
4
10
|
//#region src/filters/generics/boolean.d.ts
|
|
5
11
|
declare const BooleanFilterValue: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
6
12
|
type BooleanFilterValue = v.InferOutput<typeof BooleanFilterValue>;
|
|
@@ -392,4 +398,4 @@ declare const ExactStringFilter: StrapiStrictFilterObjectSchema<{
|
|
|
392
398
|
}>;
|
|
393
399
|
type ExactStringFilter = v.InferOutput<typeof ExactStringFilter>;
|
|
394
400
|
//#endregion
|
|
395
|
-
export { BooleanFilter as C, TimeFilterValue as S, DateFilter as _, createPicklistFilter as a, DateTimeFilterValue as b, NUMBER_STRING_PATTERN as c, DocumentIdFilter as d, EmailFilter as f, UrlFilter as g, SlugFilter as h, createPicklistArrayFilter as i, NumberFilter as l, IdFilterValue as m, LongStringFilter as n, IntegerFilter as o, IdFilter as p, StringFilter as r, IntegerFilterValue as s, ExactStringFilter as t, NumberFilterValue as u, DateFilterValue as v, BooleanFilterValue as w, TimeFilter as x, DateTimeFilter as y };
|
|
401
|
+
export { BooleanFilter as C, TimeFilterValue as S, StrapiStrictFilterObjectSchema as T, DateFilter as _, createPicklistFilter as a, DateTimeFilterValue as b, NUMBER_STRING_PATTERN as c, DocumentIdFilter as d, EmailFilter as f, UrlFilter as g, SlugFilter as h, createPicklistArrayFilter as i, NumberFilter as l, IdFilterValue as m, LongStringFilter as n, IntegerFilter as o, IdFilter as p, StringFilter as r, IntegerFilterValue as s, ExactStringFilter as t, NumberFilterValue as u, DateFilterValue as v, BooleanFilterValue as w, TimeFilter as x, DateTimeFilter as y };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { t as StrapiStrictFilterObjectSchema } from "./index-CstRGKNl.mjs";
|
|
2
1
|
import * as v from "valibot";
|
|
3
2
|
|
|
3
|
+
//#region src/filters/primitives/types.d.ts
|
|
4
|
+
type Simplify<T> = { [TKey in keyof T]: T[TKey] } & {};
|
|
5
|
+
type StrapiFilterEntries = Record<string, v.GenericSchema>;
|
|
6
|
+
type StrapiStrictFilterObjectInput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferInput<TEntries[TKey]> }>>;
|
|
7
|
+
type StrapiStrictFilterObjectOutput<TEntries extends StrapiFilterEntries> = Simplify<Partial<{ [TKey in keyof TEntries]: v.InferOutput<TEntries[TKey]> }>>;
|
|
8
|
+
type StrapiStrictFilterObjectSchema<TEntries extends StrapiFilterEntries> = v.GenericSchema<StrapiStrictFilterObjectInput<TEntries>, StrapiStrictFilterObjectOutput<TEntries>>;
|
|
9
|
+
//#endregion
|
|
4
10
|
//#region src/filters/generics/boolean.d.ts
|
|
5
11
|
declare const BooleanFilterValue: v.UnionSchema<[v.BooleanSchema<undefined>], undefined>;
|
|
6
12
|
type BooleanFilterValue = v.InferOutput<typeof BooleanFilterValue>;
|
|
@@ -392,4 +398,4 @@ declare const ExactStringFilter: StrapiStrictFilterObjectSchema<{
|
|
|
392
398
|
}>;
|
|
393
399
|
type ExactStringFilter = v.InferOutput<typeof ExactStringFilter>;
|
|
394
400
|
//#endregion
|
|
395
|
-
export { BooleanFilter as C, TimeFilterValue as S, DateFilter as _, createPicklistFilter as a, DateTimeFilterValue as b, NUMBER_STRING_PATTERN as c, DocumentIdFilter as d, EmailFilter as f, UrlFilter as g, SlugFilter as h, createPicklistArrayFilter as i, NumberFilter as l, IdFilterValue as m, LongStringFilter as n, IntegerFilter as o, IdFilter as p, StringFilter as r, IntegerFilterValue as s, ExactStringFilter as t, NumberFilterValue as u, DateFilterValue as v, BooleanFilterValue as w, TimeFilter as x, DateTimeFilter as y };
|
|
401
|
+
export { BooleanFilter as C, TimeFilterValue as S, StrapiStrictFilterObjectSchema as T, DateFilter as _, createPicklistFilter as a, DateTimeFilterValue as b, NUMBER_STRING_PATTERN as c, DocumentIdFilter as d, EmailFilter as f, UrlFilter as g, SlugFilter as h, createPicklistArrayFilter as i, NumberFilter as l, IdFilterValue as m, LongStringFilter as n, IntegerFilter as o, IdFilter as p, StringFilter as r, IntegerFilterValue as s, ExactStringFilter as t, NumberFilterValue as u, DateFilterValue as v, BooleanFilterValue as w, TimeFilter as x, DateTimeFilter as y };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
//#region src/filters/constants.d.ts
|
|
2
|
+
declare const STRAPI_FILTER_OPERATORS: {
|
|
3
|
+
readonly $eq: {
|
|
4
|
+
readonly type: "comparison";
|
|
5
|
+
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
6
|
+
};
|
|
7
|
+
readonly $ne: {
|
|
8
|
+
readonly type: "comparison";
|
|
9
|
+
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
10
|
+
};
|
|
11
|
+
readonly $eqi: {
|
|
12
|
+
readonly type: "comparison";
|
|
13
|
+
readonly valueType: readonly ["string"];
|
|
14
|
+
};
|
|
15
|
+
readonly $nei: {
|
|
16
|
+
readonly type: "comparison";
|
|
17
|
+
readonly valueType: readonly ["string"];
|
|
18
|
+
};
|
|
19
|
+
readonly $gt: {
|
|
20
|
+
readonly type: "comparison";
|
|
21
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
22
|
+
};
|
|
23
|
+
readonly $gte: {
|
|
24
|
+
readonly type: "comparison";
|
|
25
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
26
|
+
};
|
|
27
|
+
readonly $lt: {
|
|
28
|
+
readonly type: "comparison";
|
|
29
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
30
|
+
};
|
|
31
|
+
readonly $lte: {
|
|
32
|
+
readonly type: "comparison";
|
|
33
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
34
|
+
};
|
|
35
|
+
readonly $contains: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly valueType: readonly ["string"];
|
|
38
|
+
};
|
|
39
|
+
readonly $containsi: {
|
|
40
|
+
readonly type: "string";
|
|
41
|
+
readonly valueType: readonly ["string"];
|
|
42
|
+
};
|
|
43
|
+
readonly $endsWith: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly valueType: readonly ["string"];
|
|
46
|
+
};
|
|
47
|
+
readonly $endsWithi: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly valueType: readonly ["string"];
|
|
50
|
+
};
|
|
51
|
+
readonly $notContains: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly valueType: readonly ["string"];
|
|
54
|
+
};
|
|
55
|
+
readonly $notContainsi: {
|
|
56
|
+
readonly type: "string";
|
|
57
|
+
readonly valueType: readonly ["string"];
|
|
58
|
+
};
|
|
59
|
+
readonly $startsWith: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly valueType: readonly ["string"];
|
|
62
|
+
};
|
|
63
|
+
readonly $startsWithi: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
readonly valueType: readonly ["string"];
|
|
66
|
+
};
|
|
67
|
+
readonly $in: {
|
|
68
|
+
readonly type: "array";
|
|
69
|
+
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
70
|
+
};
|
|
71
|
+
readonly $notIn: {
|
|
72
|
+
readonly type: "array";
|
|
73
|
+
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
74
|
+
};
|
|
75
|
+
readonly $between: {
|
|
76
|
+
readonly type: "array";
|
|
77
|
+
readonly valueType: readonly ["number", "date", "datetime"];
|
|
78
|
+
};
|
|
79
|
+
readonly $notNull: {
|
|
80
|
+
readonly type: "null";
|
|
81
|
+
readonly valueType: readonly ["nullable"];
|
|
82
|
+
};
|
|
83
|
+
readonly $null: {
|
|
84
|
+
readonly type: "null";
|
|
85
|
+
readonly valueType: readonly ["nullable"];
|
|
86
|
+
};
|
|
87
|
+
readonly $and: {
|
|
88
|
+
readonly type: "logical";
|
|
89
|
+
readonly valueType: readonly ["join"];
|
|
90
|
+
};
|
|
91
|
+
readonly $not: {
|
|
92
|
+
readonly type: "logical";
|
|
93
|
+
readonly valueType: readonly ["join"];
|
|
94
|
+
};
|
|
95
|
+
readonly $or: {
|
|
96
|
+
readonly type: "logical";
|
|
97
|
+
readonly valueType: readonly ["join"];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
type StrapiFilterOperandKey = keyof typeof STRAPI_FILTER_OPERATORS;
|
|
101
|
+
type StrapiFilterOperandType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["type"];
|
|
102
|
+
type StrapiFilterOperandValueType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["valueType"];
|
|
103
|
+
type StrapiFilterOperationDef = {
|
|
104
|
+
type: StrapiFilterOperandType;
|
|
105
|
+
valueType: Array<StrapiFilterOperandValueType>;
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { StrapiFilterOperationDef as a, StrapiFilterOperandValueType as i, StrapiFilterOperandKey as n, StrapiFilterOperandType as r, STRAPI_FILTER_OPERATORS as t };
|