@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
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
2
|
import { r as MediaUploadDocument } from "../../media-upload-DiRJksSU.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { n as LIMIT_MAX_DESTINATION, t as LIMIT_LONG_STRING_MAX_LENGTH } from "../../limits-CKGuEuKA.mjs";
|
|
4
|
+
import { t as VStringEmail } from "../../email-Cnyi5Neo.mjs";
|
|
5
|
+
import { n as VStringPhoneNullable, t as VStringPhone } from "../../phone-C9TNVDm_.mjs";
|
|
6
|
+
import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
7
|
+
import { o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
|
|
8
|
+
import { n as ERROR_MESSAGE_INVALID_URL, o as ERROR_MESSAGE_URL_PREFIX, t as ERROR_MESSAGE_COMMA_SEPPARATED_URLS } from "../../error-messages-9ZhRqNGW.mjs";
|
|
6
9
|
import * as v from "valibot";
|
|
7
10
|
//#region src/entities/resume/document.ts
|
|
8
11
|
const ResumeDocument = v.object({
|
|
@@ -40,8 +43,8 @@ const SValidFileObject = v.object({
|
|
|
40
43
|
});
|
|
41
44
|
const SValidSocialProfiles = v.pipe(v.string(), v.trim(), v.maxLength(LIMIT_LONG_STRING_MAX_LENGTH), v.check(checkIsValidUrlList, ERROR_MESSAGE_COMMA_SEPPARATED_URLS));
|
|
42
45
|
const CreateResume = v.object({
|
|
43
|
-
first_name: VStringMinMax(
|
|
44
|
-
last_name: VStringMinMax(
|
|
46
|
+
first_name: VStringMinMax(),
|
|
47
|
+
last_name: VStringMinMax(),
|
|
45
48
|
email: VStringEmail(),
|
|
46
49
|
phone: v.optional(VStringPhone()),
|
|
47
50
|
message: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH),
|
|
@@ -60,8 +63,8 @@ const CreateResume = v.object({
|
|
|
60
63
|
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
|
|
61
64
|
});
|
|
62
65
|
const CreateResumeInfo = v.object({
|
|
63
|
-
first_name: VStringMinMax(
|
|
64
|
-
last_name: VStringMinMax(
|
|
66
|
+
first_name: VStringMinMax(),
|
|
67
|
+
last_name: VStringMinMax(),
|
|
65
68
|
email: VStringEmail(),
|
|
66
69
|
phone: v.optional(VStringPhone()),
|
|
67
70
|
message: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH),
|
|
@@ -73,8 +76,8 @@ const CreateResumeInfo = v.object({
|
|
|
73
76
|
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
|
|
74
77
|
});
|
|
75
78
|
const CreateResumeInfoDocument = v.object({
|
|
76
|
-
first_name: VStringMinMax(
|
|
77
|
-
last_name: VStringMinMax(
|
|
79
|
+
first_name: VStringMinMax(),
|
|
80
|
+
last_name: VStringMinMax(),
|
|
78
81
|
email: VStringEmail(),
|
|
79
82
|
phone: VStringPhoneNullable(),
|
|
80
83
|
message: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH),
|
|
@@ -86,8 +89,8 @@ const CreateResumeInfoDocument = v.object({
|
|
|
86
89
|
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
|
|
87
90
|
});
|
|
88
91
|
const UpdateResumeInfo = v.object({
|
|
89
|
-
first_name: v.optional(VStringMinMax(
|
|
90
|
-
last_name: v.optional(VStringMinMax(
|
|
92
|
+
first_name: v.optional(VStringMinMax()),
|
|
93
|
+
last_name: v.optional(VStringMinMax()),
|
|
91
94
|
email: v.optional(VStringEmail()),
|
|
92
95
|
phone: VStringPhoneNullable(),
|
|
93
96
|
message: v.optional(VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)),
|
|
@@ -99,8 +102,8 @@ const UpdateResumeInfo = v.object({
|
|
|
99
102
|
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
|
|
100
103
|
});
|
|
101
104
|
const UpdateResumeInfoDocument = v.object({
|
|
102
|
-
first_name: v.optional(VStringMinMax(
|
|
103
|
-
last_name: v.optional(VStringMinMax(
|
|
105
|
+
first_name: v.optional(VStringMinMax()),
|
|
106
|
+
last_name: v.optional(VStringMinMax()),
|
|
104
107
|
email: v.optional(VStringEmail()),
|
|
105
108
|
phone: v.optional(VStringPhone()),
|
|
106
109
|
message: v.optional(VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)),
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const require_limits = require("../../limits-CW6iJ7kB.cjs");
|
|
4
|
+
const require_email = require("../../email-ByTEdUjg.cjs");
|
|
5
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
5
6
|
let valibot = require("valibot");
|
|
6
7
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
8
|
//#region src/entities/sharpspring/mutation.ts
|
|
8
9
|
const SharpSpringSignUpToDownload = valibot.object({
|
|
9
|
-
first_name:
|
|
10
|
-
last_name:
|
|
11
|
-
email:
|
|
12
|
-
download_key:
|
|
10
|
+
first_name: require_string.VStringMinMax(),
|
|
11
|
+
last_name: require_string.VStringMinMax(),
|
|
12
|
+
email: require_email.VStringEmail(),
|
|
13
|
+
download_key: require_string.VStringMax(),
|
|
13
14
|
email_consent: valibot.boolean(),
|
|
14
|
-
on_page:
|
|
15
|
-
captcha:
|
|
15
|
+
on_page: require_string.VStringMax(require_limits.LIMIT_MAX_DESTINATION),
|
|
16
|
+
captcha: require_string.VStringMax(require_limits.LIMIT_LONG_STRING_MAX_LENGTH),
|
|
16
17
|
middle_name: valibot.string()
|
|
17
18
|
});
|
|
18
19
|
//#endregion
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as LIMIT_MAX_DESTINATION, t as LIMIT_LONG_STRING_MAX_LENGTH } from "../../limits-CKGuEuKA.mjs";
|
|
2
|
+
import { t as VStringEmail } from "../../email-Cnyi5Neo.mjs";
|
|
3
|
+
import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
3
4
|
import * as v from "valibot";
|
|
4
5
|
//#region src/entities/sharpspring/mutation.ts
|
|
5
6
|
const SharpSpringSignUpToDownload = v.object({
|
|
6
|
-
first_name: VStringMinMax(
|
|
7
|
-
last_name: VStringMinMax(
|
|
7
|
+
first_name: VStringMinMax(),
|
|
8
|
+
last_name: VStringMinMax(),
|
|
8
9
|
email: VStringEmail(),
|
|
9
|
-
download_key: VStringMax(
|
|
10
|
+
download_key: VStringMax(),
|
|
10
11
|
email_consent: v.boolean(),
|
|
11
12
|
on_page: VStringMax(LIMIT_MAX_DESTINATION),
|
|
12
13
|
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH),
|
|
@@ -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-B4FY2KXQ.cjs");
|
|
7
9
|
let valibot = require("valibot");
|
|
8
10
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
11
|
//#region src/entities/tag/constants.ts
|
|
@@ -18,16 +20,16 @@ const TAG_SORT_KEYS = [
|
|
|
18
20
|
];
|
|
19
21
|
//#endregion
|
|
20
22
|
//#region src/entities/tag/fields.ts
|
|
21
|
-
const QuerySortTags =
|
|
23
|
+
const QuerySortTags = require_sort.createQuerySort(TAG_SORT_KEYS);
|
|
22
24
|
//#endregion
|
|
23
25
|
//#region src/entities/tag/mutation.ts
|
|
24
26
|
const CreateTagDocument = valibot.object({
|
|
25
|
-
label:
|
|
26
|
-
slug:
|
|
27
|
+
label: require_string.VStringMinMax(),
|
|
28
|
+
slug: require_slug.VStringSlug()
|
|
27
29
|
});
|
|
28
30
|
const UpdateTagDocument = valibot.object({
|
|
29
|
-
label: valibot.optional(
|
|
30
|
-
slug: valibot.optional(
|
|
31
|
+
label: valibot.optional(require_string.VStringMinMax()),
|
|
32
|
+
slug: valibot.optional(require_slug.VStringSlug())
|
|
31
33
|
});
|
|
32
34
|
const UpdateTagDocumentRequest = valibot.object({
|
|
33
35
|
documentId: require_relationships.SAssociateOneEntity,
|
|
@@ -36,10 +38,10 @@ const UpdateTagDocumentRequest = valibot.object({
|
|
|
36
38
|
//#endregion
|
|
37
39
|
//#region src/entities/tag/query.ts
|
|
38
40
|
const QueryStrapiSearchTags = valibot.object({
|
|
39
|
-
page:
|
|
40
|
-
size:
|
|
41
|
-
label: valibot.optional(
|
|
42
|
-
slug: valibot.optional(
|
|
41
|
+
page: require_pagination.VPage(),
|
|
42
|
+
size: require_pagination.VSize(LIMIT_TAGS_PAGINATION_MAX_SIZE),
|
|
43
|
+
label: valibot.optional(require_string.VStringMax()),
|
|
44
|
+
slug: valibot.optional(require_string.VStringMax()),
|
|
43
45
|
sort: QuerySortTags
|
|
44
46
|
});
|
|
45
47
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Z as QuerySortOutput } from "../../index-D7QXaSOY.cjs";
|
|
1
2
|
import { t as TagDocument } from "../../document-i-h3Orv7.cjs";
|
|
2
3
|
import * as v from "valibot";
|
|
3
4
|
|
|
@@ -7,25 +8,25 @@ declare const LIMIT_TAGS_PAGINATION_MAX_SIZE = 1000;
|
|
|
7
8
|
declare const TAG_SORT_KEYS: readonly ["id", "label", "slug", "createdAt", "updatedAt"];
|
|
8
9
|
//#endregion
|
|
9
10
|
//#region src/entities/tag/fields.d.ts
|
|
10
|
-
declare const QuerySortTags: v.
|
|
11
|
+
declare const QuerySortTags: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "slug" | "label">>;
|
|
11
12
|
type QuerySortTags = v.InferOutput<typeof QuerySortTags>;
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region src/entities/tag/mutation.d.ts
|
|
14
15
|
declare const CreateTagDocument: v.ObjectSchema<{
|
|
15
16
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
16
|
-
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string,
|
|
17
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
17
18
|
}, undefined>;
|
|
18
19
|
type CreateTagDocument = v.InferOutput<typeof CreateTagDocument>;
|
|
19
20
|
declare const UpdateTagDocument: v.ObjectSchema<{
|
|
20
21
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
-
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string,
|
|
22
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
22
23
|
}, undefined>;
|
|
23
24
|
type UpdateTagDocument = v.InferOutput<typeof UpdateTagDocument>;
|
|
24
25
|
declare const UpdateTagDocumentRequest: v.ObjectSchema<{
|
|
25
26
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
26
27
|
readonly data: v.ObjectSchema<{
|
|
27
28
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
|
-
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string,
|
|
29
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
29
30
|
}, undefined>;
|
|
30
31
|
}, undefined>;
|
|
31
32
|
type UpdateTagDocumentRequest = v.InferOutput<typeof UpdateTagDocumentRequest>;
|
|
@@ -36,7 +37,7 @@ declare const QueryStrapiSearchTags: v.ObjectSchema<{
|
|
|
36
37
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
37
38
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
39
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
-
readonly sort: v.
|
|
40
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "slug" | "label">>;
|
|
40
41
|
}, undefined>;
|
|
41
42
|
type QueryStrapiSearchTags = v.InferOutput<typeof QueryStrapiSearchTags>;
|
|
42
43
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Z as QuerySortOutput } from "../../index-Bjjp-2Sa.mjs";
|
|
2
|
+
import { t as TagDocument } from "../../document-DxjJgk8X.mjs";
|
|
2
3
|
import * as v from "valibot";
|
|
3
4
|
|
|
4
5
|
//#region src/entities/tag/constants.d.ts
|
|
@@ -7,25 +8,25 @@ declare const LIMIT_TAGS_PAGINATION_MAX_SIZE = 1000;
|
|
|
7
8
|
declare const TAG_SORT_KEYS: readonly ["id", "label", "slug", "createdAt", "updatedAt"];
|
|
8
9
|
//#endregion
|
|
9
10
|
//#region src/entities/tag/fields.d.ts
|
|
10
|
-
declare const QuerySortTags: v.
|
|
11
|
+
declare const QuerySortTags: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "slug" | "label">>;
|
|
11
12
|
type QuerySortTags = v.InferOutput<typeof QuerySortTags>;
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region src/entities/tag/mutation.d.ts
|
|
14
15
|
declare const CreateTagDocument: v.ObjectSchema<{
|
|
15
16
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
16
|
-
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string,
|
|
17
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
17
18
|
}, undefined>;
|
|
18
19
|
type CreateTagDocument = v.InferOutput<typeof CreateTagDocument>;
|
|
19
20
|
declare const UpdateTagDocument: v.ObjectSchema<{
|
|
20
21
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
-
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string,
|
|
22
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
22
23
|
}, undefined>;
|
|
23
24
|
type UpdateTagDocument = v.InferOutput<typeof UpdateTagDocument>;
|
|
24
25
|
declare const UpdateTagDocumentRequest: v.ObjectSchema<{
|
|
25
26
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
26
27
|
readonly data: v.ObjectSchema<{
|
|
27
28
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
|
-
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string,
|
|
29
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
29
30
|
}, undefined>;
|
|
30
31
|
}, undefined>;
|
|
31
32
|
type UpdateTagDocumentRequest = v.InferOutput<typeof UpdateTagDocumentRequest>;
|
|
@@ -36,7 +37,7 @@ declare const QueryStrapiSearchTags: v.ObjectSchema<{
|
|
|
36
37
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
37
38
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
39
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
-
readonly sort: v.
|
|
40
|
+
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "slug" | "label">>;
|
|
40
41
|
}, undefined>;
|
|
41
42
|
type QueryStrapiSearchTags = v.InferOutput<typeof QueryStrapiSearchTags>;
|
|
42
43
|
//#endregion
|
|
@@ -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 { o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
|
|
5
|
+
import { t as VStringSlug } from "../../slug-BUtm1t-B.mjs";
|
|
6
|
+
import { t as TagDocument } from "../../document-De-prPhc.mjs";
|
|
5
7
|
import * as v from "valibot";
|
|
6
8
|
//#region src/entities/tag/constants.ts
|
|
7
9
|
const LIMIT_TAGS_PAGINATION_DEFAULT_SIZE = 100;
|
|
@@ -15,16 +17,16 @@ const TAG_SORT_KEYS = [
|
|
|
15
17
|
];
|
|
16
18
|
//#endregion
|
|
17
19
|
//#region src/entities/tag/fields.ts
|
|
18
|
-
const QuerySortTags =
|
|
20
|
+
const QuerySortTags = createQuerySort(TAG_SORT_KEYS);
|
|
19
21
|
//#endregion
|
|
20
22
|
//#region src/entities/tag/mutation.ts
|
|
21
23
|
const CreateTagDocument = v.object({
|
|
22
|
-
label: VStringMinMax(
|
|
23
|
-
slug:
|
|
24
|
+
label: VStringMinMax(),
|
|
25
|
+
slug: VStringSlug()
|
|
24
26
|
});
|
|
25
27
|
const UpdateTagDocument = v.object({
|
|
26
|
-
label: v.optional(VStringMinMax(
|
|
27
|
-
slug: v.optional(
|
|
28
|
+
label: v.optional(VStringMinMax()),
|
|
29
|
+
slug: v.optional(VStringSlug())
|
|
28
30
|
});
|
|
29
31
|
const UpdateTagDocumentRequest = v.object({
|
|
30
32
|
documentId: SAssociateOneEntity,
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const
|
|
4
|
-
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_number = require("../../number-Bt4nZKCU.cjs");
|
|
7
|
+
const require_document = require("../../document-AqtoEbX8.cjs");
|
|
5
8
|
let valibot = require("valibot");
|
|
6
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
10
|
//#region src/entities/team-member/sort.ts
|
|
8
|
-
const QuerySortTeamMembers =
|
|
11
|
+
const QuerySortTeamMembers = require_sort.createQuerySort(require_document.TEAM_MEMBER_SORT_KEYS);
|
|
9
12
|
//#endregion
|
|
10
13
|
//#region src/entities/team-member/query.ts
|
|
11
14
|
const QueryStrapiSearchTeamMembers = valibot.object({
|
|
12
15
|
only_managers: valibot.boolean(),
|
|
13
|
-
page:
|
|
14
|
-
size:
|
|
15
|
-
name: valibot.optional(
|
|
16
|
-
slug: valibot.optional(
|
|
17
|
-
order:
|
|
16
|
+
page: require_pagination.VPage(),
|
|
17
|
+
size: require_pagination.VSize(20),
|
|
18
|
+
name: valibot.optional(require_string.VStringMax()),
|
|
19
|
+
slug: valibot.optional(require_string.VStringMax()),
|
|
20
|
+
order: require_number.VIntegerNullable(),
|
|
18
21
|
tier: valibot.optional(require_document.TeamMemberTier),
|
|
19
22
|
group: valibot.optional(require_document.TeamMemberGroup),
|
|
20
23
|
is_employed: valibot.optional(valibot.boolean()),
|
|
@@ -26,7 +29,6 @@ exports.LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE = require_document.LIMIT_TEAM_MEMB
|
|
|
26
29
|
exports.QuerySortTeamMembers = QuerySortTeamMembers;
|
|
27
30
|
exports.QueryStrapiSearchTeamMembers = QueryStrapiSearchTeamMembers;
|
|
28
31
|
exports.TEAM_MEMBER_GROUP = require_document.TEAM_MEMBER_GROUP;
|
|
29
|
-
exports.TEAM_MEMBER_SORT = require_document.TEAM_MEMBER_SORT;
|
|
30
32
|
exports.TEAM_MEMBER_SORT_KEYS = require_document.TEAM_MEMBER_SORT_KEYS;
|
|
31
33
|
exports.TEAM_MEMBER_TIER = require_document.TEAM_MEMBER_TIER;
|
|
32
34
|
exports.TeamMemberDocument = require_document.TeamMemberDocument;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, QuerySortTeamMembers, QueryStrapiSearchTeamMembers, TEAM_MEMBER_GROUP,
|
|
1
|
+
import { _ as TEAM_MEMBER_TIER, d as TeamMemberGroup, f as TeamMemberTier, g as TEAM_MEMBER_SORT_KEYS, h as TEAM_MEMBER_GROUP, l as QueryStrapiSearchTeamMembers, m as LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, p as LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, s as TeamMemberDocument, u as QuerySortTeamMembers } from "../../index-WN2TBKki.cjs";
|
|
2
|
+
export { LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, QuerySortTeamMembers, QueryStrapiSearchTeamMembers, TEAM_MEMBER_GROUP, TEAM_MEMBER_SORT_KEYS, TEAM_MEMBER_TIER, TeamMemberDocument, TeamMemberGroup, TeamMemberTier };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, QuerySortTeamMembers, QueryStrapiSearchTeamMembers, TEAM_MEMBER_GROUP,
|
|
1
|
+
import { _ as TEAM_MEMBER_TIER, d as TeamMemberGroup, f as TeamMemberTier, g as TEAM_MEMBER_SORT_KEYS, h as TEAM_MEMBER_GROUP, l as QueryStrapiSearchTeamMembers, m as LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, p as LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, s as TeamMemberDocument, u as QuerySortTeamMembers } from "../../index-Cqmmzi2g.mjs";
|
|
2
|
+
export { LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, QuerySortTeamMembers, QueryStrapiSearchTeamMembers, TEAM_MEMBER_GROUP, TEAM_MEMBER_SORT_KEYS, TEAM_MEMBER_TIER, TeamMemberDocument, TeamMemberGroup, TeamMemberTier };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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 { i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
4
|
+
import { t as VIntegerNullable } from "../../number-OMFRufFt.mjs";
|
|
5
|
+
import { a as TeamMemberDocument, c as LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, d as TEAM_MEMBER_SORT_KEYS, f as TEAM_MEMBER_TIER, l as LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, o as TeamMemberGroup, s as TeamMemberTier, u as TEAM_MEMBER_GROUP } from "../../document-BCbxKqGE.mjs";
|
|
3
6
|
import * as v from "valibot";
|
|
4
7
|
//#region src/entities/team-member/sort.ts
|
|
5
|
-
const QuerySortTeamMembers =
|
|
8
|
+
const QuerySortTeamMembers = createQuerySort(TEAM_MEMBER_SORT_KEYS);
|
|
6
9
|
//#endregion
|
|
7
10
|
//#region src/entities/team-member/query.ts
|
|
8
11
|
const QueryStrapiSearchTeamMembers = v.object({
|
|
@@ -18,4 +21,4 @@ const QueryStrapiSearchTeamMembers = v.object({
|
|
|
18
21
|
sort: v.lazy(() => QuerySortTeamMembers)
|
|
19
22
|
});
|
|
20
23
|
//#endregion
|
|
21
|
-
export { LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, QuerySortTeamMembers, QueryStrapiSearchTeamMembers, TEAM_MEMBER_GROUP,
|
|
24
|
+
export { LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE, QuerySortTeamMembers, QueryStrapiSearchTeamMembers, TEAM_MEMBER_GROUP, TEAM_MEMBER_SORT_KEYS, TEAM_MEMBER_TIER, TeamMemberDocument, TeamMemberGroup, TeamMemberTier };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
require("../../pagination-4pZafglS.cjs");
|
|
4
|
-
require("../../
|
|
5
|
-
const
|
|
4
|
+
const require_pagination$1 = require("../../pagination-DWZDPzR4.cjs");
|
|
5
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
6
|
+
const require_number = require("../../number-Bt4nZKCU.cjs");
|
|
6
7
|
let valibot = require("valibot");
|
|
7
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
8
9
|
//#region src/entities/teamwork/constants.ts
|
|
@@ -54,16 +55,16 @@ const QuerySortTeamworkProjectHealth = valibot.optional(valibot.object({
|
|
|
54
55
|
//#endregion
|
|
55
56
|
//#region src/entities/teamwork/query.ts
|
|
56
57
|
const QueryStrapiSearchTeamworkProjectHealth = valibot.object({
|
|
57
|
-
page:
|
|
58
|
-
size:
|
|
59
|
-
lastPeriodDays:
|
|
60
|
-
searchTerm: valibot.optional(
|
|
61
|
-
excludeTagIds: valibot.optional(valibot.array(
|
|
58
|
+
page: require_pagination$1.VPage(),
|
|
59
|
+
size: require_pagination$1.VSize(100),
|
|
60
|
+
lastPeriodDays: require_number.VIntegerNullable(),
|
|
61
|
+
searchTerm: valibot.optional(require_string.VStringMax()),
|
|
62
|
+
excludeTagIds: valibot.optional(valibot.array(require_string.VStringMinMax())),
|
|
62
63
|
includeArchivedProjects: valibot.optional(valibot.boolean()),
|
|
63
|
-
projectCategoryIds: valibot.optional(valibot.array(
|
|
64
|
-
projectCompanyIds: valibot.optional(valibot.array(
|
|
65
|
-
projectTagIds: valibot.optional(valibot.array(
|
|
66
|
-
projectHealths: valibot.optional(
|
|
64
|
+
projectCategoryIds: valibot.optional(valibot.array(require_string.VStringMinMax())),
|
|
65
|
+
projectCompanyIds: valibot.optional(valibot.array(require_string.VStringMinMax())),
|
|
66
|
+
projectTagIds: valibot.optional(valibot.array(require_string.VStringMinMax())),
|
|
67
|
+
projectHealths: valibot.optional(require_string.VStringMax()),
|
|
67
68
|
projectStatuses: valibot.optional(valibot.picklist(TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS.map((option) => option.value)), TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS[0].value),
|
|
68
69
|
sort: QuerySortTeamworkProjectHealth
|
|
69
70
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../../pagination-owwfYJS6.mjs";
|
|
2
|
-
import "../../
|
|
3
|
-
import {
|
|
2
|
+
import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
|
|
3
|
+
import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
|
|
4
|
+
import { t as VIntegerNullable } from "../../number-OMFRufFt.mjs";
|
|
4
5
|
import * as v from "valibot";
|
|
5
6
|
//#region src/entities/teamwork/constants.ts
|
|
6
7
|
const TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS = [{
|
|
@@ -55,11 +56,11 @@ const QueryStrapiSearchTeamworkProjectHealth = v.object({
|
|
|
55
56
|
size: VSize(100),
|
|
56
57
|
lastPeriodDays: VIntegerNullable(),
|
|
57
58
|
searchTerm: v.optional(VStringMax()),
|
|
58
|
-
excludeTagIds: v.optional(v.array(VStringMinMax(
|
|
59
|
+
excludeTagIds: v.optional(v.array(VStringMinMax())),
|
|
59
60
|
includeArchivedProjects: v.optional(v.boolean()),
|
|
60
|
-
projectCategoryIds: v.optional(v.array(VStringMinMax(
|
|
61
|
-
projectCompanyIds: v.optional(v.array(VStringMinMax(
|
|
62
|
-
projectTagIds: v.optional(v.array(VStringMinMax(
|
|
61
|
+
projectCategoryIds: v.optional(v.array(VStringMinMax())),
|
|
62
|
+
projectCompanyIds: v.optional(v.array(VStringMinMax())),
|
|
63
|
+
projectTagIds: v.optional(v.array(VStringMinMax())),
|
|
63
64
|
projectHealths: v.optional(VStringMax()),
|
|
64
65
|
projectStatuses: v.optional(v.picklist(TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS.map((option) => option.value)), TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS[0].value),
|
|
65
66
|
sort: QuerySortTeamworkProjectHealth
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const require_relationships = require("../../relationships-
|
|
4
|
-
const require_document = require("../../document-
|
|
3
|
+
const require_relationships = require("../../relationships-DjHwYd4r.cjs");
|
|
4
|
+
const require_document = require("../../document-AqtoEbX8.cjs");
|
|
5
5
|
let valibot = require("valibot");
|
|
6
6
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
7
|
//#region src/entities/trend/constants.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
|
|
2
|
+
import { p as TrendDocument } from "../../document-BCbxKqGE.mjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
//#region src/entities/trend/constants.ts
|
|
5
5
|
const LIMIT_TREND_PAGINATION_DEFAULT_SIZE = 7;
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
|
|
4
|
-
const
|
|
3
|
+
require("../../limits-CW6iJ7kB.cjs");
|
|
4
|
+
const require_email = require("../../email-ByTEdUjg.cjs");
|
|
5
|
+
const require_string = require("../../string-Yn-6xiAZ.cjs");
|
|
6
|
+
const require_number = require("../../number-Bt4nZKCU.cjs");
|
|
7
|
+
const require_document = require("../../document-DwkycUz9.cjs");
|
|
5
8
|
let valibot = require("valibot");
|
|
6
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
10
|
//#region src/entities/up-auth/mutation.ts
|
|
8
11
|
const SUserToken = valibot.object({ token: valibot.string() });
|
|
9
12
|
const SLoginUser = valibot.object({
|
|
10
|
-
identifier:
|
|
11
|
-
password:
|
|
13
|
+
identifier: require_email.VStringEmail(),
|
|
14
|
+
password: require_string.VStringMinMax(8, 255)
|
|
12
15
|
});
|
|
13
16
|
const SRegisterUser = valibot.object({
|
|
14
|
-
username:
|
|
15
|
-
email:
|
|
16
|
-
password:
|
|
17
|
+
username: require_document.ValidUsername,
|
|
18
|
+
email: require_email.VStringEmail(),
|
|
19
|
+
password: require_string.VStringMinMax(8, 255)
|
|
17
20
|
});
|
|
18
|
-
const SForgotUserPassword = valibot.object({ email:
|
|
19
|
-
const SRequestConfirmEmail = valibot.object({ email:
|
|
21
|
+
const SForgotUserPassword = valibot.object({ email: require_email.VStringEmail() });
|
|
22
|
+
const SRequestConfirmEmail = valibot.object({ email: require_email.VStringEmail() });
|
|
20
23
|
const SResetUserPassword = valibot.object({
|
|
21
|
-
password:
|
|
22
|
-
passwordConfirmation:
|
|
24
|
+
password: require_string.VStringMinMax(8, 255),
|
|
25
|
+
passwordConfirmation: require_string.VStringMinMax(8, 255),
|
|
23
26
|
code: valibot.string()
|
|
24
27
|
});
|
|
25
28
|
const SChangePassword = valibot.pipe(valibot.object({
|
|
26
|
-
currentPassword:
|
|
27
|
-
password:
|
|
28
|
-
passwordConfirmation:
|
|
29
|
+
currentPassword: require_string.VStringMinMax(8, 255),
|
|
30
|
+
password: require_string.VStringMinMax(8, 255),
|
|
31
|
+
passwordConfirmation: require_string.VStringMinMax(8, 255)
|
|
29
32
|
}), valibot.forward(valibot.partialCheck([["password"], ["passwordConfirmation"]], (input) => input.password === input.passwordConfirmation, "Your new passwords do not match."), ["passwordConfirmation"]));
|
|
30
33
|
const SAuthRawAccessToken = valibot.object({
|
|
31
34
|
access_token: valibot.optional(valibot.string()),
|
|
32
|
-
expires_in:
|
|
35
|
+
expires_in: require_number.VIntegerNullable(),
|
|
33
36
|
scope: valibot.optional(valibot.string()),
|
|
34
37
|
token_type: valibot.optional(valibot.string()),
|
|
35
38
|
id_token: valibot.optional(valibot.string())
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as SChangePassword, Fn as UserAuthorizationSuccessResponse, Pn as AuthorizedUserDocument, Qn as SAuthRawAccessToken, Xn as SAuthConnectProviderConfirmation, Zn as SAuthConnectProviderRedirectSearch, ar as SUserToken, er as SForgotUserPassword, ir as SResetUserPassword, nr as SRegisterUser, rr as SRequestConfirmEmail, tr as SLoginUser } from "../../index-C1GoH-4v.cjs";
|
|
2
2
|
export { AuthorizedUserDocument, SAuthConnectProviderConfirmation, SAuthConnectProviderRedirectSearch, SAuthRawAccessToken, SChangePassword, SForgotUserPassword, SLoginUser, SRegisterUser, SRequestConfirmEmail, SResetUserPassword, SUserToken, UserAuthorizationSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as SChangePassword, Fn as UserAuthorizationSuccessResponse, Pn as AuthorizedUserDocument, Qn as SAuthRawAccessToken, Xn as SAuthConnectProviderConfirmation, Zn as SAuthConnectProviderRedirectSearch, ar as SUserToken, er as SForgotUserPassword, ir as SResetUserPassword, nr as SRegisterUser, rr as SRequestConfirmEmail, tr as SLoginUser } from "../../index-ClQOYhKi.mjs";
|
|
2
2
|
export { AuthorizedUserDocument, SAuthConnectProviderConfirmation, SAuthConnectProviderRedirectSearch, SAuthRawAccessToken, SChangePassword, SForgotUserPassword, SLoginUser, SRegisterUser, SRequestConfirmEmail, SResetUserPassword, SUserToken, UserAuthorizationSuccessResponse };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../../limits-CKGuEuKA.mjs";
|
|
2
|
+
import { t as VStringEmail } from "../../email-Cnyi5Neo.mjs";
|
|
3
|
+
import { a as VStringMinMax } from "../../string-BHHnD2Qu.mjs";
|
|
4
|
+
import { t as VIntegerNullable } from "../../number-OMFRufFt.mjs";
|
|
5
|
+
import { _ as ValidUsername } from "../../document-BWso8VC7.mjs";
|
|
3
6
|
import * as v from "valibot";
|
|
4
7
|
//#region src/entities/up-auth/mutation.ts
|
|
5
8
|
const SUserToken = v.object({ token: v.string() });
|
|
@@ -8,7 +11,7 @@ const SLoginUser = v.object({
|
|
|
8
11
|
password: VStringMinMax(8, 255)
|
|
9
12
|
});
|
|
10
13
|
const SRegisterUser = v.object({
|
|
11
|
-
username:
|
|
14
|
+
username: ValidUsername,
|
|
12
15
|
email: VStringEmail(),
|
|
13
16
|
password: VStringMinMax(8, 255)
|
|
14
17
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_document = require("../../document-
|
|
2
|
+
const require_document = require("../../document-DwkycUz9.cjs");
|
|
3
3
|
exports.PermissionDocument = require_document.PermissionDocument;
|