@getcommunity/gc-validators 0.0.271-alpha.25 → 0.0.271-alpha.27
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 +9 -27
- package/dist/base/index.d.cts +2 -2
- package/dist/base/index.d.mts +4 -4
- package/dist/base/index.mjs +5 -5
- package/dist/components/blocks/index.cjs +5 -4
- package/dist/components/blocks/index.d.cts +1 -1
- package/dist/components/blocks/index.d.mts +1 -1
- package/dist/components/blocks/index.mjs +5 -4
- package/dist/components/brand/index.cjs +3 -2
- package/dist/components/brand/index.d.cts +1 -1
- package/dist/components/brand/index.d.mts +1 -1
- package/dist/components/brand/index.mjs +3 -2
- package/dist/components/forms/index.cjs +2 -1
- package/dist/components/forms/index.d.cts +280 -280
- package/dist/components/forms/index.d.mts +280 -280
- package/dist/components/forms/index.mjs +2 -1
- package/dist/components/shared/index.cjs +5 -4
- package/dist/components/shared/index.d.cts +1 -1
- package/dist/components/shared/index.d.mts +1 -1
- package/dist/components/shared/index.mjs +5 -4
- package/dist/components/slideshow/index.d.cts +280 -280
- package/dist/components/slideshow/index.d.mts +280 -280
- package/dist/components/utm/index.d.mts +1 -1
- package/dist/constants/index.cjs +45 -43
- package/dist/constants/index.mjs +4 -2
- package/dist/{document-TlMeVEGy.d.cts → document-3h6g5Qqr.d.cts} +1 -1
- package/dist/{document-DjM6F56Q.cjs → document-AqtoEbX8.cjs} +19 -24
- package/dist/{document-aEa-gTmH.mjs → document-BCbxKqGE.mjs} +20 -19
- package/dist/{document-kvIqz0p6.mjs → document-BWso8VC7.mjs} +62 -56
- package/dist/{document-CwIvc2p7.cjs → document-DJJFS5o8.cjs} +2 -1
- package/dist/{document-CDavjuJ-.mjs → document-DRyRy2Mw.mjs} +2 -1
- package/dist/{document-CAkRm1Y_.d.mts → document-DqE9ISOk.d.mts} +2 -2
- package/dist/{document-DOVZwQRq.cjs → document-DwkycUz9.cjs} +74 -62
- package/dist/email-ByTEdUjg.cjs +13 -0
- package/dist/email-Cnyi5Neo.mjs +6 -0
- package/dist/entities/audit-log/index.cjs +44 -41
- package/dist/entities/audit-log/index.d.cts +3 -2
- package/dist/entities/audit-log/index.d.mts +4 -3
- package/dist/entities/audit-log/index.mjs +6 -3
- package/dist/entities/blog-page/index.d.cts +1 -1
- package/dist/entities/blog-page/index.d.mts +1 -1
- package/dist/entities/blog-post/index.cjs +10 -9
- package/dist/entities/blog-post/index.d.cts +1 -1
- package/dist/entities/blog-post/index.d.mts +1 -1
- package/dist/entities/blog-post/index.mjs +4 -3
- package/dist/entities/careers-page/index.d.cts +1 -1
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.cjs +15 -13
- package/dist/entities/category/index.d.cts +7 -6
- package/dist/entities/category/index.d.mts +7 -6
- package/dist/entities/category/index.mjs +11 -9
- package/dist/entities/client/index.cjs +23 -22
- package/dist/entities/client/index.d.cts +1 -1
- package/dist/entities/client/index.d.mts +1 -1
- package/dist/entities/client/index.mjs +16 -15
- package/dist/entities/client-content-pillar/index.cjs +14 -13
- package/dist/entities/client-content-pillar/index.d.cts +1 -1
- package/dist/entities/client-content-pillar/index.d.mts +1 -1
- package/dist/entities/client-content-pillar/index.mjs +12 -11
- package/dist/entities/client-media-platform/index.cjs +18 -16
- package/dist/entities/client-media-platform/index.d.cts +1 -1
- package/dist/entities/client-media-platform/index.d.mts +1 -1
- package/dist/entities/client-media-platform/index.mjs +13 -11
- package/dist/entities/client-project/index.cjs +47 -41
- package/dist/entities/client-project/index.d.cts +1 -1
- package/dist/entities/client-project/index.d.mts +1 -1
- package/dist/entities/client-project/index.mjs +11 -5
- package/dist/entities/client-report/index.cjs +18 -16
- package/dist/entities/client-report/index.d.cts +1 -1
- package/dist/entities/client-report/index.d.mts +1 -1
- package/dist/entities/client-report/index.mjs +14 -12
- package/dist/entities/client-styleguide/index.cjs +14 -13
- package/dist/entities/client-styleguide/index.d.cts +1 -1
- package/dist/entities/client-styleguide/index.d.mts +1 -1
- package/dist/entities/client-styleguide/index.mjs +11 -10
- package/dist/entities/client-user/index.cjs +7 -7
- package/dist/entities/client-user/index.d.cts +1 -1
- package/dist/entities/client-user/index.d.mts +1 -1
- package/dist/entities/client-user/index.mjs +5 -5
- package/dist/entities/comment/index.cjs +18 -16
- package/dist/entities/comment/index.d.cts +1 -1
- package/dist/entities/comment/index.d.mts +1 -1
- package/dist/entities/comment/index.mjs +12 -10
- package/dist/entities/content-pillar/index.cjs +20 -18
- package/dist/entities/content-pillar/index.d.cts +1 -1
- package/dist/entities/content-pillar/index.d.mts +1 -1
- package/dist/entities/content-pillar/index.mjs +15 -13
- package/dist/entities/faq-page/index.cjs +2 -1
- package/dist/entities/faq-page/index.d.cts +2 -2
- package/dist/entities/faq-page/index.d.mts +3 -3
- package/dist/entities/faq-page/index.mjs +2 -1
- package/dist/entities/formatter/index.d.cts +5 -5
- package/dist/entities/formatter/index.d.mts +5 -5
- package/dist/entities/gcflytour/index.cjs +21 -19
- package/dist/entities/gcflytour/index.d.cts +1 -1
- package/dist/entities/gcflytour/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.mjs +17 -15
- package/dist/entities/gcflytour-snap/index.cjs +20 -18
- package/dist/entities/gcflytour-snap/index.d.cts +1 -1
- package/dist/entities/gcflytour-snap/index.d.mts +1 -1
- package/dist/entities/gcflytour-snap/index.mjs +16 -14
- package/dist/entities/landing-page/index.d.cts +2 -2
- package/dist/entities/landing-page/index.d.mts +3 -3
- package/dist/entities/lead/index.cjs +25 -23
- package/dist/entities/lead/index.mjs +15 -13
- package/dist/entities/media-content-type/index.cjs +21 -19
- package/dist/entities/media-content-type/index.d.cts +7 -6
- package/dist/entities/media-content-type/index.d.mts +7 -6
- package/dist/entities/media-content-type/index.mjs +17 -15
- package/dist/entities/media-creative-format/index.cjs +19 -17
- package/dist/entities/media-creative-format/index.d.cts +7 -6
- package/dist/entities/media-creative-format/index.d.mts +7 -6
- package/dist/entities/media-creative-format/index.mjs +15 -13
- package/dist/entities/media-medium/index.cjs +19 -17
- package/dist/entities/media-medium/index.d.cts +7 -6
- package/dist/entities/media-medium/index.d.mts +7 -6
- package/dist/entities/media-medium/index.mjs +15 -13
- package/dist/entities/media-platform/index.cjs +27 -24
- package/dist/entities/media-platform/index.d.cts +1 -1
- package/dist/entities/media-platform/index.d.mts +1 -1
- package/dist/entities/media-platform/index.mjs +23 -20
- package/dist/entities/monday-workspace/index.cjs +17 -15
- package/dist/entities/monday-workspace/index.d.cts +1 -1
- package/dist/entities/monday-workspace/index.d.mts +1 -1
- package/dist/entities/monday-workspace/index.mjs +11 -9
- package/dist/entities/newsletter-signup/index.cjs +25 -23
- package/dist/entities/newsletter-signup/index.mjs +13 -11
- package/dist/entities/policy-page/index.cjs +2 -1
- package/dist/entities/policy-page/index.d.cts +1 -1
- package/dist/entities/policy-page/index.d.mts +2 -2
- package/dist/entities/policy-page/index.mjs +2 -1
- package/dist/entities/product/index.cjs +1 -1
- package/dist/entities/product/index.d.cts +1 -1
- package/dist/entities/product/index.d.mts +1 -1
- package/dist/entities/product/index.mjs +1 -1
- package/dist/entities/product-highlight/index.cjs +1 -1
- package/dist/entities/product-highlight/index.d.cts +1 -1
- package/dist/entities/product-highlight/index.d.mts +1 -1
- package/dist/entities/product-highlight/index.mjs +1 -1
- package/dist/entities/resume/index.cjs +43 -40
- package/dist/entities/resume/index.mjs +16 -13
- package/dist/entities/sharpspring/index.cjs +9 -8
- package/dist/entities/sharpspring/index.mjs +6 -5
- package/dist/entities/tag/index.cjs +15 -13
- package/dist/entities/tag/index.d.cts +6 -5
- package/dist/entities/tag/index.d.mts +7 -6
- package/dist/entities/tag/index.mjs +11 -9
- package/dist/entities/team-member/index.cjs +11 -9
- package/dist/entities/team-member/index.d.cts +2 -2
- package/dist/entities/team-member/index.d.mts +2 -2
- package/dist/entities/team-member/index.mjs +7 -4
- package/dist/entities/team-page/index.d.cts +1 -1
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/teamwork/index.cjs +12 -11
- package/dist/entities/teamwork/index.d.mts +1 -1
- package/dist/entities/teamwork/index.mjs +7 -6
- package/dist/entities/trend/index.cjs +2 -2
- package/dist/entities/trend/index.d.cts +1 -1
- package/dist/entities/trend/index.d.mts +1 -1
- package/dist/entities/trend/index.mjs +2 -2
- package/dist/entities/up-auth/index.cjs +18 -15
- package/dist/entities/up-auth/index.d.cts +1 -1
- package/dist/entities/up-auth/index.d.mts +1 -1
- package/dist/entities/up-auth/index.mjs +6 -3
- package/dist/entities/up-permission/index.cjs +1 -1
- package/dist/entities/up-permission/index.d.cts +1 -1
- package/dist/entities/up-permission/index.d.mts +1 -1
- package/dist/entities/up-permission/index.mjs +1 -1
- package/dist/entities/up-role/index.cjs +1 -1
- package/dist/entities/up-role/index.d.cts +1 -1
- package/dist/entities/up-role/index.d.mts +1 -1
- package/dist/entities/up-role/index.mjs +1 -1
- package/dist/entities/up-user/index.cjs +2 -1
- package/dist/entities/up-user/index.d.cts +2 -2
- package/dist/entities/up-user/index.d.mts +2 -2
- package/dist/entities/up-user/index.mjs +2 -2
- package/dist/entities/upload/index.cjs +11 -11
- package/dist/entities/upload/index.mjs +7 -7
- package/dist/entities/url-redirect/index.cjs +5 -4
- package/dist/entities/url-redirect/index.d.cts +3 -2
- package/dist/entities/url-redirect/index.d.mts +3 -2
- package/dist/entities/url-redirect/index.mjs +4 -3
- package/dist/entities/user-account/index.cjs +10 -11
- package/dist/entities/user-account/index.d.cts +2 -2
- package/dist/entities/user-account/index.d.mts +2 -2
- package/dist/entities/user-account/index.mjs +10 -11
- package/dist/entities/utm-link-builder/index.cjs +30 -36
- package/dist/entities/utm-link-builder/index.d.cts +6 -6
- package/dist/entities/utm-link-builder/index.d.mts +6 -6
- package/dist/entities/utm-link-builder/index.mjs +22 -28
- package/dist/entities/utm-tracking-link/index.cjs +110 -104
- package/dist/entities/utm-tracking-link/index.d.cts +2 -2
- package/dist/entities/utm-tracking-link/index.d.mts +2 -2
- package/dist/entities/utm-tracking-link/index.mjs +68 -68
- package/dist/error-messages-9ZhRqNGW.mjs +10 -0
- package/dist/error-messages-C0I1kOur.cjs +51 -0
- package/dist/generators/index.cjs +231 -0
- package/dist/generators/index.d.cts +19 -0
- package/dist/generators/index.d.mts +19 -0
- package/dist/generators/index.mjs +226 -0
- package/dist/index-BOxQLeAK.d.cts +317 -0
- package/dist/index-BSYaAtme.d.mts +486 -0
- package/dist/index-BT8Pa9XY.d.mts +317 -0
- package/dist/{index-DXo7B4ng.d.mts → index-Bjjp-2Sa.d.mts} +20 -99
- package/dist/{index-DXUuI-fJ.d.cts → index-C1GoH-4v.d.cts} +91 -76
- package/dist/{index-D_YPjLxv.d.cts → index-CBW5QmNu.d.cts} +4 -3
- package/dist/index-COpLbpQC.d.cts +486 -0
- package/dist/{index-DEm89ERm.d.mts → index-ClQOYhKi.d.mts} +94 -79
- package/dist/index-Cqmmzi2g.d.mts +944 -0
- package/dist/{index-B_L_83Q2.d.cts → index-D7QXaSOY.d.cts} +19 -98
- package/dist/index-DG_Lwaa7.d.cts +1324 -0
- package/dist/{index-D3KnOYr7.d.mts → index-DKFW5ay8.d.mts} +4 -3
- package/dist/index-Dvu63a8_.d.mts +1324 -0
- package/dist/index-WN2TBKki.d.cts +944 -0
- package/dist/limits-CKGuEuKA.mjs +37 -0
- package/dist/{regex-Cl5goNwp.cjs → limits-CW6iJ7kB.cjs} +0 -102
- package/dist/number-Bt4nZKCU.cjs +19 -0
- package/dist/number-OMFRufFt.mjs +6 -0
- package/dist/pagination-D5l_UjyM.mjs +7 -0
- package/dist/pagination-DWZDPzR4.cjs +20 -0
- package/dist/permissions/index.cjs +2 -2
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +2 -2
- package/dist/phone-C9TNVDm_.mjs +8 -0
- package/dist/phone-D_ZLG1Qv.cjs +21 -0
- package/dist/{query-DHY-nlUQ.mjs → query-BR5Ze6T2.mjs} +7 -11
- package/dist/{query-DelNcssC.cjs → query-qQ_HLlxx.cjs} +13 -29
- package/dist/regex-BEFTMiHO.cjs +51 -0
- package/dist/regex-pSdcbWzV.mjs +10 -0
- package/dist/relation-Bd-xUcj8.cjs +33 -0
- package/dist/relation-DMhLjp7K.mjs +8 -0
- package/dist/{relationships-HTBNe0F-.cjs → relationships-DjHwYd4r.cjs} +23 -9
- package/dist/{relationships-C6xfgdwR.mjs → relationships-yPO5SILR.mjs} +7 -5
- package/dist/slug-BUtm1t-B.mjs +7 -0
- package/dist/slug-cWXTZEIT.cjs +14 -0
- package/dist/sort-CI87SH1y.cjs +33 -0
- package/dist/sort-D3WwshqQ.mjs +14 -0
- package/dist/{strapi-DvyAfgFF.mjs → strapi-B2cNPAao.mjs} +1 -1
- package/dist/{strapi-QFDWi4vD.cjs → strapi-RlhF30B7.cjs} +1 -1
- package/dist/string-BHHnD2Qu.mjs +42 -0
- package/dist/string-Yn-6xiAZ.cjs +97 -0
- package/dist/urls-UOvhCu0z.mjs +14 -0
- package/dist/urls-og5upHgL.cjs +27 -0
- package/dist/utilities/index.cjs +1 -1
- package/dist/utilities/index.d.cts +6 -6
- package/dist/utilities/index.d.mts +6 -6
- package/dist/utilities/index.mjs +1 -1
- package/dist/utm-BqkYlpua.cjs +47 -0
- package/dist/utm-ZUwmBoR2.mjs +28 -0
- package/dist/validators/index.cjs +36 -0
- package/dist/validators/index.d.cts +94 -0
- package/dist/validators/index.d.mts +94 -0
- package/dist/validators/index.mjs +10 -0
- package/package.json +29 -2
- package/dist/index-B3VtiObV.d.mts +0 -317
- package/dist/index-BxEBUjx2.d.mts +0 -486
- package/dist/index-CQP_vcmO.d.cts +0 -317
- package/dist/index-CRoWUxGV.d.cts +0 -1324
- package/dist/index-DYSlcIkJ.d.mts +0 -945
- package/dist/index-Dmtom8iC.d.cts +0 -945
- package/dist/index-auU0DaW5.d.cts +0 -486
- package/dist/index-oCLNrzIj.d.mts +0 -1324
- package/dist/regex-BnKGcdS4.mjs +0 -55
- package/dist/validators-Bc9Is5Sr.cjs +0 -222
- package/dist/validators-P5E_3qzc.mjs +0 -95
- /package/dist/{abac-DPd9oLKR.mjs → abac-BPxkvVVy.mjs} +0 -0
- /package/dist/{abac-BeKQtxIF.cjs → abac-YYI2Ckwv.cjs} +0 -0
- /package/dist/{constants-Htf-MeCA.mjs → constants-C4cy6LoY.mjs} +0 -0
- /package/dist/{constants-f1GP2eiq.cjs → constants-D6DsS_A0.cjs} +0 -0
- /package/dist/{document-DaICHS9G.cjs → document-B4FY2KXQ.cjs} +0 -0
- /package/dist/{document-c3GNPelp.mjs → document-De-prPhc.mjs} +0 -0
- /package/dist/{document-CbE38CzE.d.mts → document-DxjJgk8X.d.mts} +0 -0
- /package/dist/{index-DLICmJ_-.d.mts → index-BSEaV9wd.d.mts} +0 -0
- /package/dist/{json-BrVkpLbC.d.mts → json--oetJLQY.d.mts} +0 -0
- /package/dist/{media-upload-DKeA1eD-.d.mts → media-upload-DBG7YyU4.d.mts} +0 -0
- /package/dist/{strapi-BDLWeEyv.mjs → strapi-CE9bz7Kc.mjs} +0 -0
- /package/dist/{strapi-C4HuWGb_.cjs → strapi-D8C1C0D7.cjs} +0 -0
|
@@ -61,11 +61,20 @@ declare const STRAPI_LINK_REL: readonly ["alternate", "author", "bookmark", "ext
|
|
|
61
61
|
declare const StrapiLinkRel: v.PicklistSchema<readonly ["alternate", "author", "bookmark", "external", "help", "license", "next", "nofollow", "noreferrer", "noopener", "prev", "search", "tag"], undefined>;
|
|
62
62
|
type StrapiLinkRel = v.InferOutput<typeof StrapiLinkRel>;
|
|
63
63
|
//#endregion
|
|
64
|
+
//#region src/base/sort.d.ts
|
|
65
|
+
type SortOrder = "ASC" | "DESC";
|
|
66
|
+
type QuerySortValue<TKey extends string> = `${TKey}:${SortOrder}`;
|
|
67
|
+
type QuerySortOutput<TKey extends string> = QuerySortValue<TKey>[] | undefined;
|
|
68
|
+
declare const createQuerySort: <const TSortKeys extends readonly [string, ...string[]]>(sortKeys: TSortKeys) => v.GenericSchema<QuerySortOutput<TSortKeys[number]>>;
|
|
69
|
+
declare const ENTITY_SORT_KEYS: readonly ["id", "createdAt", "updatedAt"];
|
|
70
|
+
declare const QuerySortEntities: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>;
|
|
71
|
+
type QuerySortEntities = v.InferOutput<typeof QuerySortEntities>;
|
|
72
|
+
//#endregion
|
|
64
73
|
//#region src/base/pagination.d.ts
|
|
65
74
|
declare const QueryStrapiPaginated: v.ObjectSchema<{
|
|
66
75
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
67
76
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
68
|
-
readonly sort: v.
|
|
77
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>;
|
|
69
78
|
}, undefined>;
|
|
70
79
|
type QueryStrapiPaginated = v.InferOutput<typeof QueryStrapiPaginated>;
|
|
71
80
|
//#endregion
|
|
@@ -81,28 +90,28 @@ type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
|
|
|
81
90
|
declare const QueryStrapiBySlug: v.ObjectSchema<{
|
|
82
91
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
83
92
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
84
|
-
readonly sort: v.
|
|
93
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>;
|
|
85
94
|
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
86
95
|
}, undefined>;
|
|
87
96
|
type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
|
|
88
97
|
declare const QueryStrapiByEmail: v.ObjectSchema<{
|
|
89
98
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
90
99
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
91
|
-
readonly sort: v.
|
|
100
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>;
|
|
92
101
|
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
93
102
|
}, undefined>;
|
|
94
103
|
type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
|
|
95
104
|
declare const QueryStrapiByPhone: v.ObjectSchema<{
|
|
96
105
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
97
106
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
98
|
-
readonly sort: v.
|
|
107
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>;
|
|
99
108
|
readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>;
|
|
100
109
|
}, undefined>;
|
|
101
110
|
type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
|
|
102
111
|
declare const QueryStrapiByName: v.ObjectSchema<{
|
|
103
112
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
104
113
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
105
|
-
readonly sort: v.
|
|
114
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>;
|
|
106
115
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
107
116
|
}, undefined>;
|
|
108
117
|
type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
@@ -110,8 +119,12 @@ type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
|
110
119
|
//#region src/base/relationships.d.ts
|
|
111
120
|
declare const SAssociateOneEntity: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
112
121
|
type SAssociateOneEntity = v.InferOutput<typeof SAssociateOneEntity>;
|
|
122
|
+
declare const SAssociateOneEntityOptional: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
123
|
+
type SAssociateOneEntityOptional = v.InferOutput<typeof SAssociateOneEntity>;
|
|
113
124
|
declare const SAssociateManyEntities: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>;
|
|
114
125
|
type SAssociateManyEntities = v.InferOutput<typeof SAssociateManyEntities>;
|
|
126
|
+
declare const SAssociateManyEntitiesOptional: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
127
|
+
type SAssociateManyEntitiesOptional = v.InferOutput<typeof SAssociateManyEntitiesOptional>;
|
|
115
128
|
declare const SQueryManyEntities: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>;
|
|
116
129
|
type SQueryManyEntities = v.InferOutput<typeof SQueryManyEntities>;
|
|
117
130
|
declare const SAssociateEntityRelationshipRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -248,11 +261,6 @@ type StrapiAttributeErrorResponse<T> = {
|
|
|
248
261
|
};
|
|
249
262
|
type StrapiErrorResult<T> = StrapiErrorResponse<T> | StrapiAttributeErrorResponse<T>;
|
|
250
263
|
//#endregion
|
|
251
|
-
//#region src/base/sort.d.ts
|
|
252
|
-
declare const ENTITY_SORT_KEYS: readonly ["id", "createdAt", "updatedAt"];
|
|
253
|
-
declare const QuerySortEntities: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
254
|
-
type QuerySortEntities = v.InferOutput<typeof QuerySortEntities>;
|
|
255
|
-
//#endregion
|
|
256
264
|
//#region src/base/strapi.d.ts
|
|
257
265
|
declare const ContentStatus: v.PicklistSchema<readonly ["draft", "published"], undefined>;
|
|
258
266
|
type ContentStatus = v.InferOutput<typeof ContentStatus>;
|
|
@@ -289,91 +297,4 @@ declare const STRAPI_ICON_NAME: readonly ["link", "email", "phone", "facebook",
|
|
|
289
297
|
declare const StrapiIconName: v.NullableSchema<v.PicklistSchema<readonly ["link", "email", "phone", "facebook", "instagram", "linkedin", "tiktok", "pinterest", "twitter"], undefined>, undefined>;
|
|
290
298
|
type StrapiIconName = v.InferOutput<typeof StrapiIconName>;
|
|
291
299
|
//#endregion
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Basic number validator
|
|
295
|
-
*/
|
|
296
|
-
declare const VNumberNullable: () => v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
297
|
-
declare const VIntegerNullable: () => v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
298
|
-
/**
|
|
299
|
-
* Basic string validator with trim and min length
|
|
300
|
-
*/
|
|
301
|
-
declare const VString: (minLength?: number) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>;
|
|
302
|
-
/**
|
|
303
|
-
* String validator with trim, min length, and max length (Short)
|
|
304
|
-
*/
|
|
305
|
-
declare const VStringShort: (minLength?: number) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
306
|
-
/**
|
|
307
|
-
* String validator with trim, min length, and max length (Long)
|
|
308
|
-
*/
|
|
309
|
-
declare const VStringLong: (minLength?: number) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 5000, undefined>]>;
|
|
310
|
-
/**
|
|
311
|
-
* String validator with trim, and max length
|
|
312
|
-
*/
|
|
313
|
-
declare const VStringMax: (maxLength?: number) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
314
|
-
/**
|
|
315
|
-
* String validator with trim, and max length
|
|
316
|
-
*/
|
|
317
|
-
declare const VStringMaxRegex: (maxLength: number | undefined, pattern: RegExp, message: string) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
318
|
-
/**
|
|
319
|
-
* String validator with trim, min length, and max length
|
|
320
|
-
*/
|
|
321
|
-
declare const VStringMinMax: (minLength?: number, maxLength?: number) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
322
|
-
/**
|
|
323
|
-
* String validator with trim, min length, max length, and regex pattern
|
|
324
|
-
*/
|
|
325
|
-
declare const VStringMinMaxRegex: (minLength: number | undefined, maxLength: number | undefined, pattern: RegExp, message: string) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
326
|
-
/**
|
|
327
|
-
* Optional Nullable String validator (Long)
|
|
328
|
-
*/
|
|
329
|
-
declare const VStringLongNullable: () => v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, undefined>]>, undefined>, undefined>;
|
|
330
|
-
/**
|
|
331
|
-
* Optional Nullable String validator
|
|
332
|
-
* Commonly used for optional fields that might be null in the database or API
|
|
333
|
-
*/
|
|
334
|
-
declare const VStringShortNullable: () => v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
335
|
-
/**
|
|
336
|
-
* URL Validator
|
|
337
|
-
* Checks for http/https prefix and valid URL format
|
|
338
|
-
*/
|
|
339
|
-
declare const VStringUrl: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
340
|
-
/**
|
|
341
|
-
* UTM URL Validator
|
|
342
|
-
* Checks for valid URL format that does contain utm params
|
|
343
|
-
*/
|
|
344
|
-
declare const VStringUrlUtm: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
345
|
-
/**
|
|
346
|
-
* URL no utm params Validator
|
|
347
|
-
* Checks for valid URL format that does not contain utm params
|
|
348
|
-
*/
|
|
349
|
-
declare const VStringUrlNoUtm: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please remove any query parameters from the URL.">]>;
|
|
350
|
-
/**
|
|
351
|
-
* Optional Nullable URL Validator
|
|
352
|
-
*/
|
|
353
|
-
declare const VStringUrlNullable: () => v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
354
|
-
/**
|
|
355
|
-
* Slug Validator
|
|
356
|
-
*/
|
|
357
|
-
declare const VStringSlug: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
358
|
-
/**
|
|
359
|
-
* Email Validator
|
|
360
|
-
*/
|
|
361
|
-
declare const VStringEmail: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
362
|
-
/**
|
|
363
|
-
* Phone Validator (NANP)
|
|
364
|
-
*/
|
|
365
|
-
declare const VStringPhone: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>;
|
|
366
|
-
/**
|
|
367
|
-
* Optional Nullable Phone Validator
|
|
368
|
-
*/
|
|
369
|
-
declare const VStringPhoneNullable: () => v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>, undefined>, undefined>;
|
|
370
|
-
/**
|
|
371
|
-
* Pagination Page Validator
|
|
372
|
-
*/
|
|
373
|
-
declare const VPage: () => v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
374
|
-
/**
|
|
375
|
-
* Pagination Size Validator
|
|
376
|
-
*/
|
|
377
|
-
declare const VSize: (maxSize: number) => v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
378
|
-
//#endregion
|
|
379
|
-
export { StrapiResponseMetaWithPagination as $, StrapiBgColorOptions as A, WebSafeFontDisplay as At, ValidStrapiSingleEntity as B, STRAPI_DIRECTION as C, FONT_HEADER_SIZE as Ct, STRAPI_LINK_TYPE as D, WEBSAFE_FONT_SANS as Dt, STRAPI_ICON_POSITION as E, WEBSAFE_FONT_MONO as Et, StrapiLinkType as F, BaseComponent as Ft, StrapiAttributeErrorKey as G, ENTITY_SORT_KEYS as H, StrapiTextColorOptions as I, BaseComponentId as It, StrapiErrorResponse as J, StrapiAttributeErrorResponse as K, StrapiThemeOptions as L, StrapiGapSizes as M, WebSafeFontSans as Mt, StrapiIconName as N, WebSafeFontSerif as Nt, STRAPI_TEXT_COLOR_OPTIONS as O, WEBSAFE_FONT_SERIF as Ot, StrapiIconPosition as P, BaseDocument as Pt, StrapiResponseMeta as Q, ContentStatus as R, STRAPI_BG_COLOR_OPTIONS as S, FormSelectInputOption as St, STRAPI_ICON_NAME as T, WEBSAFE_FONT_DISPLAY as Tt, QuerySortEntities as U, ValidStrapiSpecialEntity as V, StrapiAttributeErrorDetail as W, StrapiListResponse as X, StrapiErrorResult as Y, StrapiPagination as Z, VStringSlug as _, STRAPI_LINK_REL as _t, VString as a, SAssociateOneEntity as at, VStringUrlNullable as b, StrapiLinkRel as bt, VStringLongNullable as c, SSetEntityRelationshipRequest as ct, VStringMinMax as d, QueryStrapiById as dt, StrapiSingleResponse as et, VStringMinMaxRegex as f, QueryStrapiByName as ft, VStringShortNullable as g, STRAPI_LINK_REFERRER_POLICY as gt, VStringShort as h, QueryStrapiPaginated as ht, VSize as i, SAssociateManyEntities as it, StrapiDirection as j, WebSafeFontMono as jt, STRAPI_THEME_OPTIONS as k, WebSafeFont as kt, VStringMax as l, QueryStrapiByDocumentId as lt, VStringPhoneNullable as m, QueryStrapiBySlug as mt, VNumberNullable as n, SAssociateEntityPositionDocumentRequest as nt, VStringEmail as o, SEntityPosition as ot, VStringPhone as p, QueryStrapiByPhone as pt, StrapiErrorDetail as q, VPage as r, SAssociateEntityRelationshipRequest as rt, VStringLong as s, SQueryManyEntities as st, VIntegerNullable as t, SAssociateEntityPosition as tt, VStringMaxRegex as u, QueryStrapiByEmail as ut, VStringUrl as v, STRAPI_LINK_TARGET as vt, STRAPI_GAP_SIZES as w, FontHeaderSize as wt, VStringUrlUtm as x, StrapiLinkTarget as xt, VStringUrlNoUtm as y, StrapiLinkReferrerPolicy as yt, ValidStrapiCollectionEntity as z };
|
|
300
|
+
export { SortOrder as $, StrapiResponseMetaWithPagination as A, SQueryManyEntities as B, StrapiAttributeErrorResponse as C, StrapiListResponse as D, StrapiErrorResult as E, SAssociateManyEntities as F, QueryStrapiByName as G, QueryStrapiByDocumentId as H, SAssociateManyEntitiesOptional as I, QueryStrapiPaginated as J, QueryStrapiByPhone as K, SAssociateOneEntity as L, SAssociateEntityPosition as M, SAssociateEntityPositionDocumentRequest as N, StrapiPagination as O, SAssociateEntityRelationshipRequest as P, QuerySortValue as Q, SAssociateOneEntityOptional as R, StrapiAttributeErrorKey as S, StrapiErrorResponse as T, QueryStrapiByEmail as U, SSetEntityRelationshipRequest as V, QueryStrapiById as W, QuerySortEntities as X, ENTITY_SORT_KEYS as Y, QuerySortOutput as Z, ContentStatus as _, WebSafeFontSans as _t, STRAPI_ICON_POSITION as a, StrapiLinkRel as at, ValidStrapiSpecialEntity as b, BaseComponent as bt, STRAPI_THEME_OPTIONS as c, FONT_HEADER_SIZE as ct, StrapiGapSizes as d, WEBSAFE_FONT_MONO as dt, createQuerySort as et, StrapiIconName as f, WEBSAFE_FONT_SANS as ft, StrapiThemeOptions as g, WebSafeFontMono as gt, StrapiTextColorOptions as h, WebSafeFontDisplay as ht, STRAPI_ICON_NAME as i, StrapiLinkReferrerPolicy as it, StrapiSingleResponse as j, StrapiResponseMeta as k, StrapiBgColorOptions as l, FontHeaderSize as lt, StrapiLinkType as m, WebSafeFont as mt, STRAPI_DIRECTION as n, STRAPI_LINK_REL as nt, STRAPI_LINK_TYPE as o, StrapiLinkTarget as ot, StrapiIconPosition as p, WEBSAFE_FONT_SERIF as pt, QueryStrapiBySlug as q, STRAPI_GAP_SIZES as r, STRAPI_LINK_TARGET as rt, STRAPI_TEXT_COLOR_OPTIONS as s, FormSelectInputOption as st, STRAPI_BG_COLOR_OPTIONS as t, STRAPI_LINK_REFERRER_POLICY as tt, StrapiDirection as u, WEBSAFE_FONT_DISPLAY as ut, ValidStrapiCollectionEntity as v, WebSafeFontSerif as vt, StrapiErrorDetail as w, StrapiAttributeErrorDetail as x, BaseComponentId as xt, ValidStrapiSingleEntity as y, BaseDocument as yt, SEntityPosition as z };
|