@getcommunity/gc-validators 0.0.271-alpha.25 → 0.0.271-alpha.26
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/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/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-Bd8ZGWzA.d.mts +944 -0
- package/dist/{index-DXo7B4ng.d.mts → index-Bjjp-2Sa.d.mts} +20 -99
- package/dist/{index-D_YPjLxv.d.cts → index-C9Hbvjc8.d.mts} +4 -3
- package/dist/index-COpLbpQC.d.cts +486 -0
- package/dist/{index-DXUuI-fJ.d.cts → index-CTc84rze.d.cts} +91 -76
- package/dist/index-D5VpzV4T.d.cts +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-Dm8G_OXX.d.cts} +4 -3
- package/dist/{index-DEm89ERm.d.mts → index-DpOKOSqT.d.mts} +94 -79
- package/dist/index-Dvu63a8_.d.mts +1324 -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 +11 -1
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
2
|
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
3
|
const require_media_upload = require("./media-upload-B6aQYeRM.cjs");
|
|
4
|
+
const require_relation = require("./relation-Bd-xUcj8.cjs");
|
|
4
5
|
const require_components_shared_index = require("./components/shared/index.cjs");
|
|
5
6
|
let valibot = require("valibot");
|
|
6
7
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
@@ -12,7 +13,7 @@ const ProductDocument = valibot.object({
|
|
|
12
13
|
slug: valibot.string(),
|
|
13
14
|
introduction: valibot.string(),
|
|
14
15
|
flyer_link: valibot.nullable(valibot.string()),
|
|
15
|
-
featured_image:
|
|
16
|
+
featured_image: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
|
|
16
17
|
cta_text: valibot.string(),
|
|
17
18
|
cta_form_caption: valibot.string(),
|
|
18
19
|
order: valibot.number()
|
|
@@ -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 * as v from "valibot";
|
|
5
6
|
//#region src/entities/product/document.ts
|
|
@@ -10,7 +11,7 @@ const ProductDocument = v.object({
|
|
|
10
11
|
slug: v.string(),
|
|
11
12
|
introduction: v.string(),
|
|
12
13
|
flyer_link: v.nullable(v.string()),
|
|
13
|
-
featured_image:
|
|
14
|
+
featured_image: VDocumentRelationOne(() => MediaUploadDocument),
|
|
14
15
|
cta_text: v.string(),
|
|
15
16
|
cta_form_caption: v.string(),
|
|
16
17
|
order: v.number()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as MediaUploadDocument } from "./media-upload-
|
|
2
|
-
import { s as SeoMeta } from "./index-
|
|
1
|
+
import { r as MediaUploadDocument } from "./media-upload-DBG7YyU4.mjs";
|
|
2
|
+
import { s as SeoMeta } from "./index-BSYaAtme.mjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
5
|
//#region src/entities/product/document.d.ts
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
2
|
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
3
|
const require_media_upload = require("./media-upload-B6aQYeRM.cjs");
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
require("./limits-CW6iJ7kB.cjs");
|
|
5
|
+
const require_pagination = require("./pagination-DWZDPzR4.cjs");
|
|
6
|
+
const require_sort = require("./sort-CI87SH1y.cjs");
|
|
7
|
+
const require_email = require("./email-ByTEdUjg.cjs");
|
|
8
|
+
const require_regex = require("./regex-BEFTMiHO.cjs");
|
|
9
|
+
const require_string = require("./string-Yn-6xiAZ.cjs");
|
|
10
|
+
const require_constants = require("./constants-D6DsS_A0.cjs");
|
|
11
|
+
const require_relation = require("./relation-Bd-xUcj8.cjs");
|
|
7
12
|
const require_components_shared_index = require("./components/shared/index.cjs");
|
|
8
13
|
const require_components_blocks_index = require("./components/blocks/index.cjs");
|
|
9
14
|
const require_components_brand_index = require("./components/brand/index.cjs");
|
|
10
15
|
const require_components_utm_index = require("./components/utm/index.cjs");
|
|
11
|
-
const require_document$1 = require("./document-
|
|
12
|
-
const require_document$2 = require("./document-
|
|
16
|
+
const require_document$1 = require("./document-B4FY2KXQ.cjs");
|
|
17
|
+
const require_document$2 = require("./document-DJJFS5o8.cjs");
|
|
13
18
|
let valibot = require("valibot");
|
|
14
19
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
15
20
|
//#region src/entities/content-pillar/document.ts
|
|
@@ -19,15 +24,15 @@ const ContentPillarDocument = valibot.object({
|
|
|
19
24
|
slug: valibot.string(),
|
|
20
25
|
description: valibot.nullable(valibot.string()),
|
|
21
26
|
information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
|
|
22
|
-
clients:
|
|
27
|
+
clients: require_relation.VDocumentRelationMany(() => ClientContentPillarDocument)
|
|
23
28
|
});
|
|
24
29
|
//#endregion
|
|
25
30
|
//#region src/entities/client-content-pillar/document.ts
|
|
26
31
|
const ClientContentPillarDocument = valibot.object({
|
|
27
32
|
...require_document.BaseDocument.entries,
|
|
28
33
|
is_active: valibot.boolean(),
|
|
29
|
-
client:
|
|
30
|
-
content_pillar:
|
|
34
|
+
client: require_relation.VDocumentRelationOne(() => ClientDocument),
|
|
35
|
+
content_pillar: require_relation.VDocumentRelationOne(() => ContentPillarDocument)
|
|
31
36
|
});
|
|
32
37
|
//#endregion
|
|
33
38
|
//#region src/entities/media-creative-format/document.ts
|
|
@@ -50,7 +55,7 @@ const MediaContentTypeDocument = valibot.object({
|
|
|
50
55
|
is_paid_media: valibot.boolean(),
|
|
51
56
|
description: valibot.nullable(valibot.string()),
|
|
52
57
|
information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
|
|
53
|
-
media_platforms:
|
|
58
|
+
media_platforms: require_relation.VDocumentRelationMany(() => MediaPlatformDocument),
|
|
54
59
|
media_creative_formats: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaCreativeFormatDocument))))
|
|
55
60
|
});
|
|
56
61
|
//#endregion
|
|
@@ -63,7 +68,7 @@ const MediaMediumDocument = valibot.object({
|
|
|
63
68
|
is_organic_social: valibot.boolean(),
|
|
64
69
|
is_paid_media: valibot.boolean(),
|
|
65
70
|
description: valibot.nullable(valibot.string()),
|
|
66
|
-
media_platforms:
|
|
71
|
+
media_platforms: require_relation.VDocumentRelationMany(() => MediaPlatformDocument)
|
|
67
72
|
});
|
|
68
73
|
//#endregion
|
|
69
74
|
//#region src/entities/media-platform/document.ts
|
|
@@ -78,9 +83,9 @@ const MediaPlatformDocument = valibot.object({
|
|
|
78
83
|
logos: valibot.optional(valibot.nullable(require_components_blocks_index.BlockBrandLogos)),
|
|
79
84
|
description: valibot.nullable(valibot.string()),
|
|
80
85
|
information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
|
|
81
|
-
clients:
|
|
82
|
-
media_content_types:
|
|
83
|
-
media_mediums:
|
|
86
|
+
clients: require_relation.VDocumentRelationMany(() => ClientMediaPlatformDocument),
|
|
87
|
+
media_content_types: require_relation.VDocumentRelationMany(() => MediaContentTypeDocument),
|
|
88
|
+
media_mediums: require_relation.VDocumentRelationMany(() => MediaMediumDocument)
|
|
84
89
|
});
|
|
85
90
|
//#endregion
|
|
86
91
|
//#region src/entities/client-media-platform/document.ts
|
|
@@ -88,8 +93,8 @@ const ClientMediaPlatformDocument = valibot.object({
|
|
|
88
93
|
...require_document.BaseDocument.entries,
|
|
89
94
|
url: valibot.nullable(valibot.string()),
|
|
90
95
|
is_active: valibot.boolean(),
|
|
91
|
-
client:
|
|
92
|
-
media_platform:
|
|
96
|
+
client: require_relation.VDocumentRelationOne(() => ClientDocument),
|
|
97
|
+
media_platform: require_relation.VDocumentRelationOne(() => MediaPlatformDocument)
|
|
93
98
|
});
|
|
94
99
|
//#endregion
|
|
95
100
|
//#region src/entities/client-project/constants.ts
|
|
@@ -171,7 +176,7 @@ const CLIENT_PROJECT_SORT_KEYS = [
|
|
|
171
176
|
];
|
|
172
177
|
//#endregion
|
|
173
178
|
//#region src/entities/client-project/fields.ts
|
|
174
|
-
const QuerySortClientProjects =
|
|
179
|
+
const QuerySortClientProjects = require_sort.createQuerySort(CLIENT_PROJECT_SORT_KEYS);
|
|
175
180
|
const ClientProjectStatus = valibot.picklist(CLIENT_PROJECT_STATUS);
|
|
176
181
|
const ClientProjectPhase = valibot.picklist(CLIENT_PROJECT_PHASE_VALUES);
|
|
177
182
|
//#endregion
|
|
@@ -180,7 +185,7 @@ const ClientProjectDocument = valibot.object({
|
|
|
180
185
|
...require_document.BaseDocument.entries,
|
|
181
186
|
title: valibot.string(),
|
|
182
187
|
slug: valibot.string(),
|
|
183
|
-
featured_image:
|
|
188
|
+
featured_image: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
|
|
184
189
|
is_active: valibot.boolean(),
|
|
185
190
|
is_hidden: valibot.boolean(),
|
|
186
191
|
project_status: valibot.array(ClientProjectStatus),
|
|
@@ -196,7 +201,7 @@ const ClientProjectDocument = valibot.object({
|
|
|
196
201
|
social_organic_start_date: valibot.nullable(valibot.string()),
|
|
197
202
|
paid_media_start_date: valibot.nullable(valibot.string()),
|
|
198
203
|
go_date: valibot.nullable(valibot.string()),
|
|
199
|
-
clients:
|
|
204
|
+
clients: require_relation.VDocumentRelationMany(() => ClientDocument)
|
|
200
205
|
});
|
|
201
206
|
//#endregion
|
|
202
207
|
//#region src/entities/client-report/document.ts
|
|
@@ -208,7 +213,7 @@ const ClientReportDocument = valibot.object({
|
|
|
208
213
|
is_external: valibot.boolean(),
|
|
209
214
|
is_hidden: valibot.boolean(),
|
|
210
215
|
scopes: valibot.array(valibot.string()),
|
|
211
|
-
clients:
|
|
216
|
+
clients: require_relation.VDocumentRelationMany(() => ClientDocument)
|
|
212
217
|
});
|
|
213
218
|
//#endregion
|
|
214
219
|
//#region src/entities/client-styleguide/document.ts
|
|
@@ -221,12 +226,12 @@ const ClientStyleguideDocument = valibot.object({
|
|
|
221
226
|
communication: valibot.array(require_components_shared_index.RichTextBlock),
|
|
222
227
|
brand_elements: valibot.array(require_components_shared_index.RichTextBlock),
|
|
223
228
|
brand_intention: valibot.array(require_components_shared_index.RichTextBlock),
|
|
224
|
-
mood:
|
|
225
|
-
logos:
|
|
229
|
+
mood: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
|
|
230
|
+
logos: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
|
|
226
231
|
brand_colors: valibot.optional(valibot.array(require_components_brand_index.ComponentBrandStyleguideColor)),
|
|
227
232
|
brand_fonts: valibot.optional(valibot.array(require_components_brand_index.ComponentBrandStyleguideFont)),
|
|
228
|
-
brand_application:
|
|
229
|
-
client:
|
|
233
|
+
brand_application: require_relation.VDocumentRelationManyRequired(() => require_media_upload.MediaUploadDocument),
|
|
234
|
+
client: require_relation.VDocumentRelationOne(() => ClientDocument)
|
|
230
235
|
});
|
|
231
236
|
//#endregion
|
|
232
237
|
//#region src/entities/up-user/constants.ts
|
|
@@ -246,7 +251,7 @@ const USER_SORT_KEYS = [
|
|
|
246
251
|
const PermissionDocument = valibot.object({
|
|
247
252
|
...require_document.BaseDocument.entries,
|
|
248
253
|
action: valibot.string(),
|
|
249
|
-
role:
|
|
254
|
+
role: require_relation.VDocumentRelationOne(() => RoleDocument)
|
|
250
255
|
});
|
|
251
256
|
//#endregion
|
|
252
257
|
//#region src/entities/up-role/constants.ts
|
|
@@ -267,8 +272,8 @@ const RoleDocument = valibot.object({
|
|
|
267
272
|
type: RoleType,
|
|
268
273
|
name: valibot.string(),
|
|
269
274
|
description: valibot.nullable(valibot.string()),
|
|
270
|
-
permissions:
|
|
271
|
-
users:
|
|
275
|
+
permissions: require_relation.VDocumentRelationMany(() => PermissionDocument),
|
|
276
|
+
users: require_relation.VDocumentRelationMany(() => UserDocument)
|
|
272
277
|
});
|
|
273
278
|
//#endregion
|
|
274
279
|
//#region src/entities/user-account/document.ts
|
|
@@ -299,8 +304,8 @@ const UtmTrackingLinkDocument = valibot.object({
|
|
|
299
304
|
url: valibot.string(),
|
|
300
305
|
is_active: valibot.boolean(),
|
|
301
306
|
notes: valibot.nullable(valibot.string()),
|
|
302
|
-
creator:
|
|
303
|
-
client:
|
|
307
|
+
creator: require_relation.VDocumentRelationOne(() => UserDocument),
|
|
308
|
+
client: require_relation.VDocumentRelationOne(() => ClientDocument)
|
|
304
309
|
});
|
|
305
310
|
//#endregion
|
|
306
311
|
//#region src/entities/up-user/document.ts
|
|
@@ -312,20 +317,21 @@ const UserDocument = valibot.object({
|
|
|
312
317
|
confirmed: valibot.boolean(),
|
|
313
318
|
blocked: valibot.boolean(),
|
|
314
319
|
clerk_user_id: valibot.nullable(valibot.string()),
|
|
315
|
-
role:
|
|
316
|
-
account:
|
|
317
|
-
clients:
|
|
318
|
-
utm_tracking_links:
|
|
320
|
+
role: require_relation.VDocumentRelationOne(() => RoleDocument),
|
|
321
|
+
account: require_relation.VDocumentRelationOne(() => UserAccountDocument),
|
|
322
|
+
clients: require_relation.VDocumentRelationMany(() => ClientUserDocument),
|
|
323
|
+
utm_tracking_links: require_relation.VDocumentRelationMany(() => UtmTrackingLinkDocument)
|
|
319
324
|
});
|
|
320
325
|
//#endregion
|
|
321
326
|
//#region src/entities/up-user/fields.ts
|
|
322
|
-
const QuerySortUsers =
|
|
327
|
+
const QuerySortUsers = require_sort.createQuerySort(USER_SORT_KEYS);
|
|
328
|
+
const ValidUsername = require_string.VStringMinMaxRegex(3, 255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE);
|
|
323
329
|
//#endregion
|
|
324
330
|
//#region src/entities/up-user/mutation.ts
|
|
325
331
|
const CreateUserDocument = valibot.object({
|
|
326
|
-
username:
|
|
327
|
-
email:
|
|
328
|
-
password:
|
|
332
|
+
username: ValidUsername,
|
|
333
|
+
email: require_email.VStringEmail(),
|
|
334
|
+
password: require_string.VStringMinMax(8, 255),
|
|
329
335
|
blocked: valibot.boolean(),
|
|
330
336
|
confirmed: valibot.boolean(),
|
|
331
337
|
role: valibot.number()
|
|
@@ -333,14 +339,14 @@ const CreateUserDocument = valibot.object({
|
|
|
333
339
|
//#endregion
|
|
334
340
|
//#region src/entities/up-user/query.ts
|
|
335
341
|
const QueryStrapiUsers = valibot.object({
|
|
336
|
-
page:
|
|
337
|
-
size:
|
|
342
|
+
page: require_pagination.VPage(),
|
|
343
|
+
size: require_pagination.VSize(10),
|
|
338
344
|
sort: QuerySortUsers
|
|
339
345
|
});
|
|
340
346
|
const QueryStrapiUsersByIdentifier = valibot.object({
|
|
341
|
-
identifier:
|
|
342
|
-
page:
|
|
343
|
-
size:
|
|
347
|
+
identifier: require_string.VStringShort(0),
|
|
348
|
+
page: require_pagination.VPage(),
|
|
349
|
+
size: require_pagination.VSize(10)
|
|
344
350
|
});
|
|
345
351
|
//#endregion
|
|
346
352
|
//#region src/entities/client-user/constants.ts
|
|
@@ -364,15 +370,15 @@ const CLIENT_USER_SORT_KEYS = [
|
|
|
364
370
|
];
|
|
365
371
|
//#endregion
|
|
366
372
|
//#region src/entities/client-user/fields.ts
|
|
367
|
-
const QuerySortClientUsers =
|
|
373
|
+
const QuerySortClientUsers = require_sort.createQuerySort(CLIENT_USER_SORT_KEYS);
|
|
368
374
|
const ClientUserScopes = valibot.pipe(valibot.array(valibot.picklist(require_constants.CLIENT_ENTITY_SCOPES), "Please provide a valid list of scopes."), valibot.maxLength(require_constants.CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."));
|
|
369
375
|
//#endregion
|
|
370
376
|
//#region src/entities/client-user/document.ts
|
|
371
377
|
const ClientUserDocument = valibot.object({
|
|
372
378
|
...require_document.BaseDocument.entries,
|
|
373
379
|
scopes: ClientUserScopes,
|
|
374
|
-
client:
|
|
375
|
-
user:
|
|
380
|
+
client: require_relation.VDocumentRelationOne(() => ClientDocument),
|
|
381
|
+
user: require_relation.VDocumentRelationOne(() => UserDocument)
|
|
376
382
|
});
|
|
377
383
|
const ClientUserDocumentStatus = valibot.object({
|
|
378
384
|
verified: valibot.boolean(),
|
|
@@ -388,7 +394,7 @@ const GCFlyTourSnapDocument = valibot.object({
|
|
|
388
394
|
description: valibot.nullable(valibot.string()),
|
|
389
395
|
is_active: valibot.boolean(),
|
|
390
396
|
is_hidden: valibot.boolean(),
|
|
391
|
-
gcflytour:
|
|
397
|
+
gcflytour: require_relation.VDocumentRelationOne(() => GCFlyTourDocument)
|
|
392
398
|
});
|
|
393
399
|
//#endregion
|
|
394
400
|
//#region src/entities/gcflytour/document.ts
|
|
@@ -399,8 +405,8 @@ const GCFlyTourDocument = valibot.object({
|
|
|
399
405
|
description: valibot.nullable(valibot.string()),
|
|
400
406
|
is_active: valibot.boolean(),
|
|
401
407
|
is_hidden: valibot.boolean(),
|
|
402
|
-
clients:
|
|
403
|
-
gcflytour_snaps:
|
|
408
|
+
clients: require_relation.VDocumentRelationMany(() => ClientDocument),
|
|
409
|
+
gcflytour_snaps: require_relation.VDocumentRelationMany(() => GCFlyTourSnapDocument)
|
|
404
410
|
});
|
|
405
411
|
//#endregion
|
|
406
412
|
//#region src/entities/monday-workspace/document.ts
|
|
@@ -408,7 +414,7 @@ const MondayWorkspaceDocument = valibot.object({
|
|
|
408
414
|
...require_document.BaseDocument.entries,
|
|
409
415
|
title: valibot.string(),
|
|
410
416
|
workspace_id: valibot.string(),
|
|
411
|
-
clients:
|
|
417
|
+
clients: require_relation.VDocumentRelationMany(() => ClientDocument)
|
|
412
418
|
});
|
|
413
419
|
//#endregion
|
|
414
420
|
//#region src/entities/product-highlight/document.ts
|
|
@@ -419,13 +425,13 @@ const ProductHighlightDocument = valibot.object({
|
|
|
419
425
|
title_line_2: valibot.string(),
|
|
420
426
|
introduction: valibot.string(),
|
|
421
427
|
highlight: valibot.optional(require_components_blocks_index.BlockFullscreenContent),
|
|
422
|
-
featured_image:
|
|
428
|
+
featured_image: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
|
|
423
429
|
background_color: valibot.string(),
|
|
424
430
|
order: valibot.number(),
|
|
425
431
|
text_invert: valibot.boolean(),
|
|
426
|
-
products:
|
|
427
|
-
clients:
|
|
428
|
-
tags:
|
|
432
|
+
products: require_relation.VDocumentRelationMany(() => require_document$2.ProductDocument),
|
|
433
|
+
clients: require_relation.VDocumentRelationMany(() => ClientDocument),
|
|
434
|
+
tags: require_relation.VDocumentRelationMany(() => require_document$1.TagDocument)
|
|
429
435
|
});
|
|
430
436
|
//#endregion
|
|
431
437
|
//#region src/entities/client/document.ts
|
|
@@ -444,16 +450,16 @@ const ClientDocument = valibot.object({
|
|
|
444
450
|
is_active: valibot.boolean(),
|
|
445
451
|
is_hidden: valibot.boolean(),
|
|
446
452
|
classification: valibot.array(require_components_utm_index.UtmClassificationKey),
|
|
447
|
-
users:
|
|
448
|
-
product_highlights:
|
|
449
|
-
client_projects:
|
|
450
|
-
client_reports:
|
|
451
|
-
monday_workspaces:
|
|
452
|
-
utm_tracking_links:
|
|
453
|
-
styleguides:
|
|
454
|
-
media_platforms:
|
|
455
|
-
content_pillars:
|
|
456
|
-
gcflytours:
|
|
453
|
+
users: require_relation.VDocumentRelationMany(() => ClientUserDocument),
|
|
454
|
+
product_highlights: require_relation.VDocumentRelationMany(() => ProductHighlightDocument),
|
|
455
|
+
client_projects: require_relation.VDocumentRelationMany(() => ClientProjectDocument),
|
|
456
|
+
client_reports: require_relation.VDocumentRelationMany(() => ClientReportDocument),
|
|
457
|
+
monday_workspaces: require_relation.VDocumentRelationMany(() => MondayWorkspaceDocument),
|
|
458
|
+
utm_tracking_links: require_relation.VDocumentRelationMany(() => UtmTrackingLinkDocument),
|
|
459
|
+
styleguides: require_relation.VDocumentRelationMany(() => ClientStyleguideDocument),
|
|
460
|
+
media_platforms: require_relation.VDocumentRelationMany(() => ClientMediaPlatformDocument),
|
|
461
|
+
content_pillars: require_relation.VDocumentRelationMany(() => ClientContentPillarDocument),
|
|
462
|
+
gcflytours: require_relation.VDocumentRelationMany(() => GCFlyTourDocument)
|
|
457
463
|
});
|
|
458
464
|
//#endregion
|
|
459
465
|
Object.defineProperty(exports, "CLIENT_PROJECT_PHASES", {
|
|
@@ -726,3 +732,9 @@ Object.defineProperty(exports, "UtmTrackingLinkDocument", {
|
|
|
726
732
|
return UtmTrackingLinkDocument;
|
|
727
733
|
}
|
|
728
734
|
});
|
|
735
|
+
Object.defineProperty(exports, "ValidUsername", {
|
|
736
|
+
enumerable: true,
|
|
737
|
+
get: function() {
|
|
738
|
+
return ValidUsername;
|
|
739
|
+
}
|
|
740
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
require("./limits-CW6iJ7kB.cjs");
|
|
3
|
+
let valibot = require("valibot");
|
|
4
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
5
|
+
//#region src/validators/email.ts
|
|
6
|
+
const VStringEmail = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(5), valibot.maxLength(255), valibot.email());
|
|
7
|
+
//#endregion
|
|
8
|
+
Object.defineProperty(exports, "VStringEmail", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return VStringEmail;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -2,8 +2,11 @@ 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_json = require("../../json-BgewUW_1.cjs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const require_pagination = require("../../pagination-DWZDPzR4.cjs");
|
|
6
|
+
const require_sort = require("../../sort-CI87SH1y.cjs");
|
|
7
|
+
const require_email = require("../../email-ByTEdUjg.cjs");
|
|
8
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
9
|
+
const require_relationships = require("../../relationships-DjHwYd4r.cjs");
|
|
7
10
|
let valibot = require("valibot");
|
|
8
11
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
12
|
//#region src/entities/audit-log/constants.ts
|
|
@@ -38,7 +41,7 @@ const AUDIT_LOG_METHODS = [
|
|
|
38
41
|
];
|
|
39
42
|
//#endregion
|
|
40
43
|
//#region src/entities/audit-log/fields.ts
|
|
41
|
-
const QuerySortAuditLogs =
|
|
44
|
+
const QuerySortAuditLogs = require_sort.createQuerySort(AUDIT_LOG_SORT_KEYS);
|
|
42
45
|
const AuditLogMethod = valibot.picklist(AUDIT_LOG_METHODS);
|
|
43
46
|
//#endregion
|
|
44
47
|
//#region src/entities/audit-log/mutation.ts
|
|
@@ -46,18 +49,18 @@ const CreateAuditLogDocument = valibot.object({
|
|
|
46
49
|
method: AuditLogMethod,
|
|
47
50
|
url: valibot.string(),
|
|
48
51
|
path: valibot.string(),
|
|
49
|
-
request_id: valibot.nullable(
|
|
50
|
-
ipaddress: valibot.nullable(
|
|
51
|
-
user_agent: valibot.nullable(
|
|
52
|
-
route_path: valibot.nullable(
|
|
53
|
-
route_handler: valibot.nullable(
|
|
54
|
-
actor_type:
|
|
55
|
-
actor_id: valibot.nullable(
|
|
56
|
-
actor_email: valibot.nullable(
|
|
57
|
-
entity_action:
|
|
58
|
-
entity_content_type:
|
|
59
|
-
entity_id: valibot.nullable(
|
|
60
|
-
entity_label: valibot.nullable(
|
|
52
|
+
request_id: valibot.nullable(require_string.VStringMax()),
|
|
53
|
+
ipaddress: valibot.nullable(require_string.VStringMax(64)),
|
|
54
|
+
user_agent: valibot.nullable(require_string.VStringMax()),
|
|
55
|
+
route_path: valibot.nullable(require_string.VStringMax()),
|
|
56
|
+
route_handler: valibot.nullable(require_string.VStringMax()),
|
|
57
|
+
actor_type: require_string.VStringMax(),
|
|
58
|
+
actor_id: valibot.nullable(require_string.VStringMax()),
|
|
59
|
+
actor_email: valibot.nullable(require_email.VStringEmail()),
|
|
60
|
+
entity_action: require_string.VStringMax(),
|
|
61
|
+
entity_content_type: require_string.VStringMax(),
|
|
62
|
+
entity_id: valibot.nullable(require_string.VStringMax()),
|
|
63
|
+
entity_label: valibot.nullable(require_string.VStringMax()),
|
|
61
64
|
request_data: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
62
65
|
before: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
63
66
|
after: valibot.optional(valibot.nullable(require_json.JsonSchema))
|
|
@@ -66,18 +69,18 @@ const UpdateAuditLogDocument = valibot.object({
|
|
|
66
69
|
method: valibot.optional(AuditLogMethod),
|
|
67
70
|
url: valibot.optional(valibot.string()),
|
|
68
71
|
path: valibot.optional(valibot.string()),
|
|
69
|
-
request_id: valibot.optional(valibot.nullable(
|
|
70
|
-
ipaddress: valibot.optional(valibot.nullable(
|
|
71
|
-
user_agent: valibot.optional(valibot.nullable(
|
|
72
|
-
route_path: valibot.optional(valibot.nullable(
|
|
73
|
-
route_handler: valibot.optional(valibot.nullable(
|
|
74
|
-
actor_type: valibot.optional(
|
|
75
|
-
actor_id: valibot.optional(valibot.nullable(
|
|
76
|
-
actor_email: valibot.optional(valibot.nullable(
|
|
77
|
-
entity_action: valibot.optional(
|
|
78
|
-
entity_content_type: valibot.optional(
|
|
79
|
-
entity_id: valibot.optional(valibot.nullable(
|
|
80
|
-
entity_label: valibot.optional(valibot.nullable(
|
|
72
|
+
request_id: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
73
|
+
ipaddress: valibot.optional(valibot.nullable(require_string.VStringMax(64))),
|
|
74
|
+
user_agent: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
75
|
+
route_path: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
76
|
+
route_handler: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
77
|
+
actor_type: valibot.optional(require_string.VStringMax()),
|
|
78
|
+
actor_id: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
79
|
+
actor_email: valibot.optional(valibot.nullable(require_email.VStringEmail())),
|
|
80
|
+
entity_action: valibot.optional(require_string.VStringMax()),
|
|
81
|
+
entity_content_type: valibot.optional(require_string.VStringMax()),
|
|
82
|
+
entity_id: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
83
|
+
entity_label: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
81
84
|
request_data: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
82
85
|
before: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
83
86
|
after: valibot.optional(valibot.nullable(require_json.JsonSchema))
|
|
@@ -95,23 +98,23 @@ const AuditLogDocument = valibot.object({
|
|
|
95
98
|
//#endregion
|
|
96
99
|
//#region src/entities/audit-log/query.ts
|
|
97
100
|
const QueryStrapiSearchAuditLogs = valibot.object({
|
|
98
|
-
page:
|
|
99
|
-
size:
|
|
101
|
+
page: require_pagination.VPage(),
|
|
102
|
+
size: require_pagination.VSize(20),
|
|
100
103
|
method: valibot.optional(AuditLogMethod),
|
|
101
104
|
url: valibot.optional(valibot.string()),
|
|
102
105
|
path: valibot.optional(valibot.string()),
|
|
103
|
-
request_id: valibot.optional(
|
|
104
|
-
ipaddress: valibot.optional(
|
|
105
|
-
user_agent: valibot.optional(
|
|
106
|
-
route_path: valibot.optional(
|
|
107
|
-
route_handler: valibot.optional(
|
|
108
|
-
actor_type: valibot.optional(
|
|
109
|
-
actor_id: valibot.optional(
|
|
110
|
-
actor_email: valibot.optional(
|
|
111
|
-
entity_action: valibot.optional(
|
|
112
|
-
entity_content_type: valibot.optional(
|
|
113
|
-
entity_id: valibot.optional(
|
|
114
|
-
entity_label: valibot.optional(
|
|
106
|
+
request_id: valibot.optional(require_string.VStringMax()),
|
|
107
|
+
ipaddress: valibot.optional(require_string.VStringMax(64)),
|
|
108
|
+
user_agent: valibot.optional(require_string.VStringMax()),
|
|
109
|
+
route_path: valibot.optional(require_string.VStringMax()),
|
|
110
|
+
route_handler: valibot.optional(require_string.VStringMax()),
|
|
111
|
+
actor_type: valibot.optional(require_string.VStringMax()),
|
|
112
|
+
actor_id: valibot.optional(require_string.VStringMax()),
|
|
113
|
+
actor_email: valibot.optional(require_email.VStringEmail()),
|
|
114
|
+
entity_action: valibot.optional(require_string.VStringMax()),
|
|
115
|
+
entity_content_type: valibot.optional(require_string.VStringMax()),
|
|
116
|
+
entity_id: valibot.optional(require_string.VStringMax()),
|
|
117
|
+
entity_label: valibot.optional(require_string.VStringMax()),
|
|
115
118
|
sort: QuerySortAuditLogs
|
|
116
119
|
});
|
|
117
120
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Z as QuerySortOutput } from "../../index-D7QXaSOY.cjs";
|
|
1
2
|
import { t as JsonData } from "../../json-Cm6HECXA.cjs";
|
|
2
3
|
import * as v from "valibot";
|
|
3
4
|
|
|
@@ -35,7 +36,7 @@ declare const AuditLogDocument: v.ObjectSchema<{
|
|
|
35
36
|
type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region src/entities/audit-log/fields.d.ts
|
|
38
|
-
declare const QuerySortAuditLogs: v.
|
|
39
|
+
declare const QuerySortAuditLogs: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
|
|
39
40
|
type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
|
|
40
41
|
declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
41
42
|
type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
|
|
@@ -127,7 +128,7 @@ declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
|
|
|
127
128
|
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
128
129
|
readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
130
|
readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
130
|
-
readonly sort: v.
|
|
131
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
|
|
131
132
|
}, undefined>;
|
|
132
133
|
type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
|
|
133
134
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Z as QuerySortOutput } from "../../index-Bjjp-2Sa.mjs";
|
|
2
|
+
import { t as JsonData } from "../../json--oetJLQY.mjs";
|
|
2
3
|
import * as v from "valibot";
|
|
3
4
|
|
|
4
5
|
//#region src/entities/audit-log/constants.d.ts
|
|
@@ -35,7 +36,7 @@ declare const AuditLogDocument: v.ObjectSchema<{
|
|
|
35
36
|
type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region src/entities/audit-log/fields.d.ts
|
|
38
|
-
declare const QuerySortAuditLogs: v.
|
|
39
|
+
declare const QuerySortAuditLogs: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
|
|
39
40
|
type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
|
|
40
41
|
declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
41
42
|
type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
|
|
@@ -127,7 +128,7 @@ declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
|
|
|
127
128
|
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
128
129
|
readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
130
|
readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
130
|
-
readonly sort: v.
|
|
131
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
|
|
131
132
|
}, undefined>;
|
|
132
133
|
type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
|
|
133
134
|
//#endregion
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
2
|
import { t as JsonSchema } from "../../json-CTduX6Ak.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
|
|
4
|
+
import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
|
|
5
|
+
import { t as VStringEmail } from "../../email-Cnyi5Neo.mjs";
|
|
6
|
+
import { i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
7
|
+
import { o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
|
|
5
8
|
import * as v from "valibot";
|
|
6
9
|
//#region src/entities/audit-log/constants.ts
|
|
7
10
|
const LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE = 20;
|
|
@@ -35,7 +38,7 @@ const AUDIT_LOG_METHODS = [
|
|
|
35
38
|
];
|
|
36
39
|
//#endregion
|
|
37
40
|
//#region src/entities/audit-log/fields.ts
|
|
38
|
-
const QuerySortAuditLogs =
|
|
41
|
+
const QuerySortAuditLogs = createQuerySort(AUDIT_LOG_SORT_KEYS);
|
|
39
42
|
const AuditLogMethod = v.picklist(AUDIT_LOG_METHODS);
|
|
40
43
|
//#endregion
|
|
41
44
|
//#region src/entities/audit-log/mutation.ts
|