@getcommunity/gc-validators 0.0.288 → 0.0.290
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/{abac-CpbcNkbR.mjs → abac-CGxdvbQf.mjs} +35 -0
- package/dist/{abac-COY7Q7ag.cjs → abac-DIUw6Nr_.cjs} +35 -0
- package/dist/base/index.cjs +7 -7
- package/dist/base/index.d.cts +3 -3
- package/dist/base/index.d.mts +3 -3
- package/dist/base/index.mjs +3 -4
- package/dist/boolean-BwqaNE9c.cjs +23 -0
- package/dist/boolean-cJxcC8gC.mjs +10 -0
- package/dist/components/shared/index.cjs +22 -22
- package/dist/components/shared/index.mjs +22 -22
- package/dist/constants/index.cjs +2 -2
- package/dist/constants/index.d.cts +13 -1
- package/dist/constants/index.d.mts +13 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{constants-DB2bRdS_.mjs → constants-B1uUxM_L.mjs} +7 -0
- package/dist/{constants-Bn1xFL1W.cjs → constants-mrp_BI6r.cjs} +7 -0
- package/dist/{document-Bs5gh1PK.d.mts → document-0iyZU8AR.d.mts} +244 -31
- package/dist/{document-DZnOyFC3.d.cts → document-6DxC79Il.d.cts} +244 -31
- package/dist/{document-u7wNZghX.mjs → document-DFsCkKft.mjs} +43 -27
- package/dist/{document-DdrgMt8B.cjs → document-nEYkVJze.cjs} +48 -26
- 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 +30 -18
- package/dist/entities/audit-log/query.d.cts +44 -16
- package/dist/entities/audit-log/query.d.mts +44 -16
- package/dist/entities/audit-log/query.mjs +29 -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 +38 -9
- package/dist/entities/blog-post/query.d.cts +47 -5
- package/dist/entities/blog-post/query.d.mts +47 -5
- package/dist/entities/blog-post/query.mjs +34 -7
- package/dist/entities/category/mutation.cjs +1 -1
- package/dist/entities/category/mutation.mjs +1 -1
- package/dist/entities/category/query.cjs +14 -4
- package/dist/entities/category/query.d.cts +13 -3
- package/dist/entities/category/query.d.mts +13 -3
- package/dist/entities/category/query.mjs +14 -5
- package/dist/entities/client/document.cjs +1 -1
- package/dist/entities/client/document.d.cts +1 -1
- package/dist/entities/client/document.d.mts +1 -1
- package/dist/entities/client/document.mjs +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 +28 -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 +28 -16
- package/dist/entities/client-content-pillar/document.cjs +1 -1
- 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/document.mjs +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-email/constants.cjs +5 -0
- package/dist/entities/client-email/constants.d.cts +4 -0
- package/dist/entities/client-email/constants.d.mts +4 -0
- package/dist/entities/client-email/constants.mjs +4 -0
- package/dist/entities/client-email/document.cjs +3 -0
- package/dist/entities/client-email/document.d.cts +2 -0
- package/dist/entities/client-email/document.d.mts +2 -0
- package/dist/entities/client-email/document.mjs +2 -0
- package/dist/entities/client-email/mutation.cjs +35 -0
- package/dist/entities/client-email/mutation.d.cts +41 -0
- package/dist/entities/client-email/mutation.d.mts +41 -0
- package/dist/entities/client-email/mutation.mjs +30 -0
- package/dist/entities/client-email/query.cjs +35 -0
- package/dist/entities/client-email/query.d.cts +30 -0
- package/dist/entities/client-email/query.d.mts +30 -0
- package/dist/entities/client-email/query.mjs +31 -0
- package/dist/entities/client-media-platform/document.cjs +1 -1
- 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/document.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 +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.cjs +1 -1
- 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/document.mjs +1 -1
- package/dist/entities/client-project/mutation.cjs +4 -4
- package/dist/entities/client-project/mutation.mjs +4 -4
- package/dist/entities/client-project/query.cjs +37 -26
- package/dist/entities/client-project/query.d.cts +66 -19
- package/dist/entities/client-project/query.d.mts +66 -19
- package/dist/entities/client-project/query.mjs +35 -27
- package/dist/entities/client-report/document.cjs +1 -1
- 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/document.mjs +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 +24 -10
- package/dist/entities/client-report/query.d.cts +37 -8
- package/dist/entities/client-report/query.d.mts +37 -8
- package/dist/entities/client-report/query.mjs +23 -11
- package/dist/entities/client-styleguide/document.cjs +1 -1
- 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/document.mjs +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 +17 -7
- package/dist/entities/client-styleguide/query.d.cts +15 -5
- package/dist/entities/client-styleguide/query.d.mts +15 -5
- package/dist/entities/client-styleguide/query.mjs +17 -8
- package/dist/entities/client-user/document.cjs +1 -1
- 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/document.mjs +1 -1
- package/dist/entities/client-user/fields.cjs +3 -1
- 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 +3 -2
- 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/comment/query.cjs +2 -2
- package/dist/entities/comment/query.mjs +2 -2
- package/dist/entities/content-pillar/document.cjs +1 -1
- 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/document.mjs +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/gcflytour/document.cjs +1 -1
- package/dist/entities/gcflytour/document.d.cts +1 -1
- package/dist/entities/gcflytour/document.d.mts +1 -1
- package/dist/entities/gcflytour/document.mjs +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.cjs +1 -1
- 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/document.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 +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 +2 -2
- package/dist/entities/lead/mutation.mjs +2 -2
- package/dist/entities/media-content-type/document.cjs +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/document.mjs +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.cjs +1 -1
- 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/document.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 +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.cjs +1 -1
- 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/document.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 +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.cjs +1 -1
- 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/document.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 +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.cjs +1 -1
- 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/document.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 +16 -6
- package/dist/entities/monday-workspace/query.d.cts +15 -4
- package/dist/entities/monday-workspace/query.d.mts +15 -4
- package/dist/entities/monday-workspace/query.mjs +16 -7
- package/dist/entities/newsletter-signup/mutation.cjs +2 -2
- package/dist/entities/newsletter-signup/mutation.mjs +2 -2
- package/dist/entities/product-highlight/document.cjs +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/product-highlight/document.mjs +1 -1
- 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 +14 -4
- package/dist/entities/tag/query.d.cts +13 -3
- package/dist/entities/tag/query.d.mts +13 -3
- package/dist/entities/tag/query.mjs +14 -5
- package/dist/entities/team-member/query.cjs +25 -9
- package/dist/entities/team-member/query.d.cts +54 -7
- package/dist/entities/team-member/query.d.mts +54 -7
- package/dist/entities/team-member/query.mjs +23 -10
- package/dist/entities/teamwork/query.cjs +1 -2
- package/dist/entities/teamwork/query.mjs +1 -2
- 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.d.cts +1 -1
- package/dist/entities/up-auth/mutation.d.mts +1 -1
- package/dist/entities/up-auth/mutation.mjs +1 -1
- package/dist/entities/up-permission/document.cjs +1 -1
- 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/document.mjs +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.cjs +1 -1
- 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/document.mjs +1 -1
- package/dist/entities/up-role/query.cjs +20 -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 +18 -0
- package/dist/entities/up-user/document.cjs +1 -1
- 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/document.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 +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 +26 -3
- package/dist/entities/url-redirect/query.d.cts +54 -3
- package/dist/entities/url-redirect/query.d.mts +54 -3
- package/dist/entities/url-redirect/query.mjs +23 -3
- package/dist/entities/user-account/document.cjs +1 -1
- 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/document.mjs +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.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/document.cjs +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/document.mjs +1 -1
- 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 +33 -25
- package/dist/entities/utm-tracking-link/query.d.cts +31 -21
- package/dist/entities/utm-tracking-link/query.d.mts +31 -21
- package/dist/entities/utm-tracking-link/query.mjs +33 -26
- package/dist/fields-CRaDKzi3.d.cts +25 -0
- package/dist/{fields-BNrM_SmR.d.cts → fields-CcH10Ybe.d.cts} +4 -1
- package/dist/{fields-BNrM_SmR.d.mts → fields-CcH10Ybe.d.mts} +4 -1
- package/dist/fields-DbNgWbgS.d.mts +25 -0
- package/dist/filters/index.cjs +174 -0
- package/dist/filters/index.d.cts +110 -0
- package/dist/filters/index.d.mts +110 -0
- package/dist/filters/index.mjs +149 -0
- package/dist/identifier-CeOY3BU-.mjs +72 -0
- package/dist/identifier-Di0Gx239.cjs +175 -0
- package/dist/index-BgZbDm41.d.cts +406 -0
- package/dist/index-BgZbDm41.d.mts +406 -0
- package/dist/{index-DHHJwRNf.d.mts → index-COEq2o6s.d.mts} +8 -6
- package/dist/{index-zDQP0gcQ.d.cts → index-C_iAaSf1.d.cts} +8 -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.cjs +2 -2
- package/dist/permissions/index.d.cts +2 -2
- package/dist/permissions/index.d.mts +2 -2
- package/dist/permissions/index.mjs +2 -2
- package/dist/picklist-DMZjp2EE.cjs +29 -0
- package/dist/picklist-DayZlSoN.mjs +16 -0
- package/dist/query-79CK1qXP.d.cts +35 -0
- package/dist/query-9J5wmu64.d.mts +52 -0
- package/dist/{query-DPFgSbu5.d.cts → query-BOv5YhYc.d.cts} +16 -1
- package/dist/{query-DPFgSbu5.d.mts → query-BQkvCQDy.d.mts} +16 -1
- package/dist/query-BdS6AzQM.d.mts +122 -0
- package/dist/query-BiM_LW7b.d.cts +52 -0
- package/dist/{query-Bflh6Vd8.mjs → query-Bzv2SS5C.mjs} +16 -5
- package/dist/query-C-1Mp1j6.d.mts +57 -0
- package/dist/query-CQVW_n7R.cjs +172 -0
- package/dist/query-CbCFSDNP.d.cts +46 -0
- package/dist/query-Ctmp66KS.mjs +111 -0
- package/dist/query-DIQPfsSq.d.cts +51 -0
- package/dist/query-DQvrkaL2.d.mts +51 -0
- package/dist/query-DVIHcRpR.mjs +55 -0
- package/dist/query-Dh3ryD3m.cjs +75 -0
- package/dist/query-DlpZHcIM.d.mts +46 -0
- package/dist/{query-iF2acn2f.cjs → query-Do9f-PY3.cjs} +21 -4
- package/dist/query-Dxilctoo.d.cts +57 -0
- package/dist/query-M5dC8L8L.cjs +69 -0
- package/dist/query-PKg23GyY.d.cts +122 -0
- package/dist/query-WLdChTbq.mjs +50 -0
- package/dist/query-hXEB-Beo.cjs +86 -0
- package/dist/query-k5JTPobF.mjs +44 -0
- package/dist/query-z32wChYv.d.mts +35 -0
- package/dist/{relationships-yGO2L8BR.cjs → relationships-BiOl8YTc.cjs} +34 -4
- package/dist/{relationships-fCFeEt1G.mjs → relationships-CrME6xzN.mjs} +8 -2
- package/dist/{strapi-CbzOOgDf.mjs → strapi-BC-FAeFs.mjs} +12 -0
- package/dist/{strapi-So9y0Azv.cjs → strapi-DmXh0tey.cjs} +12 -0
- package/dist/string-By4lqNB3.cjs +53 -0
- package/dist/string-CHEFvHQa.mjs +36 -0
- package/dist/utilities/index.cjs +1 -1
- package/dist/utilities/index.d.cts +2 -2
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +1 -1
- package/dist/validators/index.cjs +5 -5
- package/dist/validators/index.mjs +5 -5
- package/package.json +15 -2
- package/dist/strapi-B79JabkQ.cjs +0 -34
- package/dist/strapi-BgfOZjWn.mjs +0 -9
- package/dist/{utm-B6km5JHd.mjs → utm-Bt8jPpRI.mjs} +1 -1
- package/dist/{utm-DxODH4Ry.cjs → utm-Dt4mu8AU.cjs} +1 -1
|
@@ -15,6 +15,7 @@ declare const CLIENT_ENTITY_PERMISSIONS: {
|
|
|
15
15
|
readonly "client-content-pillar": readonly ["list", "create", "read", "update", "delete"];
|
|
16
16
|
readonly "client-report": readonly ["list", "create", "read", "update", "delete"];
|
|
17
17
|
readonly "client-styleguide": readonly ["list", "create", "read", "update", "delete"];
|
|
18
|
+
readonly "client-email": readonly ["list", "create", "read", "update", "delete"];
|
|
18
19
|
readonly "monday-workspace": readonly ["list", "create", "read", "update", "delete"];
|
|
19
20
|
readonly "utm-tracking-link": readonly ["list", "create", "read", "update", "delete"];
|
|
20
21
|
readonly gcflytour: readonly ["list", "create", "read", "update", "delete"];
|
|
@@ -28,7 +29,9 @@ declare const CLIENT_ENTITY_KEYS: ClientEntityKey[];
|
|
|
28
29
|
declare const CLIENT_ENTITY_SCOPES: ClientEntityScope[];
|
|
29
30
|
//#endregion
|
|
30
31
|
//#region src/entities/client-user/fields.d.ts
|
|
32
|
+
declare const ClientUserScope: v.PicklistSchema<ClientEntityScope[], undefined>;
|
|
33
|
+
type ClientUserScope = v.InferOutput<typeof ClientUserScope>;
|
|
31
34
|
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
35
|
type ClientUserScopes = v.InferOutput<typeof ClientUserScopes>;
|
|
33
36
|
//#endregion
|
|
34
|
-
export {
|
|
37
|
+
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 { E as StrapiStrictFilterObjectSchema } from "./index-BgZbDm41.mjs";
|
|
2
|
+
import { c as ClientEntityScope } from "./fields-CcH10Ybe.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 };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_string = require("../string-By4lqNB3.cjs");
|
|
3
|
+
const require_boolean = require("../boolean-BwqaNE9c.cjs");
|
|
4
|
+
const require_identifier = require("../identifier-Di0Gx239.cjs");
|
|
5
|
+
const require_picklist = require("../picklist-DMZjp2EE.cjs");
|
|
6
|
+
//#region src/filters/constants.ts
|
|
7
|
+
const STRAPI_FILTER_OPERATORS = {
|
|
8
|
+
$eq: {
|
|
9
|
+
type: "comparison",
|
|
10
|
+
valueType: [
|
|
11
|
+
"string",
|
|
12
|
+
"number",
|
|
13
|
+
"boolean",
|
|
14
|
+
"date",
|
|
15
|
+
"datetime",
|
|
16
|
+
"picklist"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
$ne: {
|
|
20
|
+
type: "comparison",
|
|
21
|
+
valueType: [
|
|
22
|
+
"string",
|
|
23
|
+
"number",
|
|
24
|
+
"boolean",
|
|
25
|
+
"date",
|
|
26
|
+
"datetime",
|
|
27
|
+
"picklist"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
$eqi: {
|
|
31
|
+
type: "comparison",
|
|
32
|
+
valueType: ["string"]
|
|
33
|
+
},
|
|
34
|
+
$nei: {
|
|
35
|
+
type: "comparison",
|
|
36
|
+
valueType: ["string"]
|
|
37
|
+
},
|
|
38
|
+
$gt: {
|
|
39
|
+
type: "comparison",
|
|
40
|
+
valueType: [
|
|
41
|
+
"number",
|
|
42
|
+
"date",
|
|
43
|
+
"datetime"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
$gte: {
|
|
47
|
+
type: "comparison",
|
|
48
|
+
valueType: [
|
|
49
|
+
"number",
|
|
50
|
+
"date",
|
|
51
|
+
"datetime"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
$lt: {
|
|
55
|
+
type: "comparison",
|
|
56
|
+
valueType: [
|
|
57
|
+
"number",
|
|
58
|
+
"date",
|
|
59
|
+
"datetime"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
$lte: {
|
|
63
|
+
type: "comparison",
|
|
64
|
+
valueType: [
|
|
65
|
+
"number",
|
|
66
|
+
"date",
|
|
67
|
+
"datetime"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
$contains: {
|
|
71
|
+
type: "string",
|
|
72
|
+
valueType: ["string"]
|
|
73
|
+
},
|
|
74
|
+
$containsi: {
|
|
75
|
+
type: "string",
|
|
76
|
+
valueType: ["string"]
|
|
77
|
+
},
|
|
78
|
+
$endsWith: {
|
|
79
|
+
type: "string",
|
|
80
|
+
valueType: ["string"]
|
|
81
|
+
},
|
|
82
|
+
$endsWithi: {
|
|
83
|
+
type: "string",
|
|
84
|
+
valueType: ["string"]
|
|
85
|
+
},
|
|
86
|
+
$notContains: {
|
|
87
|
+
type: "string",
|
|
88
|
+
valueType: ["string"]
|
|
89
|
+
},
|
|
90
|
+
$notContainsi: {
|
|
91
|
+
type: "string",
|
|
92
|
+
valueType: ["string"]
|
|
93
|
+
},
|
|
94
|
+
$startsWith: {
|
|
95
|
+
type: "string",
|
|
96
|
+
valueType: ["string"]
|
|
97
|
+
},
|
|
98
|
+
$startsWithi: {
|
|
99
|
+
type: "string",
|
|
100
|
+
valueType: ["string"]
|
|
101
|
+
},
|
|
102
|
+
$in: {
|
|
103
|
+
type: "array",
|
|
104
|
+
valueType: [
|
|
105
|
+
"string",
|
|
106
|
+
"number",
|
|
107
|
+
"date",
|
|
108
|
+
"picklist"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
$notIn: {
|
|
112
|
+
type: "array",
|
|
113
|
+
valueType: [
|
|
114
|
+
"string",
|
|
115
|
+
"number",
|
|
116
|
+
"date",
|
|
117
|
+
"picklist"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
$between: {
|
|
121
|
+
type: "array",
|
|
122
|
+
valueType: [
|
|
123
|
+
"number",
|
|
124
|
+
"date",
|
|
125
|
+
"datetime"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
$notNull: {
|
|
129
|
+
type: "null",
|
|
130
|
+
valueType: ["nullable"]
|
|
131
|
+
},
|
|
132
|
+
$null: {
|
|
133
|
+
type: "null",
|
|
134
|
+
valueType: ["nullable"]
|
|
135
|
+
},
|
|
136
|
+
$and: {
|
|
137
|
+
type: "logical",
|
|
138
|
+
valueType: ["join"]
|
|
139
|
+
},
|
|
140
|
+
$not: {
|
|
141
|
+
type: "logical",
|
|
142
|
+
valueType: ["join"]
|
|
143
|
+
},
|
|
144
|
+
$or: {
|
|
145
|
+
type: "logical",
|
|
146
|
+
valueType: ["join"]
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
exports.BooleanFilter = require_boolean.BooleanFilter;
|
|
151
|
+
exports.BooleanFilterValue = require_boolean.BooleanFilterValue;
|
|
152
|
+
exports.DateFilter = require_identifier.DateFilter;
|
|
153
|
+
exports.DateFilterValue = require_identifier.DateFilterValue;
|
|
154
|
+
exports.DateTimeFilter = require_identifier.DateTimeFilter;
|
|
155
|
+
exports.DateTimeFilterValue = require_identifier.DateTimeFilterValue;
|
|
156
|
+
exports.DocumentIdFilter = require_identifier.DocumentIdFilter;
|
|
157
|
+
exports.EmailFilter = require_identifier.EmailFilter;
|
|
158
|
+
exports.ExactStringFilter = require_string.ExactStringFilter;
|
|
159
|
+
exports.IdFilter = require_identifier.IdFilter;
|
|
160
|
+
exports.IdFilterValue = require_identifier.IdFilterValue;
|
|
161
|
+
exports.IntegerFilter = require_identifier.IntegerFilter;
|
|
162
|
+
exports.IntegerFilterValue = require_identifier.IntegerFilterValue;
|
|
163
|
+
exports.LongStringFilter = require_string.LongStringFilter;
|
|
164
|
+
exports.NUMBER_STRING_PATTERN = require_identifier.NUMBER_STRING_PATTERN;
|
|
165
|
+
exports.NumberFilter = require_identifier.NumberFilter;
|
|
166
|
+
exports.NumberFilterValue = require_identifier.NumberFilterValue;
|
|
167
|
+
exports.STRAPI_FILTER_OPERATORS = STRAPI_FILTER_OPERATORS;
|
|
168
|
+
exports.SlugFilter = require_identifier.SlugFilter;
|
|
169
|
+
exports.StringFilter = require_string.StringFilter;
|
|
170
|
+
exports.TimeFilter = require_identifier.TimeFilter;
|
|
171
|
+
exports.TimeFilterValue = require_identifier.TimeFilterValue;
|
|
172
|
+
exports.UrlFilter = require_identifier.UrlFilter;
|
|
173
|
+
exports.createPicklistArrayFilter = require_picklist.createPicklistArrayFilter;
|
|
174
|
+
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-BgZbDm41.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-BgZbDm41.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 };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { n as LongStringFilter, r as StringFilter, t as ExactStringFilter } from "../string-CHEFvHQa.mjs";
|
|
2
|
+
import { n as BooleanFilterValue, t as BooleanFilter } from "../boolean-cJxcC8gC.mjs";
|
|
3
|
+
import { _ as TimeFilterValue, a as SlugFilter, c as IntegerFilterValue, d as NumberFilterValue, f as DateFilter, g as TimeFilter, h as DateTimeFilterValue, i as IdFilterValue, l as NUMBER_STRING_PATTERN, m as DateTimeFilter, n as EmailFilter, o as UrlFilter, p as DateFilterValue, r as IdFilter, s as IntegerFilter, t as DocumentIdFilter, u as NumberFilter } from "../identifier-CeOY3BU-.mjs";
|
|
4
|
+
import { n as createPicklistFilter, t as createPicklistArrayFilter } from "../picklist-DayZlSoN.mjs";
|
|
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
|
+
export { BooleanFilter, BooleanFilterValue, DateFilter, DateFilterValue, DateTimeFilter, DateTimeFilterValue, DocumentIdFilter, EmailFilter, ExactStringFilter, IdFilter, IdFilterValue, IntegerFilter, IntegerFilterValue, LongStringFilter, NUMBER_STRING_PATTERN, NumberFilter, NumberFilterValue, STRAPI_FILTER_OPERATORS, SlugFilter, StringFilter, TimeFilter, TimeFilterValue, UrlFilter, createPicklistArrayFilter, createPicklistFilter };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { c as createStrapiOrderedComparisonOperatorEntries, i as createStrapiFieldOperatorSchema, n as createStrapiArrayMembershipOperatorEntries, o as createStrapiCaseInsensitiveEqualityOperatorEntries, r as createStrapiMembershipOperatorEntries, s as createStrapiEqualityOperatorEntries, t as StrapiNullOperatorEntries } from "./null-operators-DvwH8j8n.mjs";
|
|
2
|
+
import { o as AssociateOneEntity } from "./relationships-CrME6xzN.mjs";
|
|
3
|
+
import { t as VStringEmail } from "./email-FSLftR8P.mjs";
|
|
4
|
+
import { t as VStringSlug } from "./slug-By9EotXj.mjs";
|
|
5
|
+
import { t as VStringUrl } from "./urls-BP0rQmE5.mjs";
|
|
6
|
+
import * as v from "valibot";
|
|
7
|
+
//#region src/filters/generics/date-time.ts
|
|
8
|
+
const DATE_PART_PATTERN = /^\d{4}-\d{2}-\d{2}/;
|
|
9
|
+
const TIME_PATTERN = /^\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?$/;
|
|
10
|
+
const isValidDateInput = (input) => DATE_PART_PATTERN.test(input) && !Number.isNaN(Date.parse(input));
|
|
11
|
+
const isValidTimestampInput = (input) => !Number.isNaN(Date.parse(input)) || /^\d+$/.test(input);
|
|
12
|
+
const normalizeDate = (input) => input.slice(0, 10);
|
|
13
|
+
const normalizeTime = (input) => input;
|
|
14
|
+
const normalizeTimestamp = (input) => {
|
|
15
|
+
return new Date(input).toISOString();
|
|
16
|
+
};
|
|
17
|
+
const DateFilterValue = v.pipe(v.union([v.pipe(v.string(), v.trim(), v.check(isValidDateInput))]), v.transform(normalizeDate));
|
|
18
|
+
const TimeFilterValue = v.pipe(v.union([v.pipe(v.string(), v.trim(), v.regex(TIME_PATTERN))]), v.transform(normalizeTime));
|
|
19
|
+
const DateTimeFilterValue = v.pipe(v.union([v.pipe(v.string(), v.trim(), v.check(isValidTimestampInput))]), v.transform(normalizeTimestamp));
|
|
20
|
+
const DateFilter = createStrapiFieldOperatorSchema({
|
|
21
|
+
...createStrapiEqualityOperatorEntries(DateFilterValue),
|
|
22
|
+
...createStrapiOrderedComparisonOperatorEntries(DateFilterValue),
|
|
23
|
+
...createStrapiMembershipOperatorEntries(DateFilterValue),
|
|
24
|
+
...StrapiNullOperatorEntries
|
|
25
|
+
});
|
|
26
|
+
const TimeFilter = createStrapiFieldOperatorSchema({
|
|
27
|
+
...createStrapiEqualityOperatorEntries(TimeFilterValue),
|
|
28
|
+
...createStrapiOrderedComparisonOperatorEntries(TimeFilterValue),
|
|
29
|
+
...createStrapiMembershipOperatorEntries(TimeFilterValue),
|
|
30
|
+
...StrapiNullOperatorEntries
|
|
31
|
+
});
|
|
32
|
+
const DateTimeFilter = createStrapiFieldOperatorSchema({
|
|
33
|
+
...createStrapiEqualityOperatorEntries(DateTimeFilterValue),
|
|
34
|
+
...createStrapiOrderedComparisonOperatorEntries(DateTimeFilterValue),
|
|
35
|
+
...createStrapiMembershipOperatorEntries(DateTimeFilterValue),
|
|
36
|
+
...StrapiNullOperatorEntries
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/filters/generics/number.ts
|
|
40
|
+
const NUMBER_STRING_PATTERN = /^-?(?:\d+|\d*\.\d+)$/;
|
|
41
|
+
const NumberFilterValue = v.pipe(v.union([v.number()]), v.finite());
|
|
42
|
+
const IntegerFilterValue = v.pipe(NumberFilterValue, v.integer());
|
|
43
|
+
const NumberFilter = createStrapiFieldOperatorSchema({
|
|
44
|
+
...createStrapiEqualityOperatorEntries(NumberFilterValue),
|
|
45
|
+
...createStrapiOrderedComparisonOperatorEntries(NumberFilterValue),
|
|
46
|
+
...createStrapiMembershipOperatorEntries(NumberFilterValue),
|
|
47
|
+
...StrapiNullOperatorEntries
|
|
48
|
+
});
|
|
49
|
+
const IntegerFilter = createStrapiFieldOperatorSchema({
|
|
50
|
+
...createStrapiEqualityOperatorEntries(IntegerFilterValue),
|
|
51
|
+
...createStrapiOrderedComparisonOperatorEntries(IntegerFilterValue),
|
|
52
|
+
...createStrapiMembershipOperatorEntries(IntegerFilterValue),
|
|
53
|
+
...StrapiNullOperatorEntries
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/filters/generics/identifier.ts
|
|
57
|
+
const IdFilterValue = v.pipe(v.union([v.number(), v.pipe(v.string(), v.trim(), v.regex(NUMBER_STRING_PATTERN))]));
|
|
58
|
+
const IdFilter = createStrapiFieldOperatorSchema({
|
|
59
|
+
...createStrapiEqualityOperatorEntries(IdFilterValue),
|
|
60
|
+
...createStrapiArrayMembershipOperatorEntries(IdFilterValue)
|
|
61
|
+
});
|
|
62
|
+
const createExactIdentifierFilter = (value) => createStrapiFieldOperatorSchema({
|
|
63
|
+
...createStrapiEqualityOperatorEntries(value),
|
|
64
|
+
...createStrapiCaseInsensitiveEqualityOperatorEntries(value),
|
|
65
|
+
...createStrapiArrayMembershipOperatorEntries(value)
|
|
66
|
+
});
|
|
67
|
+
const DocumentIdFilter = createExactIdentifierFilter(AssociateOneEntity);
|
|
68
|
+
const SlugFilter = createExactIdentifierFilter(VStringSlug());
|
|
69
|
+
const EmailFilter = createExactIdentifierFilter(VStringEmail());
|
|
70
|
+
const UrlFilter = createExactIdentifierFilter(VStringUrl());
|
|
71
|
+
//#endregion
|
|
72
|
+
export { TimeFilterValue as _, SlugFilter as a, IntegerFilterValue as c, NumberFilterValue as d, DateFilter as f, TimeFilter as g, DateTimeFilterValue as h, IdFilterValue as i, NUMBER_STRING_PATTERN as l, DateTimeFilter as m, EmailFilter as n, UrlFilter as o, DateFilterValue as p, IdFilter as r, IntegerFilter as s, DocumentIdFilter as t, NumberFilter as u };
|