@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
|
@@ -2,8 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
4
|
const require_pagination = require("../../pagination-4pZafglS.cjs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const require_limits = require("../../limits-CW6iJ7kB.cjs");
|
|
6
|
+
const require_pagination$1 = require("../../pagination-DWZDPzR4.cjs");
|
|
7
|
+
const require_sort = require("../../sort-CI87SH1y.cjs");
|
|
8
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
7
9
|
let valibot = require("valibot");
|
|
8
10
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
11
|
//#region src/entities/comment/constants.ts
|
|
@@ -32,7 +34,7 @@ const STRAPI_COMMENT_SORT_KEYS = [
|
|
|
32
34
|
//#region src/entities/comment/fields.ts
|
|
33
35
|
const CommentApprovalStatus = valibot.picklist(COMMENT_APPROVAL_STATUS_VALUES);
|
|
34
36
|
const ReportCommentReason = valibot.picklist(REPORT_COMMENT_REASON_OPTIONS);
|
|
35
|
-
const QuerySortStrapiComments =
|
|
37
|
+
const QuerySortStrapiComments = require_sort.createQuerySort(STRAPI_COMMENT_SORT_KEYS);
|
|
36
38
|
//#endregion
|
|
37
39
|
//#region src/entities/comment/document.ts
|
|
38
40
|
const CommentAuthor = valibot.object({
|
|
@@ -64,29 +66,29 @@ const CommentReportDocument = valibot.object({
|
|
|
64
66
|
//#endregion
|
|
65
67
|
//#region src/entities/comment/mutation.ts
|
|
66
68
|
const CreateCommentDocument = valibot.object({
|
|
67
|
-
relation:
|
|
68
|
-
content:
|
|
69
|
+
relation: require_string.VStringMinMax(),
|
|
70
|
+
content: require_string.VStringMinMax(1, require_limits.LIMIT_LONG_STRING_MAX_LENGTH),
|
|
69
71
|
author: valibot.object({
|
|
70
72
|
id: valibot.number(),
|
|
71
|
-
name:
|
|
73
|
+
name: require_string.VStringMinMax()
|
|
72
74
|
}),
|
|
73
75
|
threadOf: valibot.optional(valibot.number())
|
|
74
76
|
});
|
|
75
77
|
const UpdateCommentDocument = valibot.object({
|
|
76
|
-
relation:
|
|
78
|
+
relation: require_string.VStringMinMax(),
|
|
77
79
|
id: valibot.number(),
|
|
78
|
-
content:
|
|
80
|
+
content: require_string.VStringMinMax(1, require_limits.LIMIT_LONG_STRING_MAX_LENGTH),
|
|
79
81
|
author: valibot.object({ id: valibot.number() })
|
|
80
82
|
});
|
|
81
83
|
const SDeleteCommentDocument = valibot.object({
|
|
82
|
-
relation:
|
|
84
|
+
relation: require_string.VStringMinMax(),
|
|
83
85
|
id: valibot.number(),
|
|
84
86
|
author: valibot.object({ id: valibot.number() })
|
|
85
87
|
});
|
|
86
88
|
const SReportCommentDocument = valibot.object({
|
|
87
|
-
relation:
|
|
89
|
+
relation: require_string.VStringMinMax(),
|
|
88
90
|
commentId: valibot.number(),
|
|
89
|
-
content:
|
|
91
|
+
content: require_string.VStringMinMax(1, require_limits.LIMIT_LONG_STRING_MAX_LENGTH),
|
|
90
92
|
reason: valibot.picklist(REPORT_COMMENT_REASON_OPTIONS, "You must select a valid reason for reporting this comment.")
|
|
91
93
|
});
|
|
92
94
|
//#endregion
|
|
@@ -101,17 +103,17 @@ const QueryFilterStrapiComments = valibot.object({
|
|
|
101
103
|
removed: valibot.optional(valibot.object({ eq: valibot.boolean() }))
|
|
102
104
|
});
|
|
103
105
|
const QueryStrapiCommentsInHeirarchy = valibot.object({
|
|
104
|
-
relation:
|
|
106
|
+
relation: require_string.VStringMinMax(),
|
|
105
107
|
sort: QuerySortStrapiComments,
|
|
106
108
|
filters: valibot.optional(QueryFilterStrapiComments),
|
|
107
|
-
nested_levels: valibot.optional(
|
|
109
|
+
nested_levels: valibot.optional(require_pagination$1.VPage())
|
|
108
110
|
});
|
|
109
111
|
const QueryStrapiCommentsFlat = valibot.object({
|
|
110
|
-
relation:
|
|
112
|
+
relation: require_string.VStringMinMax(),
|
|
111
113
|
filters: valibot.optional(QueryFilterStrapiComments),
|
|
112
114
|
pagination: valibot.optional(valibot.object({
|
|
113
|
-
page:
|
|
114
|
-
pageSize: valibot.optional(
|
|
115
|
+
page: require_pagination$1.VPage(),
|
|
116
|
+
pageSize: valibot.optional(require_pagination$1.VSize(require_pagination.LIMIT_PAGINATION_MAX_SIZE))
|
|
115
117
|
})),
|
|
116
118
|
sort: QuerySortStrapiComments
|
|
117
119
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-
|
|
1
|
+
import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-CBW5QmNu.cjs";
|
|
2
2
|
export { COMMENT_APPROVAL_STATUS, COMMENT_APPROVAL_STATUS_VALUES, CommentApprovalStatus, CommentAuthor, CommentDocument, CommentReportDocument, CommentThread, CreateCommentDocument, QueryFilterStrapiComments, QuerySortStrapiComments, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, REPORT_COMMENT_REASON, REPORT_COMMENT_REASON_OPTIONS, ReportCommentReason, SDeleteCommentDocument, SReportCommentDocument, STRAPI_COMMENT_SORT_KEYS, UpdateCommentDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-
|
|
1
|
+
import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-DKFW5ay8.mjs";
|
|
2
2
|
export { COMMENT_APPROVAL_STATUS, COMMENT_APPROVAL_STATUS_VALUES, CommentApprovalStatus, CommentAuthor, CommentDocument, CommentReportDocument, CommentThread, CreateCommentDocument, QueryFilterStrapiComments, QuerySortStrapiComments, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, REPORT_COMMENT_REASON, REPORT_COMMENT_REASON_OPTIONS, ReportCommentReason, SDeleteCommentDocument, SReportCommentDocument, STRAPI_COMMENT_SORT_KEYS, UpdateCommentDocument };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
2
|
import { n as LIMIT_PAGINATION_MAX_SIZE } from "../../pagination-owwfYJS6.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { t as LIMIT_LONG_STRING_MAX_LENGTH } from "../../limits-CKGuEuKA.mjs";
|
|
4
|
+
import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
|
|
5
|
+
import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
|
|
6
|
+
import { a as VStringMinMax } from "../../string-BHHnD2Qu.mjs";
|
|
5
7
|
import * as v from "valibot";
|
|
6
8
|
//#region src/entities/comment/constants.ts
|
|
7
9
|
const REPORT_COMMENT_REASON = {
|
|
@@ -29,7 +31,7 @@ const STRAPI_COMMENT_SORT_KEYS = [
|
|
|
29
31
|
//#region src/entities/comment/fields.ts
|
|
30
32
|
const CommentApprovalStatus = v.picklist(COMMENT_APPROVAL_STATUS_VALUES);
|
|
31
33
|
const ReportCommentReason = v.picklist(REPORT_COMMENT_REASON_OPTIONS);
|
|
32
|
-
const QuerySortStrapiComments =
|
|
34
|
+
const QuerySortStrapiComments = createQuerySort(STRAPI_COMMENT_SORT_KEYS);
|
|
33
35
|
//#endregion
|
|
34
36
|
//#region src/entities/comment/document.ts
|
|
35
37
|
const CommentAuthor = v.object({
|
|
@@ -61,27 +63,27 @@ const CommentReportDocument = v.object({
|
|
|
61
63
|
//#endregion
|
|
62
64
|
//#region src/entities/comment/mutation.ts
|
|
63
65
|
const CreateCommentDocument = v.object({
|
|
64
|
-
relation: VStringMinMax(
|
|
66
|
+
relation: VStringMinMax(),
|
|
65
67
|
content: VStringMinMax(1, LIMIT_LONG_STRING_MAX_LENGTH),
|
|
66
68
|
author: v.object({
|
|
67
69
|
id: v.number(),
|
|
68
|
-
name: VStringMinMax(
|
|
70
|
+
name: VStringMinMax()
|
|
69
71
|
}),
|
|
70
72
|
threadOf: v.optional(v.number())
|
|
71
73
|
});
|
|
72
74
|
const UpdateCommentDocument = v.object({
|
|
73
|
-
relation: VStringMinMax(
|
|
75
|
+
relation: VStringMinMax(),
|
|
74
76
|
id: v.number(),
|
|
75
77
|
content: VStringMinMax(1, LIMIT_LONG_STRING_MAX_LENGTH),
|
|
76
78
|
author: v.object({ id: v.number() })
|
|
77
79
|
});
|
|
78
80
|
const SDeleteCommentDocument = v.object({
|
|
79
|
-
relation: VStringMinMax(
|
|
81
|
+
relation: VStringMinMax(),
|
|
80
82
|
id: v.number(),
|
|
81
83
|
author: v.object({ id: v.number() })
|
|
82
84
|
});
|
|
83
85
|
const SReportCommentDocument = v.object({
|
|
84
|
-
relation: VStringMinMax(
|
|
86
|
+
relation: VStringMinMax(),
|
|
85
87
|
commentId: v.number(),
|
|
86
88
|
content: VStringMinMax(1, LIMIT_LONG_STRING_MAX_LENGTH),
|
|
87
89
|
reason: v.picklist(REPORT_COMMENT_REASON_OPTIONS, "You must select a valid reason for reporting this comment.")
|
|
@@ -98,13 +100,13 @@ const QueryFilterStrapiComments = v.object({
|
|
|
98
100
|
removed: v.optional(v.object({ eq: v.boolean() }))
|
|
99
101
|
});
|
|
100
102
|
const QueryStrapiCommentsInHeirarchy = v.object({
|
|
101
|
-
relation: VStringMinMax(
|
|
103
|
+
relation: VStringMinMax(),
|
|
102
104
|
sort: QuerySortStrapiComments,
|
|
103
105
|
filters: v.optional(QueryFilterStrapiComments),
|
|
104
106
|
nested_levels: v.optional(VPage())
|
|
105
107
|
});
|
|
106
108
|
const QueryStrapiCommentsFlat = v.object({
|
|
107
|
-
relation: VStringMinMax(
|
|
109
|
+
relation: VStringMinMax(),
|
|
108
110
|
filters: v.optional(QueryFilterStrapiComments),
|
|
109
111
|
pagination: v.optional(v.object({
|
|
110
112
|
page: VPage(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
const require_pagination = require("../../pagination-DWZDPzR4.cjs");
|
|
4
|
+
const require_sort = require("../../sort-CI87SH1y.cjs");
|
|
5
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
6
|
+
const require_relationships = require("../../relationships-DjHwYd4r.cjs");
|
|
7
|
+
const require_slug = require("../../slug-cWXTZEIT.cjs");
|
|
8
|
+
const require_document = require("../../document-DwkycUz9.cjs");
|
|
7
9
|
let valibot = require("valibot");
|
|
8
10
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
11
|
//#region src/entities/content-pillar/constants.ts
|
|
@@ -18,20 +20,20 @@ const CONTENT_PILLAR_SORT_KEYS = [
|
|
|
18
20
|
];
|
|
19
21
|
//#endregion
|
|
20
22
|
//#region src/entities/content-pillar/fields.ts
|
|
21
|
-
const QuerySortContentPillars =
|
|
23
|
+
const QuerySortContentPillars = require_sort.createQuerySort(CONTENT_PILLAR_SORT_KEYS);
|
|
22
24
|
//#endregion
|
|
23
25
|
//#region src/entities/content-pillar/mutation.ts
|
|
24
26
|
const CreateContentPillarDocument = valibot.object({
|
|
25
|
-
title:
|
|
26
|
-
slug:
|
|
27
|
-
description: valibot.optional(valibot.nullable(
|
|
28
|
-
clients:
|
|
27
|
+
title: require_string.VStringMinMax(),
|
|
28
|
+
slug: require_slug.VStringSlug(),
|
|
29
|
+
description: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
30
|
+
clients: require_relationships.SAssociateManyEntitiesOptional
|
|
29
31
|
});
|
|
30
32
|
const UpdateContentPillarDocument = valibot.object({
|
|
31
|
-
title: valibot.optional(
|
|
32
|
-
slug: valibot.optional(
|
|
33
|
-
description: valibot.optional(valibot.nullable(
|
|
34
|
-
clients:
|
|
33
|
+
title: valibot.optional(require_string.VStringMinMax()),
|
|
34
|
+
slug: valibot.optional(require_slug.VStringSlug()),
|
|
35
|
+
description: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
36
|
+
clients: require_relationships.SAssociateManyEntitiesOptional
|
|
35
37
|
});
|
|
36
38
|
const UpdateContentPillarDocumentRequest = valibot.object({
|
|
37
39
|
documentId: require_relationships.SAssociateOneEntity,
|
|
@@ -40,11 +42,11 @@ const UpdateContentPillarDocumentRequest = valibot.object({
|
|
|
40
42
|
//#endregion
|
|
41
43
|
//#region src/entities/content-pillar/query.ts
|
|
42
44
|
const QueryStrapiSearchContentPillars = valibot.object({
|
|
43
|
-
page:
|
|
44
|
-
size:
|
|
45
|
-
title: valibot.optional(
|
|
46
|
-
slug: valibot.optional(
|
|
47
|
-
clients: valibot.optional(valibot.array(
|
|
45
|
+
page: require_pagination.VPage(),
|
|
46
|
+
size: require_pagination.VSize(LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE),
|
|
47
|
+
title: valibot.optional(require_string.VStringMax()),
|
|
48
|
+
slug: valibot.optional(require_string.VStringMax()),
|
|
49
|
+
clients: valibot.optional(valibot.array(require_string.VStringMax())),
|
|
48
50
|
sort: QuerySortContentPillars
|
|
49
51
|
});
|
|
50
52
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, F as UpdateContentPillarDocumentRequest, I as QuerySortContentPillars, L as ContentPillarDocument, M as QueryStrapiSearchContentPillars, N as CreateContentPillarDocument, P as UpdateContentPillarDocument, R as CONTENT_PILLAR_SORT_KEYS, z as LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE } from "../../index-
|
|
1
|
+
import { B as LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, F as UpdateContentPillarDocumentRequest, I as QuerySortContentPillars, L as ContentPillarDocument, M as QueryStrapiSearchContentPillars, N as CreateContentPillarDocument, P as UpdateContentPillarDocument, R as CONTENT_PILLAR_SORT_KEYS, z as LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE } from "../../index-C1GoH-4v.cjs";
|
|
2
2
|
export { CONTENT_PILLAR_SORT_KEYS, ContentPillarDocument, CreateContentPillarDocument, LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, QuerySortContentPillars, QueryStrapiSearchContentPillars, UpdateContentPillarDocument, UpdateContentPillarDocumentRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, F as UpdateContentPillarDocumentRequest, I as QuerySortContentPillars, L as ContentPillarDocument, M as QueryStrapiSearchContentPillars, N as CreateContentPillarDocument, P as UpdateContentPillarDocument, R as CONTENT_PILLAR_SORT_KEYS, z as LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE } from "../../index-
|
|
1
|
+
import { B as LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, F as UpdateContentPillarDocumentRequest, I as QuerySortContentPillars, L as ContentPillarDocument, M as QueryStrapiSearchContentPillars, N as CreateContentPillarDocument, P as UpdateContentPillarDocument, R as CONTENT_PILLAR_SORT_KEYS, z as LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE } from "../../index-ClQOYhKi.mjs";
|
|
2
2
|
export { CONTENT_PILLAR_SORT_KEYS, ContentPillarDocument, CreateContentPillarDocument, LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, QuerySortContentPillars, QueryStrapiSearchContentPillars, UpdateContentPillarDocument, UpdateContentPillarDocumentRequest };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
1
|
+
import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
|
|
2
|
+
import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
|
|
3
|
+
import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
4
|
+
import { a as SAssociateManyEntitiesOptional, o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
|
|
5
|
+
import { t as VStringSlug } from "../../slug-BUtm1t-B.mjs";
|
|
6
|
+
import { K as ContentPillarDocument } from "../../document-BWso8VC7.mjs";
|
|
5
7
|
import * as v from "valibot";
|
|
6
8
|
//#region src/entities/content-pillar/constants.ts
|
|
7
9
|
const LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = 100;
|
|
@@ -15,20 +17,20 @@ const CONTENT_PILLAR_SORT_KEYS = [
|
|
|
15
17
|
];
|
|
16
18
|
//#endregion
|
|
17
19
|
//#region src/entities/content-pillar/fields.ts
|
|
18
|
-
const QuerySortContentPillars =
|
|
20
|
+
const QuerySortContentPillars = createQuerySort(CONTENT_PILLAR_SORT_KEYS);
|
|
19
21
|
//#endregion
|
|
20
22
|
//#region src/entities/content-pillar/mutation.ts
|
|
21
23
|
const CreateContentPillarDocument = v.object({
|
|
22
|
-
title: VStringMinMax(
|
|
23
|
-
slug:
|
|
24
|
-
description: v.optional(v.nullable(VStringMax(
|
|
25
|
-
clients:
|
|
24
|
+
title: VStringMinMax(),
|
|
25
|
+
slug: VStringSlug(),
|
|
26
|
+
description: v.optional(v.nullable(VStringMax())),
|
|
27
|
+
clients: SAssociateManyEntitiesOptional
|
|
26
28
|
});
|
|
27
29
|
const UpdateContentPillarDocument = v.object({
|
|
28
|
-
title: v.optional(VStringMinMax(
|
|
29
|
-
slug: v.optional(
|
|
30
|
-
description: v.optional(v.nullable(VStringMax(
|
|
31
|
-
clients:
|
|
30
|
+
title: v.optional(VStringMinMax()),
|
|
31
|
+
slug: v.optional(VStringSlug()),
|
|
32
|
+
description: v.optional(v.nullable(VStringMax())),
|
|
33
|
+
clients: SAssociateManyEntitiesOptional
|
|
32
34
|
});
|
|
33
35
|
const UpdateContentPillarDocumentRequest = v.object({
|
|
34
36
|
documentId: SAssociateOneEntity,
|
|
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
4
|
const require_media_upload = require("../../media-upload-B6aQYeRM.cjs");
|
|
5
|
+
const require_relation = require("../../relation-Bd-xUcj8.cjs");
|
|
5
6
|
const require_components_shared_index = require("../../components/shared/index.cjs");
|
|
6
7
|
const require_components_blocks_index = require("../../components/blocks/index.cjs");
|
|
7
8
|
let valibot = require("valibot");
|
|
@@ -10,7 +11,7 @@ valibot = require_chunk.__toESM(valibot, 1);
|
|
|
10
11
|
const FAQPageDocument = valibot.object({
|
|
11
12
|
...require_document.BaseDocument.entries,
|
|
12
13
|
seo: valibot.nullable(valibot.lazy(() => require_components_shared_index.SeoMeta)),
|
|
13
|
-
featured_image:
|
|
14
|
+
featured_image: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
|
|
14
15
|
faq: valibot.nullable(require_components_blocks_index.ComponentBlockFaq)
|
|
15
16
|
});
|
|
16
17
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as MediaUploadDocument } from "../../media-upload-D-nP8FR1.cjs";
|
|
2
|
-
import { _ as ComponentBlockFaq } from "../../index-
|
|
3
|
-
import { s as SeoMeta } from "../../index-
|
|
2
|
+
import { _ as ComponentBlockFaq } from "../../index-DG_Lwaa7.cjs";
|
|
3
|
+
import { s as SeoMeta } from "../../index-COpLbpQC.cjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
|
|
6
6
|
//#region src/entities/faq-page/document.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as MediaUploadDocument } from "../../media-upload-
|
|
2
|
-
import { _ as ComponentBlockFaq } from "../../index-
|
|
3
|
-
import { s as SeoMeta } from "../../index-
|
|
1
|
+
import { r as MediaUploadDocument } from "../../media-upload-DBG7YyU4.mjs";
|
|
2
|
+
import { _ as ComponentBlockFaq } from "../../index-Dvu63a8_.mjs";
|
|
3
|
+
import { s as SeoMeta } from "../../index-BSYaAtme.mjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
|
|
6
6
|
//#region src/entities/faq-page/document.d.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
2
|
import { r as MediaUploadDocument } from "../../media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { r as VDocumentRelationOne } from "../../relation-DMhLjp7K.mjs";
|
|
3
4
|
import { SeoMeta } from "../../components/shared/index.mjs";
|
|
4
5
|
import { ComponentBlockFaq } from "../../components/blocks/index.mjs";
|
|
5
6
|
import * as v from "valibot";
|
|
@@ -7,7 +8,7 @@ import * as v from "valibot";
|
|
|
7
8
|
const FAQPageDocument = v.object({
|
|
8
9
|
...BaseDocument.entries,
|
|
9
10
|
seo: v.nullable(v.lazy(() => SeoMeta)),
|
|
10
|
-
featured_image:
|
|
11
|
+
featured_image: VDocumentRelationOne(() => MediaUploadDocument),
|
|
11
12
|
faq: v.nullable(ComponentBlockFaq)
|
|
12
13
|
});
|
|
13
14
|
//#endregion
|
|
@@ -12,7 +12,7 @@ declare const FORMATTER_MODE_OPTIONS: readonly [{
|
|
|
12
12
|
readonly label: "JSON Formatter";
|
|
13
13
|
readonly value: "json";
|
|
14
14
|
}];
|
|
15
|
-
declare const FORMATTER_MODE_VALUES: ("html" | "
|
|
15
|
+
declare const FORMATTER_MODE_VALUES: ("html" | "json" | "xml")[];
|
|
16
16
|
declare const INDENT_LEVEL_OPTIONS: readonly [{
|
|
17
17
|
readonly label: "2 Spaces Indent";
|
|
18
18
|
readonly value: "TWO_SPACES";
|
|
@@ -38,7 +38,7 @@ declare const INDENT_LEVEL_VALUES: ("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES
|
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/entities/formatter/formatter.d.ts
|
|
40
40
|
type FormatterMode = (typeof FORMATTER_MODE_VALUES)[number];
|
|
41
|
-
declare const SFormatterMode: v.PicklistSchema<("html" | "
|
|
41
|
+
declare const SFormatterMode: v.PicklistSchema<("html" | "json" | "xml")[], undefined>;
|
|
42
42
|
type IndentLevel = (typeof INDENT_LEVEL_VALUES)[number];
|
|
43
43
|
declare const SIndentLevel: v.OptionalSchema<v.PicklistSchema<("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT")[], undefined>, "TWO_SPACES">;
|
|
44
44
|
declare const SContentText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 50000, `Text cannot exceed ${string} characters. Please upload a file instead if your content exceeds this limit.`>]>, undefined>;
|
|
@@ -50,13 +50,13 @@ declare const TXTMimeTypes: ["text/plain", "application/octet-stream"];
|
|
|
50
50
|
declare const allowedMimeTypes: ["text/html", "application/xhtml+xml", "text/xml", "application/xml", "application/rss+xml", "application/atom+xml", "text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines", "text/plain", "application/octet-stream"];
|
|
51
51
|
declare const SContentFile: v.OptionalSchema<v.SchemaWithPipe<readonly [v.FileSchema<"Please upload a file.">, v.MaxSizeAction<any, number, "File must be smaller than 2 MB.">, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "text/xml", "application/xml", "application/rss+xml", "application/atom+xml", "text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines", "text/plain", "application/octet-stream"], "Please upload a valid file: text, HTML, XML, or JSON.">]>, undefined>;
|
|
52
52
|
declare const SFormatterForm: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
53
|
-
readonly formatter_mode: v.PicklistSchema<("html" | "
|
|
53
|
+
readonly formatter_mode: v.PicklistSchema<("html" | "json" | "xml")[], undefined>;
|
|
54
54
|
readonly chars_per_line: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
55
55
|
readonly indent_level: v.OptionalSchema<v.PicklistSchema<("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT")[], undefined>, "TWO_SPACES">;
|
|
56
56
|
readonly text_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 50000, `Text cannot exceed ${string} characters. Please upload a file instead if your content exceeds this limit.`>]>, undefined>;
|
|
57
57
|
readonly files: v.OptionalSchema<v.SchemaWithPipe<readonly [v.FileSchema<"Please upload a file.">, v.MaxSizeAction<any, number, "File must be smaller than 2 MB.">, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "text/xml", "application/xml", "application/rss+xml", "application/atom+xml", "text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines", "text/plain", "application/octet-stream"], "Please upload a valid file: text, HTML, XML, or JSON.">]>, undefined>;
|
|
58
58
|
}, undefined>, v.CheckAction<{
|
|
59
|
-
formatter_mode: "html" | "
|
|
59
|
+
formatter_mode: "html" | "json" | "xml";
|
|
60
60
|
chars_per_line?: number | undefined;
|
|
61
61
|
indent_level: "TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT";
|
|
62
62
|
text_content?: string | undefined;
|
|
@@ -64,7 +64,7 @@ declare const SFormatterForm: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
64
64
|
}, "You must provide text content or a text file.">]>;
|
|
65
65
|
type SFormatterForm = v.InferOutput<typeof SFormatterForm>;
|
|
66
66
|
declare const SFormatterRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
67
|
-
readonly formatter_mode: v.PicklistSchema<("html" | "
|
|
67
|
+
readonly formatter_mode: v.PicklistSchema<("html" | "json" | "xml")[], undefined>;
|
|
68
68
|
readonly chars_per_line: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
69
69
|
readonly indent_level: v.OptionalSchema<v.PicklistSchema<("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT")[], undefined>, "TWO_SPACES">;
|
|
70
70
|
readonly content: v.StringSchema<undefined>;
|
|
@@ -12,7 +12,7 @@ declare const FORMATTER_MODE_OPTIONS: readonly [{
|
|
|
12
12
|
readonly label: "JSON Formatter";
|
|
13
13
|
readonly value: "json";
|
|
14
14
|
}];
|
|
15
|
-
declare const FORMATTER_MODE_VALUES: ("html" | "
|
|
15
|
+
declare const FORMATTER_MODE_VALUES: ("html" | "json" | "xml")[];
|
|
16
16
|
declare const INDENT_LEVEL_OPTIONS: readonly [{
|
|
17
17
|
readonly label: "2 Spaces Indent";
|
|
18
18
|
readonly value: "TWO_SPACES";
|
|
@@ -38,7 +38,7 @@ declare const INDENT_LEVEL_VALUES: ("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES
|
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/entities/formatter/formatter.d.ts
|
|
40
40
|
type FormatterMode = (typeof FORMATTER_MODE_VALUES)[number];
|
|
41
|
-
declare const SFormatterMode: v.PicklistSchema<("html" | "
|
|
41
|
+
declare const SFormatterMode: v.PicklistSchema<("html" | "json" | "xml")[], undefined>;
|
|
42
42
|
type IndentLevel = (typeof INDENT_LEVEL_VALUES)[number];
|
|
43
43
|
declare const SIndentLevel: v.OptionalSchema<v.PicklistSchema<("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT")[], undefined>, "TWO_SPACES">;
|
|
44
44
|
declare const SContentText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 50000, `Text cannot exceed ${string} characters. Please upload a file instead if your content exceeds this limit.`>]>, undefined>;
|
|
@@ -50,13 +50,13 @@ declare const TXTMimeTypes: ["text/plain", "application/octet-stream"];
|
|
|
50
50
|
declare const allowedMimeTypes: ["text/html", "application/xhtml+xml", "text/xml", "application/xml", "application/rss+xml", "application/atom+xml", "text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines", "text/plain", "application/octet-stream"];
|
|
51
51
|
declare const SContentFile: v.OptionalSchema<v.SchemaWithPipe<readonly [v.FileSchema<"Please upload a file.">, v.MaxSizeAction<any, number, "File must be smaller than 2 MB.">, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "text/xml", "application/xml", "application/rss+xml", "application/atom+xml", "text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines", "text/plain", "application/octet-stream"], "Please upload a valid file: text, HTML, XML, or JSON.">]>, undefined>;
|
|
52
52
|
declare const SFormatterForm: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
53
|
-
readonly formatter_mode: v.PicklistSchema<("html" | "
|
|
53
|
+
readonly formatter_mode: v.PicklistSchema<("html" | "json" | "xml")[], undefined>;
|
|
54
54
|
readonly chars_per_line: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
55
55
|
readonly indent_level: v.OptionalSchema<v.PicklistSchema<("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT")[], undefined>, "TWO_SPACES">;
|
|
56
56
|
readonly text_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 50000, `Text cannot exceed ${string} characters. Please upload a file instead if your content exceeds this limit.`>]>, undefined>;
|
|
57
57
|
readonly files: v.OptionalSchema<v.SchemaWithPipe<readonly [v.FileSchema<"Please upload a file.">, v.MaxSizeAction<any, number, "File must be smaller than 2 MB.">, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "text/xml", "application/xml", "application/rss+xml", "application/atom+xml", "text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines", "text/plain", "application/octet-stream"], "Please upload a valid file: text, HTML, XML, or JSON.">]>, undefined>;
|
|
58
58
|
}, undefined>, v.CheckAction<{
|
|
59
|
-
formatter_mode: "html" | "
|
|
59
|
+
formatter_mode: "html" | "json" | "xml";
|
|
60
60
|
chars_per_line?: number | undefined;
|
|
61
61
|
indent_level: "TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT";
|
|
62
62
|
text_content?: string | undefined;
|
|
@@ -64,7 +64,7 @@ declare const SFormatterForm: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
64
64
|
}, "You must provide text content or a text file.">]>;
|
|
65
65
|
type SFormatterForm = v.InferOutput<typeof SFormatterForm>;
|
|
66
66
|
declare const SFormatterRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
67
|
-
readonly formatter_mode: v.PicklistSchema<("html" | "
|
|
67
|
+
readonly formatter_mode: v.PicklistSchema<("html" | "json" | "xml")[], undefined>;
|
|
68
68
|
readonly chars_per_line: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
69
69
|
readonly indent_level: v.OptionalSchema<v.PicklistSchema<("TWO_SPACES" | "THREE_SPACES" | "FOUR_SPACES" | "TAB" | "COMPACT")[], undefined>, "TWO_SPACES">;
|
|
70
70
|
readonly content: v.StringSchema<undefined>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
const require_pagination = require("../../pagination-DWZDPzR4.cjs");
|
|
4
|
+
const require_sort = require("../../sort-CI87SH1y.cjs");
|
|
5
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
6
|
+
const require_relationships = require("../../relationships-DjHwYd4r.cjs");
|
|
7
|
+
const require_slug = require("../../slug-cWXTZEIT.cjs");
|
|
8
|
+
const require_document = require("../../document-DwkycUz9.cjs");
|
|
7
9
|
let valibot = require("valibot");
|
|
8
10
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
11
|
//#region src/entities/gcflytour/constants.ts
|
|
@@ -20,26 +22,26 @@ const GCFLYTOUR_SORT_KEYS = [
|
|
|
20
22
|
];
|
|
21
23
|
//#endregion
|
|
22
24
|
//#region src/entities/gcflytour/fields.ts
|
|
23
|
-
const QuerySortGCFlyTours =
|
|
25
|
+
const QuerySortGCFlyTours = require_sort.createQuerySort(GCFLYTOUR_SORT_KEYS);
|
|
24
26
|
//#endregion
|
|
25
27
|
//#region src/entities/gcflytour/mutation.ts
|
|
26
28
|
const CreateGCFlyTourDocument = valibot.object({
|
|
27
|
-
title:
|
|
28
|
-
slug:
|
|
29
|
-
description: valibot.optional(valibot.nullable(
|
|
29
|
+
title: require_string.VStringMinMax(),
|
|
30
|
+
slug: require_slug.VStringSlug(),
|
|
31
|
+
description: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
30
32
|
is_active: valibot.boolean(),
|
|
31
33
|
is_hidden: valibot.boolean(),
|
|
32
|
-
clients:
|
|
33
|
-
gcflytour_snaps:
|
|
34
|
+
clients: require_relationships.SAssociateManyEntitiesOptional,
|
|
35
|
+
gcflytour_snaps: require_relationships.SAssociateManyEntitiesOptional
|
|
34
36
|
});
|
|
35
37
|
const UpdateGCFlyTourDocument = valibot.object({
|
|
36
|
-
title: valibot.optional(
|
|
37
|
-
slug: valibot.optional(
|
|
38
|
-
description: valibot.optional(valibot.nullable(
|
|
38
|
+
title: valibot.optional(require_string.VStringMinMax()),
|
|
39
|
+
slug: valibot.optional(require_slug.VStringSlug()),
|
|
40
|
+
description: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
39
41
|
is_active: valibot.optional(valibot.boolean()),
|
|
40
42
|
is_hidden: valibot.optional(valibot.boolean()),
|
|
41
|
-
clients:
|
|
42
|
-
gcflytour_snaps:
|
|
43
|
+
clients: require_relationships.SAssociateManyEntitiesOptional,
|
|
44
|
+
gcflytour_snaps: require_relationships.SAssociateManyEntitiesOptional
|
|
43
45
|
});
|
|
44
46
|
const UpdateGCFlyTourDocumentRequest = valibot.object({
|
|
45
47
|
documentId: require_relationships.SAssociateOneEntity,
|
|
@@ -48,10 +50,10 @@ const UpdateGCFlyTourDocumentRequest = valibot.object({
|
|
|
48
50
|
//#endregion
|
|
49
51
|
//#region src/entities/gcflytour/query.ts
|
|
50
52
|
const QueryStrapiSearchGCFlyTours = valibot.object({
|
|
51
|
-
page:
|
|
52
|
-
size:
|
|
53
|
-
title: valibot.optional(
|
|
54
|
-
slug: valibot.optional(
|
|
53
|
+
page: require_pagination.VPage(),
|
|
54
|
+
size: require_pagination.VSize(LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE),
|
|
55
|
+
title: valibot.optional(require_string.VStringMax()),
|
|
56
|
+
slug: valibot.optional(require_string.VStringMax()),
|
|
55
57
|
is_active: valibot.optional(valibot.boolean()),
|
|
56
58
|
is_hidden: valibot.optional(valibot.boolean()),
|
|
57
59
|
clients: valibot.optional(require_relationships.SQueryManyEntities),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { G as QuerySortGCFlyTours, H as CreateGCFlyTourDocument, J as GCFLYTOUR_SORT_KEYS, K as GCFlyTourDocument, U as UpdateGCFlyTourDocument, V as QueryStrapiSearchGCFlyTours, W as UpdateGCFlyTourDocumentRequest, X as LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE, Y as LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE } from "../../index-
|
|
1
|
+
import { G as QuerySortGCFlyTours, H as CreateGCFlyTourDocument, J as GCFLYTOUR_SORT_KEYS, K as GCFlyTourDocument, U as UpdateGCFlyTourDocument, V as QueryStrapiSearchGCFlyTours, W as UpdateGCFlyTourDocumentRequest, X as LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE, Y as LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE } from "../../index-C1GoH-4v.cjs";
|
|
2
2
|
export { CreateGCFlyTourDocument, GCFLYTOUR_SORT_KEYS, GCFlyTourDocument, LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE, LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE, QuerySortGCFlyTours, QueryStrapiSearchGCFlyTours, UpdateGCFlyTourDocument, UpdateGCFlyTourDocumentRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { G as QuerySortGCFlyTours, H as CreateGCFlyTourDocument, J as GCFLYTOUR_SORT_KEYS, K as GCFlyTourDocument, U as UpdateGCFlyTourDocument, V as QueryStrapiSearchGCFlyTours, W as UpdateGCFlyTourDocumentRequest, X as LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE, Y as LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE } from "../../index-
|
|
1
|
+
import { G as QuerySortGCFlyTours, H as CreateGCFlyTourDocument, J as GCFLYTOUR_SORT_KEYS, K as GCFlyTourDocument, U as UpdateGCFlyTourDocument, V as QueryStrapiSearchGCFlyTours, W as UpdateGCFlyTourDocumentRequest, X as LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE, Y as LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE } from "../../index-ClQOYhKi.mjs";
|
|
2
2
|
export { CreateGCFlyTourDocument, GCFLYTOUR_SORT_KEYS, GCFlyTourDocument, LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE, LIMIT_GCFLYTOUR_PAGINATION_MAX_SIZE, QuerySortGCFlyTours, QueryStrapiSearchGCFlyTours, UpdateGCFlyTourDocument, UpdateGCFlyTourDocumentRequest };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
1
|
+
import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
|
|
2
|
+
import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
|
|
3
|
+
import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
4
|
+
import { a as SAssociateManyEntitiesOptional, l as SQueryManyEntities, o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
|
|
5
|
+
import { t as VStringSlug } from "../../slug-BUtm1t-B.mjs";
|
|
6
|
+
import { i as GCFlyTourDocument } from "../../document-BWso8VC7.mjs";
|
|
5
7
|
import * as v from "valibot";
|
|
6
8
|
//#region src/entities/gcflytour/constants.ts
|
|
7
9
|
const LIMIT_GCFLYTOUR_PAGINATION_DEFAULT_SIZE = 100;
|
|
@@ -17,26 +19,26 @@ const GCFLYTOUR_SORT_KEYS = [
|
|
|
17
19
|
];
|
|
18
20
|
//#endregion
|
|
19
21
|
//#region src/entities/gcflytour/fields.ts
|
|
20
|
-
const QuerySortGCFlyTours =
|
|
22
|
+
const QuerySortGCFlyTours = createQuerySort(GCFLYTOUR_SORT_KEYS);
|
|
21
23
|
//#endregion
|
|
22
24
|
//#region src/entities/gcflytour/mutation.ts
|
|
23
25
|
const CreateGCFlyTourDocument = v.object({
|
|
24
|
-
title: VStringMinMax(
|
|
25
|
-
slug:
|
|
26
|
-
description: v.optional(v.nullable(VStringMax(
|
|
26
|
+
title: VStringMinMax(),
|
|
27
|
+
slug: VStringSlug(),
|
|
28
|
+
description: v.optional(v.nullable(VStringMax())),
|
|
27
29
|
is_active: v.boolean(),
|
|
28
30
|
is_hidden: v.boolean(),
|
|
29
|
-
clients:
|
|
30
|
-
gcflytour_snaps:
|
|
31
|
+
clients: SAssociateManyEntitiesOptional,
|
|
32
|
+
gcflytour_snaps: SAssociateManyEntitiesOptional
|
|
31
33
|
});
|
|
32
34
|
const UpdateGCFlyTourDocument = v.object({
|
|
33
|
-
title: v.optional(VStringMinMax(
|
|
34
|
-
slug: v.optional(
|
|
35
|
-
description: v.optional(v.nullable(VStringMax(
|
|
35
|
+
title: v.optional(VStringMinMax()),
|
|
36
|
+
slug: v.optional(VStringSlug()),
|
|
37
|
+
description: v.optional(v.nullable(VStringMax())),
|
|
36
38
|
is_active: v.optional(v.boolean()),
|
|
37
39
|
is_hidden: v.optional(v.boolean()),
|
|
38
|
-
clients:
|
|
39
|
-
gcflytour_snaps:
|
|
40
|
+
clients: SAssociateManyEntitiesOptional,
|
|
41
|
+
gcflytour_snaps: SAssociateManyEntitiesOptional
|
|
40
42
|
});
|
|
41
43
|
const UpdateGCFlyTourDocumentRequest = v.object({
|
|
42
44
|
documentId: SAssociateOneEntity,
|