@getcommunity/gc-validators 0.0.270 → 0.0.271-alpha.1
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/README.md +16 -38
- package/dist/base/index.cjs +106 -0
- package/dist/base/index.d.cts +5 -0
- package/dist/base/index.d.mts +5 -0
- package/dist/base/index.mjs +21 -0
- package/dist/component-BPHZTfVY.mjs +6 -0
- package/dist/component-DLjTD_qK.cjs +19 -0
- package/dist/components/blocks/index.cjs +207 -0
- package/dist/components/blocks/index.d.cts +1322 -0
- package/dist/components/blocks/index.d.mts +1322 -0
- package/dist/components/blocks/index.mjs +175 -0
- package/dist/components/brand/index.cjs +37 -0
- package/dist/components/brand/index.d.cts +315 -0
- package/dist/components/brand/index.d.mts +315 -0
- package/dist/components/brand/index.mjs +31 -0
- package/dist/components/forms/index.cjs +70 -0
- package/dist/components/forms/index.d.cts +333 -0
- package/dist/components/forms/index.d.mts +333 -0
- package/dist/components/forms/index.mjs +58 -0
- package/dist/components/shared/index.cjs +127 -0
- package/dist/components/shared/index.d.cts +917 -0
- package/dist/components/shared/index.d.mts +917 -0
- package/dist/components/shared/index.mjs +107 -0
- package/dist/components/slideshow/index.cjs +129 -0
- package/dist/components/slideshow/index.d.cts +742 -0
- package/dist/components/slideshow/index.d.mts +742 -0
- package/dist/components/slideshow/index.mjs +106 -0
- package/dist/components/utm/index.cjs +55 -0
- package/dist/components/utm/index.d.cts +32 -0
- package/dist/components/utm/index.d.mts +32 -0
- package/dist/components/utm/index.mjs +47 -0
- package/dist/constants/index.cjs +243 -0
- package/dist/constants/index.d.cts +197 -0
- package/dist/constants/index.d.mts +197 -0
- package/dist/constants/index.mjs +182 -0
- package/dist/constants-L2goO7Eg.mjs +85 -0
- package/dist/constants-PBZKggHL.cjs +102 -0
- package/dist/document-BAro2Mrj.cjs +18 -0
- package/dist/document-BAzLIprH.d.mts +100 -0
- package/dist/document-BFukanLe.mjs +54 -0
- package/dist/document-BK1ASowb.d.cts +17 -0
- package/dist/document-BMxLOdrT.d.cts +267 -0
- package/dist/document-BNoXPGwF.d.mts +27 -0
- package/dist/document-B_pJW777.d.mts +30 -0
- package/dist/document-Bd2AyLs8.d.mts +16 -0
- package/dist/document-BezYxNmb.d.cts +16 -0
- package/dist/document-Bj7SRTOn.d.cts +18 -0
- package/dist/document-Bo869pZx.d.mts +18 -0
- package/dist/document-Bpr9mbCs.d.mts +15 -0
- package/dist/document-Bqoi1MdT.mjs +11 -0
- package/dist/document-Bs8c1mok.d.cts +15 -0
- package/dist/document-C0c7azOe.d.mts +434 -0
- package/dist/document-CTTDXzOF.mjs +13 -0
- package/dist/document-CUl_Ys6-.mjs +23 -0
- package/dist/document-CWYzG60q.d.cts +19 -0
- package/dist/document-Ccszj8lR.cjs +20 -0
- package/dist/document-CjNHI7Eb.d.cts +27 -0
- package/dist/document-Cu_HUDC5.mjs +51 -0
- package/dist/document-D-KvyEb5.d.cts +238 -0
- package/dist/document-D2nLVGig.d.mts +238 -0
- package/dist/document-D4fJt3zX.d.cts +12223 -0
- package/dist/document-D5yDIDIx.d.mts +15 -0
- package/dist/document-D73dqRle.d.cts +19 -0
- package/dist/document-DA6YVZz-.d.cts +100 -0
- package/dist/document-DJ0YiVte.d.cts +30 -0
- package/dist/document-DMHIUE3J.d.mts +17 -0
- package/dist/document-DN3g0EFx.d.cts +434 -0
- package/dist/document-DYzRVV1C.d.mts +16 -0
- package/dist/document-D_ZMbzn6.d.cts +18 -0
- package/dist/document-DdRo9TdG.d.mts +12223 -0
- package/dist/document-DeoRGh7p.d.mts +19 -0
- package/dist/document-DsIPBTG8.cjs +30 -0
- package/dist/document-DsSaMVGb.cjs +106 -0
- package/dist/document-Gx2Vrg_w.d.mts +267 -0
- package/dist/document-IIJpsOIO.d.cts +16 -0
- package/dist/document-WHS8GHY5.d.mts +18 -0
- package/dist/document-dqrWptdY.d.cts +244 -0
- package/dist/document-hEBlSep8.d.cts +15 -0
- package/dist/document-rbMXLGxt.cjs +103 -0
- package/dist/document-si7GYS5g.d.mts +19 -0
- package/dist/document-vq-7rcU5.d.mts +244 -0
- package/dist/entities/audit-log/index.cjs +127 -0
- package/dist/entities/audit-log/index.d.cts +134 -0
- package/dist/entities/audit-log/index.d.mts +134 -0
- package/dist/entities/audit-log/index.mjs +115 -0
- package/dist/entities/blog-page/index.cjs +16 -0
- package/dist/entities/blog-page/index.d.cts +257 -0
- package/dist/entities/blog-page/index.d.mts +257 -0
- package/dist/entities/blog-page/index.mjs +13 -0
- package/dist/entities/blog-post/index.cjs +33 -0
- package/dist/entities/blog-post/index.d.cts +917 -0
- package/dist/entities/blog-post/index.d.mts +917 -0
- package/dist/entities/blog-post/index.mjs +21 -0
- package/dist/entities/careers-page/index.cjs +16 -0
- package/dist/entities/careers-page/index.d.cts +257 -0
- package/dist/entities/careers-page/index.d.mts +257 -0
- package/dist/entities/careers-page/index.mjs +13 -0
- package/dist/entities/category/index.cjs +63 -0
- package/dist/entities/category/index.d.cts +300 -0
- package/dist/entities/category/index.d.mts +300 -0
- package/dist/entities/category/index.mjs +52 -0
- package/dist/entities/client/index.cjs +96 -0
- package/dist/entities/client/index.d.cts +85 -0
- package/dist/entities/client/index.d.mts +85 -0
- package/dist/entities/client/index.mjs +83 -0
- package/dist/entities/client-content-pillar/index.cjs +70 -0
- package/dist/entities/client-content-pillar/index.d.cts +49 -0
- package/dist/entities/client-content-pillar/index.d.mts +49 -0
- package/dist/entities/client-content-pillar/index.mjs +59 -0
- package/dist/entities/client-media-platform/index.cjs +74 -0
- package/dist/entities/client-media-platform/index.d.cts +53 -0
- package/dist/entities/client-media-platform/index.d.mts +53 -0
- package/dist/entities/client-media-platform/index.mjs +63 -0
- package/dist/entities/client-project/index.cjs +205 -0
- package/dist/entities/client-project/index.d.cts +147 -0
- package/dist/entities/client-project/index.d.mts +147 -0
- package/dist/entities/client-project/index.mjs +188 -0
- package/dist/entities/client-report/index.cjs +82 -0
- package/dist/entities/client-report/index.d.cts +63 -0
- package/dist/entities/client-report/index.d.mts +63 -0
- package/dist/entities/client-report/index.mjs +71 -0
- package/dist/entities/client-styleguide/index.cjs +77 -0
- package/dist/entities/client-styleguide/index.d.cts +48 -0
- package/dist/entities/client-styleguide/index.d.mts +48 -0
- package/dist/entities/client-styleguide/index.mjs +66 -0
- package/dist/entities/client-user/index.cjs +78 -0
- package/dist/entities/client-user/index.d.cts +47 -0
- package/dist/entities/client-user/index.d.mts +47 -0
- package/dist/entities/client-user/index.mjs +64 -0
- package/dist/entities/comment/index.cjs +137 -0
- package/dist/entities/comment/index.d.cts +2 -0
- package/dist/entities/comment/index.d.mts +2 -0
- package/dist/entities/comment/index.mjs +116 -0
- package/dist/entities/content-pillar/index.cjs +59 -0
- package/dist/entities/content-pillar/index.d.cts +50 -0
- package/dist/entities/content-pillar/index.d.mts +50 -0
- package/dist/entities/content-pillar/index.mjs +48 -0
- package/dist/entities/faq-page/index.cjs +17 -0
- package/dist/entities/faq-page/index.d.cts +335 -0
- package/dist/entities/faq-page/index.d.mts +335 -0
- package/dist/entities/faq-page/index.mjs +14 -0
- package/dist/entities/formatter/index.cjs +258 -0
- package/dist/entities/formatter/index.d.cts +121 -0
- package/dist/entities/formatter/index.d.mts +121 -0
- package/dist/entities/formatter/index.mjs +233 -0
- package/dist/entities/gcflytour/index.cjs +79 -0
- package/dist/entities/gcflytour/index.d.cts +61 -0
- package/dist/entities/gcflytour/index.d.mts +61 -0
- package/dist/entities/gcflytour/index.mjs +68 -0
- package/dist/entities/gcflytour-snap/index.cjs +78 -0
- package/dist/entities/gcflytour-snap/index.d.cts +59 -0
- package/dist/entities/gcflytour-snap/index.d.mts +59 -0
- package/dist/entities/gcflytour-snap/index.mjs +67 -0
- package/dist/entities/landing-page/index.cjs +28 -0
- package/dist/entities/landing-page/index.d.cts +479 -0
- package/dist/entities/landing-page/index.d.mts +479 -0
- package/dist/entities/landing-page/index.mjs +25 -0
- package/dist/entities/lead/index.cjs +63 -0
- package/dist/entities/lead/index.d.cts +75 -0
- package/dist/entities/lead/index.d.mts +75 -0
- package/dist/entities/lead/index.mjs +57 -0
- package/dist/entities/media-content-type/index.cjs +100 -0
- package/dist/entities/media-content-type/index.d.cts +66 -0
- package/dist/entities/media-content-type/index.d.mts +66 -0
- package/dist/entities/media-content-type/index.mjs +89 -0
- package/dist/entities/media-creative-format/index.cjs +79 -0
- package/dist/entities/media-creative-format/index.d.cts +54 -0
- package/dist/entities/media-creative-format/index.d.mts +54 -0
- package/dist/entities/media-creative-format/index.mjs +68 -0
- package/dist/entities/media-medium/index.cjs +90 -0
- package/dist/entities/media-medium/index.d.cts +77 -0
- package/dist/entities/media-medium/index.d.mts +77 -0
- package/dist/entities/media-medium/index.mjs +79 -0
- package/dist/entities/media-platform/index.cjs +118 -0
- package/dist/entities/media-platform/index.d.cts +74 -0
- package/dist/entities/media-platform/index.d.mts +74 -0
- package/dist/entities/media-platform/index.mjs +107 -0
- package/dist/entities/monday-workspace/index.cjs +66 -0
- package/dist/entities/monday-workspace/index.d.cts +47 -0
- package/dist/entities/monday-workspace/index.d.mts +47 -0
- package/dist/entities/monday-workspace/index.mjs +55 -0
- package/dist/entities/newsletter-signup/index.cjs +67 -0
- package/dist/entities/newsletter-signup/index.d.cts +76 -0
- package/dist/entities/newsletter-signup/index.d.mts +76 -0
- package/dist/entities/newsletter-signup/index.mjs +60 -0
- package/dist/entities/policy-page/index.cjs +23 -0
- package/dist/entities/policy-page/index.d.cts +331 -0
- package/dist/entities/policy-page/index.d.mts +331 -0
- package/dist/entities/policy-page/index.mjs +20 -0
- package/dist/entities/product/index.cjs +28 -0
- package/dist/entities/product/index.d.cts +325 -0
- package/dist/entities/product/index.d.mts +325 -0
- package/dist/entities/product/index.mjs +23 -0
- package/dist/entities/product-highlight/index.cjs +28 -0
- package/dist/entities/product-highlight/index.d.cts +245 -0
- package/dist/entities/product-highlight/index.d.mts +245 -0
- package/dist/entities/product-highlight/index.mjs +23 -0
- package/dist/entities/resume/index.cjs +129 -0
- package/dist/entities/resume/index.d.cts +198 -0
- package/dist/entities/resume/index.d.mts +198 -0
- package/dist/entities/resume/index.mjs +119 -0
- package/dist/entities/sharpspring/index.cjs +19 -0
- package/dist/entities/sharpspring/index.d.cts +16 -0
- package/dist/entities/sharpspring/index.d.mts +16 -0
- package/dist/entities/sharpspring/index.mjs +16 -0
- package/dist/entities/tag/index.cjs +61 -0
- package/dist/entities/tag/index.d.cts +54 -0
- package/dist/entities/tag/index.d.mts +54 -0
- package/dist/entities/tag/index.mjs +50 -0
- package/dist/entities/team-member/index.cjs +29 -0
- package/dist/entities/team-member/index.d.cts +210 -0
- package/dist/entities/team-member/index.d.mts +210 -0
- package/dist/entities/team-member/index.mjs +17 -0
- package/dist/entities/team-page/index.cjs +16 -0
- package/dist/entities/team-page/index.d.cts +257 -0
- package/dist/entities/team-page/index.d.mts +257 -0
- package/dist/entities/team-page/index.mjs +13 -0
- package/dist/entities/teamwork/index.cjs +74 -0
- package/dist/entities/teamwork/index.d.cts +512 -0
- package/dist/entities/teamwork/index.d.mts +512 -0
- package/dist/entities/teamwork/index.mjs +68 -0
- package/dist/entities/trend/index.cjs +34 -0
- package/dist/entities/trend/index.d.cts +347 -0
- package/dist/entities/trend/index.d.mts +347 -0
- package/dist/entities/trend/index.mjs +28 -0
- package/dist/entities/up-auth/index.cjs +56 -0
- package/dist/entities/up-auth/index.d.cts +2 -0
- package/dist/entities/up-auth/index.d.mts +2 -0
- package/dist/entities/up-auth/index.mjs +44 -0
- package/dist/entities/up-permission/index.cjs +12 -0
- package/dist/entities/up-permission/index.d.cts +14 -0
- package/dist/entities/up-permission/index.d.mts +14 -0
- package/dist/entities/up-permission/index.mjs +9 -0
- package/dist/entities/up-role/index.cjs +28 -0
- package/dist/entities/up-role/index.d.cts +7 -0
- package/dist/entities/up-role/index.d.mts +7 -0
- package/dist/entities/up-role/index.mjs +23 -0
- package/dist/entities/up-user/index.cjs +64 -0
- package/dist/entities/up-user/index.d.cts +38 -0
- package/dist/entities/up-user/index.d.mts +38 -0
- package/dist/entities/up-user/index.mjs +54 -0
- package/dist/entities/upload/index.cjs +35 -0
- package/dist/entities/upload/index.d.cts +31 -0
- package/dist/entities/upload/index.d.mts +31 -0
- package/dist/entities/upload/index.mjs +29 -0
- package/dist/entities/url-redirect/index.cjs +67 -0
- package/dist/entities/url-redirect/index.d.cts +45 -0
- package/dist/entities/url-redirect/index.d.mts +45 -0
- package/dist/entities/url-redirect/index.mjs +54 -0
- package/dist/entities/user-account/index.cjs +48 -0
- package/dist/entities/user-account/index.d.cts +39 -0
- package/dist/entities/user-account/index.d.mts +39 -0
- package/dist/entities/user-account/index.mjs +39 -0
- package/dist/entities/utm-link-builder/index.cjs +84 -0
- package/dist/entities/utm-link-builder/index.d.cts +191 -0
- package/dist/entities/utm-link-builder/index.d.mts +191 -0
- package/dist/entities/utm-link-builder/index.mjs +76 -0
- package/dist/entities/utm-meta/index.cjs +19 -0
- package/dist/entities/utm-meta/index.d.cts +83 -0
- package/dist/entities/utm-meta/index.d.mts +83 -0
- package/dist/entities/utm-meta/index.mjs +16 -0
- package/dist/entities/utm-tracking-link/index.cjs +199 -0
- package/dist/entities/utm-tracking-link/index.d.cts +235 -0
- package/dist/entities/utm-tracking-link/index.d.mts +235 -0
- package/dist/entities/utm-tracking-link/index.mjs +184 -0
- package/dist/fields-BQHSYj70.d.cts +7 -0
- package/dist/fields-qx-5saY5.d.mts +7 -0
- package/dist/fonts-CGSHKgp0.cjs +125 -0
- package/dist/fonts-tMy55UFs.mjs +58 -0
- package/dist/index-BI8tN-QZ.d.mts +99 -0
- package/dist/index-BLE_fX1Q.d.cts +200 -0
- package/dist/index-Bht1Jd5l.d.mts +422 -0
- package/dist/index-DYPjS1qh.d.mts +200 -0
- package/dist/index-DpYYzY_9.d.cts +99 -0
- package/dist/index-ZBDWYTfn.d.cts +422 -0
- package/dist/json-BJ8GyrtC.d.cts +9 -0
- package/dist/json-BgewUW_1.cjs +19 -0
- package/dist/json-CTduX6Ak.mjs +12 -0
- package/dist/json-CqAaKeHA.d.mts +9 -0
- package/dist/media-upload-B6aQYeRM.cjs +59 -0
- package/dist/media-upload-DiRJksSU.mjs +40 -0
- package/dist/pagination-4pZafglS.cjs +23 -0
- package/dist/pagination-owwfYJS6.mjs +6 -0
- package/dist/{permissions.cjs → permissions/index.cjs} +6 -89
- package/dist/permissions/index.d.cts +2 -0
- package/dist/permissions/index.d.mts +2 -0
- package/dist/{permissions.mjs → permissions/index.mjs} +3 -86
- package/dist/query.schema-BOn5Kk_p.d.mts +41 -0
- package/dist/query.schema-CItKlb0x.d.cts +41 -0
- package/dist/query.schema-DHTf6rTw.cjs +95 -0
- package/dist/query.schema-YKoOuBnk.mjs +40 -0
- package/dist/regex-BnKGcdS4.mjs +55 -0
- package/dist/regex-Cl5goNwp.cjs +342 -0
- package/dist/relations-C04F46xL.mjs +41 -0
- package/dist/relations-CGu18hfT.cjs +90 -0
- package/dist/response-C-7nyNVD.d.mts +57 -0
- package/dist/response-c6SgLvi9.d.cts +57 -0
- package/dist/strapi-C0DtxJLD.mjs +9 -0
- package/dist/strapi-C7POOPEf.cjs +34 -0
- package/dist/strapi-COeswSwJ.mjs +49 -0
- package/dist/strapi-DmhV7ODq.cjs +72 -0
- package/dist/theme-Ba9vW4PA.cjs +230 -0
- package/dist/theme-BhQd4eMI.mjs +97 -0
- package/dist/{utilities.cjs → utilities/index.cjs} +9 -28
- package/dist/utilities/index.d.cts +24 -0
- package/dist/utilities/index.d.mts +24 -0
- package/dist/{utilities.mjs → utilities/index.mjs} +9 -25
- package/dist/validators-Bc9Is5Sr.cjs +222 -0
- package/dist/validators-P5E_3qzc.mjs +95 -0
- package/package.json +64 -40
- package/dist/constants.cjs +0 -461
- package/dist/constants.d.cts +0 -2
- package/dist/constants.d.mts +0 -2
- package/dist/constants.mjs +0 -353
- package/dist/index-CiWVYf_f.d.cts +0 -291
- package/dist/index-D5uEXy4J.d.mts +0 -4509
- package/dist/index-DOR_It7I.d.mts +0 -291
- package/dist/index-Df4iWapE.d.cts +0 -4509
- package/dist/index.cjs +0 -384
- package/dist/index.d.cts +0 -3
- package/dist/index.d.mts +0 -3
- package/dist/index.mjs +0 -6
- package/dist/permissions.d.cts +0 -2
- package/dist/permissions.d.mts +0 -2
- package/dist/schemas.cjs +0 -2326
- package/dist/schemas.d.cts +0 -2
- package/dist/schemas.d.mts +0 -2
- package/dist/schemas.mjs +0 -2068
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.mjs +0 -1
- package/dist/utilities.d.cts +0 -2
- package/dist/utilities.d.mts +0 -2
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
|
+
import { J as ERROR_MESSAGE_UTM_URL, K as ERROR_MESSAGE_URL_NO_QUERY_PARAMS, U as ERROR_MESSAGE_INVALID_URL, _ as LIMIT_MAX_UTM_ID, c as LIMIT_LONG_STRING_MAX_LENGTH, g as LIMIT_MAX_UTM_CREATIVE_FORMAT, h as LIMIT_MAX_UTM_CONTENT, m as LIMIT_MAX_UTM_CAMPAIGN, r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE, v as LIMIT_MAX_UTM_MEDIUM, y as LIMIT_MAX_UTM_SOURCE } from "../../regex-BnKGcdS4.mjs";
|
|
3
|
+
import { c as VStringLongNullable, d as VStringMinMax, f as VStringMinMaxRegex, g as VStringShortNullable, h as VStringShort, i as VSize, l as VStringMax, r as VPage, x as VStringUrlUtm, y as VStringUrlNoUtm } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
+
import { a as SAssociateOneEntity, s as SQueryManyEntities } from "../../relations-C04F46xL.mjs";
|
|
5
|
+
import * as v from "valibot";
|
|
6
|
+
//#region src/entities/utm-tracking-link/constants.ts
|
|
7
|
+
const LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE = 10;
|
|
8
|
+
const LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE = 100;
|
|
9
|
+
const UTM_TRACKING_LINK_SORT_KEYS = [
|
|
10
|
+
"id",
|
|
11
|
+
"creator",
|
|
12
|
+
"client",
|
|
13
|
+
"url_destination",
|
|
14
|
+
"utm_medium",
|
|
15
|
+
"utm_source",
|
|
16
|
+
"utm_campaign",
|
|
17
|
+
"utm_content",
|
|
18
|
+
"utm_creative_format",
|
|
19
|
+
"utm_id",
|
|
20
|
+
"campaign_phase",
|
|
21
|
+
"campaign_product",
|
|
22
|
+
"campaign_targeting",
|
|
23
|
+
"campaign_key",
|
|
24
|
+
"creative_format",
|
|
25
|
+
"creative_format_variants",
|
|
26
|
+
"url",
|
|
27
|
+
"is_active",
|
|
28
|
+
"createdAt",
|
|
29
|
+
"updatedAt"
|
|
30
|
+
];
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/entities/utm-tracking-link/document.ts
|
|
33
|
+
const UtmTrackingLinkDocument = v.object({
|
|
34
|
+
...BaseDocument.entries,
|
|
35
|
+
url_destination: v.string(),
|
|
36
|
+
utm_medium: v.string(),
|
|
37
|
+
utm_source: v.string(),
|
|
38
|
+
utm_campaign: v.string(),
|
|
39
|
+
utm_content: v.nullable(v.string()),
|
|
40
|
+
utm_creative_format: v.nullable(v.string()),
|
|
41
|
+
utm_id: v.nullable(v.string()),
|
|
42
|
+
campaign_phase: v.string(),
|
|
43
|
+
campaign_product: v.nullable(v.string()),
|
|
44
|
+
campaign_targeting: v.nullable(v.string()),
|
|
45
|
+
campaign_key: v.nullable(v.string()),
|
|
46
|
+
creative_format: v.nullable(v.string()),
|
|
47
|
+
creative_format_variants: v.nullable(v.string()),
|
|
48
|
+
url: v.string(),
|
|
49
|
+
is_active: v.boolean(),
|
|
50
|
+
notes: v.nullable(v.string())
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/entities/utm-tracking-link/fields.ts
|
|
54
|
+
const QuerySortUtmTrackingLinks = v.optional(v.pipe(v.array(v.picklist(UTM_TRACKING_LINK_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(UTM_TRACKING_LINK_SORT_KEYS.length)));
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/entities/utm-tracking-link/mutation.ts
|
|
57
|
+
const CreateUtmTrackingLinkDocument = v.object({
|
|
58
|
+
creator: VStringShort(),
|
|
59
|
+
client: VStringShort(),
|
|
60
|
+
url_destination: VStringUrlNoUtm(),
|
|
61
|
+
utm_source: VStringMinMaxRegex(1, LIMIT_MAX_UTM_SOURCE, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
62
|
+
utm_medium: VStringMinMaxRegex(1, LIMIT_MAX_UTM_MEDIUM, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
63
|
+
utm_campaign: VStringMinMaxRegex(1, LIMIT_MAX_UTM_CAMPAIGN, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
64
|
+
utm_content: VStringShortNullable(),
|
|
65
|
+
utm_creative_format: VStringShortNullable(),
|
|
66
|
+
utm_id: VStringShortNullable(),
|
|
67
|
+
campaign_phase: VStringShort(),
|
|
68
|
+
campaign_product: VStringShortNullable(),
|
|
69
|
+
campaign_targeting: v.optional(v.nullable(v.pipe(v.array(VStringMax()), v.transform((value) => value.join(","))))),
|
|
70
|
+
campaign_key: v.optional(v.nullable(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE))),
|
|
71
|
+
creative_format: VStringShortNullable(),
|
|
72
|
+
creative_format_variants: v.optional(v.nullable(v.pipe(v.array(VStringMax()), v.transform((value) => value.join(","))))),
|
|
73
|
+
url: v.pipe(v.string(), v.trim(), v.url(ERROR_MESSAGE_INVALID_URL), v.check((input) => {
|
|
74
|
+
return input.includes("utm_");
|
|
75
|
+
}, ERROR_MESSAGE_UTM_URL)),
|
|
76
|
+
is_active: v.boolean(),
|
|
77
|
+
notes: VStringLongNullable()
|
|
78
|
+
});
|
|
79
|
+
const CreateUtmTrackingLinkDocumentRequest = v.object({
|
|
80
|
+
creator: VStringShort(),
|
|
81
|
+
client: VStringShort(),
|
|
82
|
+
url_destination: VStringUrlNoUtm(),
|
|
83
|
+
utm_source: VStringMinMaxRegex(1, LIMIT_MAX_UTM_SOURCE, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
84
|
+
utm_medium: VStringMinMaxRegex(1, LIMIT_MAX_UTM_MEDIUM, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
85
|
+
utm_campaign: VStringMinMaxRegex(1, LIMIT_MAX_UTM_CAMPAIGN, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
86
|
+
utm_content: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
87
|
+
utm_creative_format: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
88
|
+
utm_id: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
89
|
+
campaign_phase: VStringShort(),
|
|
90
|
+
campaign_product: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
91
|
+
campaign_targeting: VStringShortNullable(),
|
|
92
|
+
campaign_key: v.optional(v.nullable(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE))),
|
|
93
|
+
creative_format: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
94
|
+
creative_format_variants: VStringShortNullable(),
|
|
95
|
+
url: v.pipe(v.string(), v.trim(), v.url(ERROR_MESSAGE_INVALID_URL), v.check((input) => {
|
|
96
|
+
return input.includes("utm_");
|
|
97
|
+
}, ERROR_MESSAGE_UTM_URL)),
|
|
98
|
+
is_active: v.boolean(),
|
|
99
|
+
notes: v.optional(v.nullable(VStringMinMaxRegex(1, LIMIT_LONG_STRING_MAX_LENGTH, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)))
|
|
100
|
+
});
|
|
101
|
+
const CreateUtmTrackingLinkParts = v.object({
|
|
102
|
+
url_destination: VStringUrlNoUtm(),
|
|
103
|
+
utm_source: VStringMinMaxRegex(1, LIMIT_MAX_UTM_SOURCE, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
104
|
+
utm_medium: VStringMinMaxRegex(1, LIMIT_MAX_UTM_MEDIUM, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
105
|
+
utm_campaign: VStringMinMaxRegex(1, LIMIT_MAX_UTM_CAMPAIGN, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
106
|
+
utm_content: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
107
|
+
utm_creative_format: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
108
|
+
utm_id: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
109
|
+
campaign_phase: VStringShort(),
|
|
110
|
+
campaign_product: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
111
|
+
campaign_targeting: v.optional(v.nullable(v.pipe(v.array(VStringShort()), v.transform((value) => value.join(","))))),
|
|
112
|
+
campaign_key: v.optional(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
113
|
+
creative_format: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
114
|
+
creative_format_variants: v.optional(v.nullable(v.pipe(v.array(VStringShort()), v.transform((value) => value.join(","))))),
|
|
115
|
+
url: VStringUrlUtm(),
|
|
116
|
+
is_active: v.boolean(),
|
|
117
|
+
notes: v.optional(v.nullable(VStringMinMaxRegex(1, LIMIT_LONG_STRING_MAX_LENGTH, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)))
|
|
118
|
+
});
|
|
119
|
+
const SFormCreateMultipleUtmTrackingLinkDocuments = v.object({
|
|
120
|
+
creator: VStringShort(),
|
|
121
|
+
client: VStringShort(),
|
|
122
|
+
links: v.pipe(v.array(CreateUtmTrackingLinkParts), v.minLength(1), v.maxLength(100))
|
|
123
|
+
});
|
|
124
|
+
const SReadUtmTrackingLinkDocumentByUrl = v.object({ url: v.pipe(v.string(), v.trim(), v.url(ERROR_MESSAGE_INVALID_URL), v.check((input) => {
|
|
125
|
+
return input.includes("utm_");
|
|
126
|
+
}, ERROR_MESSAGE_UTM_URL)) });
|
|
127
|
+
const UpdateUtmTrackingLinkDocument = v.object({
|
|
128
|
+
creator: v.optional(VStringShort()),
|
|
129
|
+
client: v.optional(VStringShort()),
|
|
130
|
+
url_destination: VStringUrlNoUtm(),
|
|
131
|
+
utm_source: VStringMinMaxRegex(1, LIMIT_MAX_UTM_SOURCE, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
132
|
+
utm_medium: VStringMinMaxRegex(1, LIMIT_MAX_UTM_MEDIUM, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
133
|
+
utm_campaign: VStringMinMaxRegex(1, LIMIT_MAX_UTM_CAMPAIGN, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
|
|
134
|
+
utm_content: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
135
|
+
utm_creative_format: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
136
|
+
utm_id: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
137
|
+
campaign_phase: VStringShort(),
|
|
138
|
+
campaign_product: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
139
|
+
campaign_targeting: v.optional(v.nullable(v.pipe(v.array(VStringShort()), v.transform((value) => value.join(","))))),
|
|
140
|
+
campaign_key: v.optional(v.nullable(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE))),
|
|
141
|
+
creative_format: v.optional(v.nullable(VStringMinMax(1, 255))),
|
|
142
|
+
creative_format_variants: v.optional(v.nullable(v.pipe(v.array(SAssociateOneEntity), v.transform((value) => value.join(","))))),
|
|
143
|
+
url: VStringUrlUtm(),
|
|
144
|
+
is_active: v.boolean(),
|
|
145
|
+
notes: v.optional(v.nullable(VStringMinMaxRegex(1, LIMIT_LONG_STRING_MAX_LENGTH, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)))
|
|
146
|
+
});
|
|
147
|
+
const UpdateUtmTrackingLinkDocumentRequest = v.object({
|
|
148
|
+
documentId: SAssociateOneEntity,
|
|
149
|
+
data: UpdateUtmTrackingLinkDocument
|
|
150
|
+
});
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/entities/utm-tracking-link/query.ts
|
|
153
|
+
const QueryStrapiSearchUtmTrackingLinks = v.object({
|
|
154
|
+
page: VPage(),
|
|
155
|
+
size: VSize(100),
|
|
156
|
+
client_id: v.optional(VStringShort()),
|
|
157
|
+
creator_id: v.optional(VStringShort()),
|
|
158
|
+
clients: v.optional(SQueryManyEntities),
|
|
159
|
+
users: v.optional(SQueryManyEntities),
|
|
160
|
+
url_destination: v.optional(v.pipe(v.string(), v.trim(), v.url(ERROR_MESSAGE_INVALID_URL), v.check((input) => {
|
|
161
|
+
if (input === "") return false;
|
|
162
|
+
return input.indexOf("?") === -1;
|
|
163
|
+
}, ERROR_MESSAGE_URL_NO_QUERY_PARAMS))),
|
|
164
|
+
utm_medium: v.optional(VStringMinMaxRegex(1, LIMIT_MAX_UTM_MEDIUM, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
165
|
+
utm_source: v.optional(VStringMinMaxRegex(1, LIMIT_MAX_UTM_SOURCE, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
166
|
+
utm_campaign: v.optional(VStringMinMaxRegex(1, LIMIT_MAX_UTM_CAMPAIGN, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
167
|
+
utm_content: v.optional(VStringMinMaxRegex(1, LIMIT_MAX_UTM_CONTENT, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
168
|
+
utm_creative_format: v.optional(VStringMinMaxRegex(1, LIMIT_MAX_UTM_CREATIVE_FORMAT, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
169
|
+
utm_id: v.optional(VStringMinMaxRegex(1, LIMIT_MAX_UTM_ID, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
|
|
170
|
+
campaign_phase: v.optional(VStringShort(0)),
|
|
171
|
+
campaign_product: v.optional(VStringShort(0)),
|
|
172
|
+
campaign_targeting: v.optional(VStringShort(0)),
|
|
173
|
+
campaign_key: v.optional(VStringShort(0)),
|
|
174
|
+
creative_format: v.optional(VStringShort(0)),
|
|
175
|
+
creative_format_variants: v.optional(v.array(VStringShort())),
|
|
176
|
+
url: v.optional(v.pipe(v.string(), v.trim(), v.url(ERROR_MESSAGE_INVALID_URL), v.check((input) => {
|
|
177
|
+
return input.includes("utm_");
|
|
178
|
+
}, ERROR_MESSAGE_UTM_URL))),
|
|
179
|
+
is_active: v.optional(v.boolean()),
|
|
180
|
+
notes: v.optional(VStringShort(0)),
|
|
181
|
+
sort: QuerySortUtmTrackingLinks
|
|
182
|
+
});
|
|
183
|
+
//#endregion
|
|
184
|
+
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE, LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE, QuerySortUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UTM_TRACKING_LINK_SORT_KEYS, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest, UtmTrackingLinkDocument };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/up-role/fields.d.ts
|
|
4
|
+
declare const RoleType: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
|
|
5
|
+
type RoleType = v.InferOutput<typeof RoleType>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RoleType as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/up-role/fields.d.ts
|
|
4
|
+
declare const RoleType: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
|
|
5
|
+
type RoleType = v.InferOutput<typeof RoleType>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RoleType as t };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
let valibot = require("valibot");
|
|
3
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
4
|
+
//#region src/base/fonts.ts
|
|
5
|
+
const FONT_HEADER_SIZE = [
|
|
6
|
+
"h1",
|
|
7
|
+
"h2",
|
|
8
|
+
"h3",
|
|
9
|
+
"h4",
|
|
10
|
+
"h5",
|
|
11
|
+
"h6"
|
|
12
|
+
];
|
|
13
|
+
const FontHeaderSize = valibot.picklist(FONT_HEADER_SIZE);
|
|
14
|
+
const WEBSAFE_FONT_SERIF = [
|
|
15
|
+
"serif",
|
|
16
|
+
"Arial",
|
|
17
|
+
"Arial Black",
|
|
18
|
+
"Verdana",
|
|
19
|
+
"Trebuchet MS",
|
|
20
|
+
"Tahoma",
|
|
21
|
+
"Geneva",
|
|
22
|
+
"Helvetica",
|
|
23
|
+
"Segoe UI",
|
|
24
|
+
"Impact",
|
|
25
|
+
"MS Serif"
|
|
26
|
+
];
|
|
27
|
+
const WebSafeFontSerif = valibot.picklist(WEBSAFE_FONT_SERIF);
|
|
28
|
+
const WEBSAFE_FONT_SANS = [
|
|
29
|
+
"sans-serif",
|
|
30
|
+
"Times New Roman",
|
|
31
|
+
"Georgia",
|
|
32
|
+
"Garamond",
|
|
33
|
+
"Palatino",
|
|
34
|
+
"Book Antiqua",
|
|
35
|
+
"MS Sans Serif"
|
|
36
|
+
];
|
|
37
|
+
const WebSafeFontSans = valibot.picklist(WEBSAFE_FONT_SANS);
|
|
38
|
+
const WEBSAFE_FONT_MONO = [
|
|
39
|
+
"monospace",
|
|
40
|
+
"Courier New",
|
|
41
|
+
"Lucida Console",
|
|
42
|
+
"Monaco",
|
|
43
|
+
"Consolas",
|
|
44
|
+
"Lucida Sans Unicode"
|
|
45
|
+
];
|
|
46
|
+
const WebSafeFontMono = valibot.picklist(WEBSAFE_FONT_MONO);
|
|
47
|
+
const WEBSAFE_FONT_DISPLAY = [
|
|
48
|
+
"cursive",
|
|
49
|
+
"Comic Sans MS",
|
|
50
|
+
"Brush Script MT"
|
|
51
|
+
];
|
|
52
|
+
const WebSafeFontDisplay = valibot.picklist(WEBSAFE_FONT_DISPLAY);
|
|
53
|
+
const WebSafeFont = valibot.picklist([
|
|
54
|
+
...WebSafeFontSerif.options,
|
|
55
|
+
...WebSafeFontSans.options,
|
|
56
|
+
...WebSafeFontMono.options,
|
|
57
|
+
...WebSafeFontDisplay.options
|
|
58
|
+
]);
|
|
59
|
+
//#endregion
|
|
60
|
+
Object.defineProperty(exports, "FONT_HEADER_SIZE", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function() {
|
|
63
|
+
return FONT_HEADER_SIZE;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "FontHeaderSize", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function() {
|
|
69
|
+
return FontHeaderSize;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "WEBSAFE_FONT_DISPLAY", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function() {
|
|
75
|
+
return WEBSAFE_FONT_DISPLAY;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "WEBSAFE_FONT_MONO", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function() {
|
|
81
|
+
return WEBSAFE_FONT_MONO;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "WEBSAFE_FONT_SANS", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function() {
|
|
87
|
+
return WEBSAFE_FONT_SANS;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "WEBSAFE_FONT_SERIF", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function() {
|
|
93
|
+
return WEBSAFE_FONT_SERIF;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "WebSafeFont", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function() {
|
|
99
|
+
return WebSafeFont;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "WebSafeFontDisplay", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function() {
|
|
105
|
+
return WebSafeFontDisplay;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "WebSafeFontMono", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function() {
|
|
111
|
+
return WebSafeFontMono;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "WebSafeFontSans", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function() {
|
|
117
|
+
return WebSafeFontSans;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "WebSafeFontSerif", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function() {
|
|
123
|
+
return WebSafeFontSerif;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
//#region src/base/fonts.ts
|
|
3
|
+
const FONT_HEADER_SIZE = [
|
|
4
|
+
"h1",
|
|
5
|
+
"h2",
|
|
6
|
+
"h3",
|
|
7
|
+
"h4",
|
|
8
|
+
"h5",
|
|
9
|
+
"h6"
|
|
10
|
+
];
|
|
11
|
+
const FontHeaderSize = v.picklist(FONT_HEADER_SIZE);
|
|
12
|
+
const WEBSAFE_FONT_SERIF = [
|
|
13
|
+
"serif",
|
|
14
|
+
"Arial",
|
|
15
|
+
"Arial Black",
|
|
16
|
+
"Verdana",
|
|
17
|
+
"Trebuchet MS",
|
|
18
|
+
"Tahoma",
|
|
19
|
+
"Geneva",
|
|
20
|
+
"Helvetica",
|
|
21
|
+
"Segoe UI",
|
|
22
|
+
"Impact",
|
|
23
|
+
"MS Serif"
|
|
24
|
+
];
|
|
25
|
+
const WebSafeFontSerif = v.picklist(WEBSAFE_FONT_SERIF);
|
|
26
|
+
const WEBSAFE_FONT_SANS = [
|
|
27
|
+
"sans-serif",
|
|
28
|
+
"Times New Roman",
|
|
29
|
+
"Georgia",
|
|
30
|
+
"Garamond",
|
|
31
|
+
"Palatino",
|
|
32
|
+
"Book Antiqua",
|
|
33
|
+
"MS Sans Serif"
|
|
34
|
+
];
|
|
35
|
+
const WebSafeFontSans = v.picklist(WEBSAFE_FONT_SANS);
|
|
36
|
+
const WEBSAFE_FONT_MONO = [
|
|
37
|
+
"monospace",
|
|
38
|
+
"Courier New",
|
|
39
|
+
"Lucida Console",
|
|
40
|
+
"Monaco",
|
|
41
|
+
"Consolas",
|
|
42
|
+
"Lucida Sans Unicode"
|
|
43
|
+
];
|
|
44
|
+
const WebSafeFontMono = v.picklist(WEBSAFE_FONT_MONO);
|
|
45
|
+
const WEBSAFE_FONT_DISPLAY = [
|
|
46
|
+
"cursive",
|
|
47
|
+
"Comic Sans MS",
|
|
48
|
+
"Brush Script MT"
|
|
49
|
+
];
|
|
50
|
+
const WebSafeFontDisplay = v.picklist(WEBSAFE_FONT_DISPLAY);
|
|
51
|
+
const WebSafeFont = v.picklist([
|
|
52
|
+
...WebSafeFontSerif.options,
|
|
53
|
+
...WebSafeFontSans.options,
|
|
54
|
+
...WebSafeFontMono.options,
|
|
55
|
+
...WebSafeFontDisplay.options
|
|
56
|
+
]);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { WEBSAFE_FONT_SANS as a, WebSafeFontDisplay as c, WebSafeFontSerif as d, WEBSAFE_FONT_MONO as i, WebSafeFontMono as l, FontHeaderSize as n, WEBSAFE_FONT_SERIF as o, WEBSAFE_FONT_DISPLAY as r, WebSafeFont as s, FONT_HEADER_SIZE as t, WebSafeFontSans as u };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { t as RoleDocument } from "./document-DYzRVV1C.mjs";
|
|
2
|
+
import { t as UserDocument } from "./document-si7GYS5g.mjs";
|
|
3
|
+
import { t as UserAccountDocument } from "./document-Bd2AyLs8.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
|
|
6
|
+
//#region src/entities/up-auth/mutation.d.ts
|
|
7
|
+
declare const SUserToken: v.ObjectSchema<{
|
|
8
|
+
readonly token: v.StringSchema<undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
type SUserToken = v.InferOutput<typeof SUserToken>;
|
|
11
|
+
declare const SLoginUser: v.ObjectSchema<{
|
|
12
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
13
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
type SLoginUser = v.InferOutput<typeof SLoginUser>;
|
|
16
|
+
declare const SRegisterUser: v.ObjectSchema<{
|
|
17
|
+
readonly username: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
18
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
19
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
type SRegisterUser = v.InferOutput<typeof SRegisterUser>;
|
|
22
|
+
declare const SForgotUserPassword: v.ObjectSchema<{
|
|
23
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
type SForgotUserPassword = v.InferOutput<typeof SForgotUserPassword>;
|
|
26
|
+
declare const SRequestConfirmEmail: v.ObjectSchema<{
|
|
27
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
type SRequestConfirmEmail = v.InferOutput<typeof SRequestConfirmEmail>;
|
|
30
|
+
declare const SResetUserPassword: v.ObjectSchema<{
|
|
31
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
32
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
33
|
+
readonly code: v.StringSchema<undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
type SResetUserPassword = v.InferOutput<typeof SResetUserPassword>;
|
|
36
|
+
declare const SChangePassword: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
37
|
+
readonly currentPassword: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
38
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
39
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
40
|
+
}, undefined>, v.BaseValidation<{
|
|
41
|
+
currentPassword: string;
|
|
42
|
+
password: string;
|
|
43
|
+
passwordConfirmation: string;
|
|
44
|
+
}, {
|
|
45
|
+
currentPassword: string;
|
|
46
|
+
password: string;
|
|
47
|
+
passwordConfirmation: string;
|
|
48
|
+
}, v.PartialCheckIssue<{
|
|
49
|
+
password: string;
|
|
50
|
+
passwordConfirmation: string;
|
|
51
|
+
}>>]>;
|
|
52
|
+
type SChangePassword = v.InferOutput<typeof SChangePassword>;
|
|
53
|
+
declare const SAuthRawAccessToken: v.ObjectSchema<{
|
|
54
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
56
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
58
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
type SAuthRawAccessToken = v.InferOutput<typeof SAuthRawAccessToken>;
|
|
61
|
+
declare const SAuthConnectProviderRedirectSearch: v.ObjectSchema<{
|
|
62
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
63
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
64
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
65
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
67
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
68
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
70
|
+
}, undefined>, undefined>;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
type SAuthConnectProviderRedirectSearch = v.InferOutput<typeof SAuthConnectProviderRedirectSearch>;
|
|
73
|
+
declare const SAuthConnectProviderConfirmation: v.ObjectSchema<{
|
|
74
|
+
readonly provider: v.StringSchema<undefined>;
|
|
75
|
+
readonly search: v.ObjectSchema<{
|
|
76
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
77
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
78
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
79
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
81
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
84
|
+
}, undefined>, undefined>;
|
|
85
|
+
}, undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
type SAuthConnectProviderConfirmation = v.InferOutput<typeof SAuthConnectProviderConfirmation>;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/entities/up-auth/types.d.ts
|
|
90
|
+
type AuthorizedUserDocument = Pick<UserDocument, "id" | "documentId" | "createdAt" | "updatedAt" | "publishedAt" | "username" | "email" | "provider" | "confirmed" | "blocked" | "clerk_user_id"> & {
|
|
91
|
+
account: UserAccountDocument;
|
|
92
|
+
role: RoleDocument;
|
|
93
|
+
};
|
|
94
|
+
type UserAuthorizationSuccessResponse = {
|
|
95
|
+
jwt: string;
|
|
96
|
+
user: UserDocument;
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { SAuthRawAccessToken as a, SLoginUser as c, SResetUserPassword as d, SUserToken as f, SAuthConnectProviderRedirectSearch as i, SRegisterUser as l, UserAuthorizationSuccessResponse as n, SChangePassword as o, SAuthConnectProviderConfirmation as r, SForgotUserPassword as s, AuthorizedUserDocument as t, SRequestConfirmEmail as u };
|