@getcommunity/gc-validators 0.0.269 → 0.0.271-alpha.0
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 +2 -40
- 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-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-DWapIF7V.d.cts +12223 -0
- package/dist/document-DYzRVV1C.d.mts +16 -0
- package/dist/document-D_ZMbzn6.d.cts +18 -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-qcC-10Nd.d.mts +12223 -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-CPUGB8lZ.d.mts +95 -0
- package/dist/index-DDYmaYSm.d.mts +200 -0
- package/dist/index-Dl6KBLdT.d.mts +422 -0
- package/dist/index-DmLVZdb3.d.cts +200 -0
- package/dist/index-Dv9bgrpo.d.cts +422 -0
- package/dist/index-H4RC0v4h.d.cts +95 -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-CnH0p5DO.d.mts +0 -4509
- package/dist/index-Cs4i8IvA.d.cts +0 -4509
- package/dist/index-DOR_It7I.d.mts +0 -291
- 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,75 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/lead/document.d.ts
|
|
4
|
+
declare const LeadDocument: v.ObjectSchema<{
|
|
5
|
+
readonly first_name: v.StringSchema<undefined>;
|
|
6
|
+
readonly last_name: v.StringSchema<undefined>;
|
|
7
|
+
readonly email: v.StringSchema<undefined>;
|
|
8
|
+
readonly phone: v.StringSchema<undefined>;
|
|
9
|
+
readonly company: v.StringSchema<undefined>;
|
|
10
|
+
readonly title: v.StringSchema<undefined>;
|
|
11
|
+
readonly message: v.StringSchema<undefined>;
|
|
12
|
+
readonly email_consent: v.BooleanSchema<undefined>;
|
|
13
|
+
readonly sms_consent: v.BooleanSchema<undefined>;
|
|
14
|
+
readonly on_page: v.StringSchema<undefined>;
|
|
15
|
+
readonly captcha: v.StringSchema<undefined>;
|
|
16
|
+
readonly product_interest: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly id: v.NumberSchema<undefined>;
|
|
18
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
19
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
21
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
type LeadDocument = v.InferOutput<typeof LeadDocument>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/entities/lead/mutation.d.ts
|
|
26
|
+
declare const CreateLeadDocument: v.ObjectSchema<{
|
|
27
|
+
readonly first_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
|
+
readonly last_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
29
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
30
|
+
readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>;
|
|
31
|
+
readonly company: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
32
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
33
|
+
readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
34
|
+
readonly product_interest: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
35
|
+
readonly email_consent: v.BooleanSchema<undefined>;
|
|
36
|
+
readonly sms_consent: v.BooleanSchema<undefined>;
|
|
37
|
+
readonly on_page: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
38
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
type CreateLeadDocument = v.InferOutput<typeof CreateLeadDocument>;
|
|
41
|
+
declare const UpdateLeadDocument: v.ObjectSchema<{
|
|
42
|
+
readonly first_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
+
readonly last_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
+
readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
45
|
+
readonly phone: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>, undefined>;
|
|
46
|
+
readonly company: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly product_interest: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
50
|
+
readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
51
|
+
readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
52
|
+
readonly on_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
type UpdateLeadDocument = v.InferOutput<typeof UpdateLeadDocument>;
|
|
56
|
+
declare const UpdateLeadDocumentRequest: v.ObjectSchema<{
|
|
57
|
+
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
58
|
+
readonly data: v.ObjectSchema<{
|
|
59
|
+
readonly first_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
60
|
+
readonly last_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
+
readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
62
|
+
readonly phone: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>, undefined>;
|
|
63
|
+
readonly company: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
64
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
65
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
66
|
+
readonly product_interest: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
67
|
+
readonly email_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
68
|
+
readonly sms_consent: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
69
|
+
readonly on_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
70
|
+
readonly captcha: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
}, undefined>;
|
|
73
|
+
type UpdateLeadDocumentRequest = v.InferOutput<typeof UpdateLeadDocumentRequest>;
|
|
74
|
+
//#endregion
|
|
75
|
+
export { CreateLeadDocument, LeadDocument, UpdateLeadDocument, UpdateLeadDocumentRequest };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
|
+
import { c as LIMIT_LONG_STRING_MAX_LENGTH, l as LIMIT_MAX_DESTINATION } from "../../regex-BnKGcdS4.mjs";
|
|
3
|
+
import { d as VStringMinMax, l as VStringMax, o as VStringEmail, p as VStringPhone } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
+
import { a as SAssociateOneEntity } from "../../relations-C04F46xL.mjs";
|
|
5
|
+
import * as v from "valibot";
|
|
6
|
+
//#region src/entities/lead/document.ts
|
|
7
|
+
const LeadDocument = v.object({
|
|
8
|
+
...BaseDocument.entries,
|
|
9
|
+
first_name: v.string(),
|
|
10
|
+
last_name: v.string(),
|
|
11
|
+
email: v.string(),
|
|
12
|
+
phone: v.string(),
|
|
13
|
+
company: v.string(),
|
|
14
|
+
title: v.string(),
|
|
15
|
+
message: v.string(),
|
|
16
|
+
email_consent: v.boolean(),
|
|
17
|
+
sms_consent: v.boolean(),
|
|
18
|
+
on_page: v.string(),
|
|
19
|
+
captcha: v.string(),
|
|
20
|
+
product_interest: v.nullable(v.string())
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/entities/lead/mutation.ts
|
|
24
|
+
const CreateLeadDocument = v.object({
|
|
25
|
+
first_name: VStringMinMax(1, 255),
|
|
26
|
+
last_name: VStringMinMax(1, 255),
|
|
27
|
+
email: VStringEmail(),
|
|
28
|
+
phone: VStringPhone(),
|
|
29
|
+
company: VStringMinMax(1, 255),
|
|
30
|
+
title: VStringMinMax(1, 255),
|
|
31
|
+
message: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH),
|
|
32
|
+
product_interest: VStringMax(255),
|
|
33
|
+
email_consent: v.boolean(),
|
|
34
|
+
sms_consent: v.boolean(),
|
|
35
|
+
on_page: VStringMax(LIMIT_MAX_DESTINATION),
|
|
36
|
+
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
|
|
37
|
+
});
|
|
38
|
+
const UpdateLeadDocument = v.object({
|
|
39
|
+
first_name: v.optional(VStringMinMax(1, 255)),
|
|
40
|
+
last_name: v.optional(VStringMinMax(1, 255)),
|
|
41
|
+
email: v.optional(VStringEmail()),
|
|
42
|
+
phone: v.optional(VStringPhone()),
|
|
43
|
+
company: v.optional(VStringMinMax(1, 255)),
|
|
44
|
+
title: v.optional(VStringMinMax(1, 255)),
|
|
45
|
+
message: v.optional(VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)),
|
|
46
|
+
product_interest: v.optional(v.nullable(VStringMax(255))),
|
|
47
|
+
email_consent: v.optional(v.boolean()),
|
|
48
|
+
sms_consent: v.optional(v.boolean()),
|
|
49
|
+
on_page: v.optional(VStringMax(LIMIT_MAX_DESTINATION)),
|
|
50
|
+
captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
|
|
51
|
+
});
|
|
52
|
+
const UpdateLeadDocumentRequest = v.object({
|
|
53
|
+
documentId: SAssociateOneEntity,
|
|
54
|
+
data: UpdateLeadDocument
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { CreateLeadDocument, LeadDocument, UpdateLeadDocument, UpdateLeadDocumentRequest };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
|
+
const require_regex = require("../../regex-Cl5goNwp.cjs");
|
|
5
|
+
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
+
const require_relations = require("../../relations-CGu18hfT.cjs");
|
|
7
|
+
const require_components_shared_index = require("../../components/shared/index.cjs");
|
|
8
|
+
let valibot = require("valibot");
|
|
9
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
|
+
//#region src/entities/media-content-type/constants.ts
|
|
11
|
+
const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = 100;
|
|
12
|
+
const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = 1e3;
|
|
13
|
+
const MEDIA_CONTENT_TYPE_SORT_KEYS = [
|
|
14
|
+
"id",
|
|
15
|
+
"title",
|
|
16
|
+
"slug",
|
|
17
|
+
"is_active",
|
|
18
|
+
"is_organic_social",
|
|
19
|
+
"is_paid_media",
|
|
20
|
+
"createdAt",
|
|
21
|
+
"updatedAt",
|
|
22
|
+
"media_platforms.title",
|
|
23
|
+
"media_platforms.slug",
|
|
24
|
+
"media_platforms.utm_key",
|
|
25
|
+
"media_platforms.is_active",
|
|
26
|
+
"media_platforms.is_organic_social",
|
|
27
|
+
"media_platforms.is_paid_media",
|
|
28
|
+
"media_platforms.createdAt",
|
|
29
|
+
"media_platforms.updatedAt",
|
|
30
|
+
"media_creative_formats.title",
|
|
31
|
+
"media_creative_formats.slug",
|
|
32
|
+
"media_creative_formats.is_active",
|
|
33
|
+
"media_creative_formats.createdAt",
|
|
34
|
+
"media_creative_formats.updatedAt"
|
|
35
|
+
];
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/entities/media-content-type/document.ts
|
|
38
|
+
const MediaContentTypeDocument = valibot.object({
|
|
39
|
+
...require_document.BaseDocument.entries,
|
|
40
|
+
title: valibot.string(),
|
|
41
|
+
slug: valibot.string(),
|
|
42
|
+
is_active: valibot.boolean(),
|
|
43
|
+
is_organic_social: valibot.boolean(),
|
|
44
|
+
is_paid_media: valibot.boolean(),
|
|
45
|
+
description: valibot.nullable(valibot.string()),
|
|
46
|
+
information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock))
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/entities/media-content-type/fields.ts
|
|
50
|
+
const QuerySortMediaContentTypes = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_CONTENT_TYPE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_CONTENT_TYPE_SORT_KEYS.length)));
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/entities/media-content-type/mutation.ts
|
|
53
|
+
const CreateMediaContentTypeDocument = valibot.object({
|
|
54
|
+
title: require_validators.VStringMinMax(1, 255),
|
|
55
|
+
slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
|
|
56
|
+
is_active: valibot.boolean(),
|
|
57
|
+
is_organic_social: valibot.boolean(),
|
|
58
|
+
is_paid_media: valibot.boolean(),
|
|
59
|
+
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
60
|
+
media_platforms: valibot.optional(require_relations.SAssociateManyEntities),
|
|
61
|
+
media_creative_formats: valibot.optional(require_relations.SAssociateManyEntities)
|
|
62
|
+
});
|
|
63
|
+
const UpdateMediaContentTypeDocument = valibot.object({
|
|
64
|
+
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
65
|
+
slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
|
|
66
|
+
is_active: valibot.optional(valibot.boolean()),
|
|
67
|
+
is_organic_social: valibot.optional(valibot.boolean()),
|
|
68
|
+
is_paid_media: valibot.optional(valibot.boolean()),
|
|
69
|
+
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
70
|
+
media_platforms: valibot.optional(require_relations.SAssociateManyEntities),
|
|
71
|
+
media_creative_formats: valibot.optional(require_relations.SAssociateManyEntities)
|
|
72
|
+
});
|
|
73
|
+
const UpdateMediaContentTypeDocumentRequest = valibot.object({
|
|
74
|
+
documentId: require_relations.SAssociateOneEntity,
|
|
75
|
+
data: UpdateMediaContentTypeDocument
|
|
76
|
+
});
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/entities/media-content-type/query.ts
|
|
79
|
+
const QueryStrapiSearchMediaContentTypes = valibot.object({
|
|
80
|
+
page: require_validators.VPage(),
|
|
81
|
+
size: require_validators.VSize(LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE),
|
|
82
|
+
title: valibot.optional(require_validators.VStringMax()),
|
|
83
|
+
slug: valibot.optional(require_validators.VStringMax()),
|
|
84
|
+
is_active: valibot.optional(valibot.boolean()),
|
|
85
|
+
is_organic_social: valibot.optional(valibot.boolean()),
|
|
86
|
+
is_paid_media: valibot.optional(valibot.boolean()),
|
|
87
|
+
media_platforms: valibot.optional(require_relations.SQueryManyEntities),
|
|
88
|
+
media_creative_formats: valibot.optional(require_relations.SQueryManyEntities),
|
|
89
|
+
sort: QuerySortMediaContentTypes
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
exports.CreateMediaContentTypeDocument = CreateMediaContentTypeDocument;
|
|
93
|
+
exports.LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE;
|
|
94
|
+
exports.LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE;
|
|
95
|
+
exports.MEDIA_CONTENT_TYPE_SORT_KEYS = MEDIA_CONTENT_TYPE_SORT_KEYS;
|
|
96
|
+
exports.MediaContentTypeDocument = MediaContentTypeDocument;
|
|
97
|
+
exports.QuerySortMediaContentTypes = QuerySortMediaContentTypes;
|
|
98
|
+
exports.QueryStrapiSearchMediaContentTypes = QueryStrapiSearchMediaContentTypes;
|
|
99
|
+
exports.UpdateMediaContentTypeDocument = UpdateMediaContentTypeDocument;
|
|
100
|
+
exports.UpdateMediaContentTypeDocumentRequest = UpdateMediaContentTypeDocumentRequest;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { t as MediaContentTypeDocument } from "../../document-DJ0YiVte.cjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/entities/media-content-type/constants.d.ts
|
|
5
|
+
declare const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = 100;
|
|
6
|
+
declare const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = 1000;
|
|
7
|
+
declare const MEDIA_CONTENT_TYPE_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt", "media_creative_formats.title", "media_creative_formats.slug", "media_creative_formats.is_active", "media_creative_formats.createdAt", "media_creative_formats.updatedAt"];
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/entities/media-content-type/fields.d.ts
|
|
10
|
+
declare const QuerySortMediaContentTypes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
11
|
+
type QuerySortMediaContentTypes = v.InferOutput<typeof QuerySortMediaContentTypes>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/entities/media-content-type/mutation.d.ts
|
|
14
|
+
declare const CreateMediaContentTypeDocument: v.ObjectSchema<{
|
|
15
|
+
readonly title: 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, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
17
|
+
readonly is_active: v.BooleanSchema<undefined>;
|
|
18
|
+
readonly is_organic_social: v.BooleanSchema<undefined>;
|
|
19
|
+
readonly is_paid_media: v.BooleanSchema<undefined>;
|
|
20
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
21
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
22
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
type CreateMediaContentTypeDocument = v.InferOutput<typeof CreateMediaContentTypeDocument>;
|
|
25
|
+
declare const UpdateMediaContentTypeDocument: v.ObjectSchema<{
|
|
26
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
28
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
29
|
+
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
30
|
+
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
31
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
32
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
33
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
type UpdateMediaContentTypeDocument = v.InferOutput<typeof UpdateMediaContentTypeDocument>;
|
|
36
|
+
declare const UpdateMediaContentTypeDocumentRequest: v.ObjectSchema<{
|
|
37
|
+
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
38
|
+
readonly data: v.ObjectSchema<{
|
|
39
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
41
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
+
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
+
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
44
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
45
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
46
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
}, undefined>;
|
|
49
|
+
type UpdateMediaContentTypeDocumentRequest = v.InferOutput<typeof UpdateMediaContentTypeDocumentRequest>;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/entities/media-content-type/query.d.ts
|
|
52
|
+
declare const QueryStrapiSearchMediaContentTypes: v.ObjectSchema<{
|
|
53
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
54
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
55
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
57
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
58
|
+
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
59
|
+
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
61
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
62
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
type QueryStrapiSearchMediaContentTypes = v.InferOutput<typeof QueryStrapiSearchMediaContentTypes>;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { CreateMediaContentTypeDocument, LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE, LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE, MEDIA_CONTENT_TYPE_SORT_KEYS, MediaContentTypeDocument, QuerySortMediaContentTypes, QueryStrapiSearchMediaContentTypes, UpdateMediaContentTypeDocument, UpdateMediaContentTypeDocumentRequest };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { t as MediaContentTypeDocument } from "../../document-B_pJW777.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/entities/media-content-type/constants.d.ts
|
|
5
|
+
declare const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = 100;
|
|
6
|
+
declare const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = 1000;
|
|
7
|
+
declare const MEDIA_CONTENT_TYPE_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt", "media_creative_formats.title", "media_creative_formats.slug", "media_creative_formats.is_active", "media_creative_formats.createdAt", "media_creative_formats.updatedAt"];
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/entities/media-content-type/fields.d.ts
|
|
10
|
+
declare const QuerySortMediaContentTypes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
11
|
+
type QuerySortMediaContentTypes = v.InferOutput<typeof QuerySortMediaContentTypes>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/entities/media-content-type/mutation.d.ts
|
|
14
|
+
declare const CreateMediaContentTypeDocument: v.ObjectSchema<{
|
|
15
|
+
readonly title: 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, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
17
|
+
readonly is_active: v.BooleanSchema<undefined>;
|
|
18
|
+
readonly is_organic_social: v.BooleanSchema<undefined>;
|
|
19
|
+
readonly is_paid_media: v.BooleanSchema<undefined>;
|
|
20
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
21
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
22
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
type CreateMediaContentTypeDocument = v.InferOutput<typeof CreateMediaContentTypeDocument>;
|
|
25
|
+
declare const UpdateMediaContentTypeDocument: v.ObjectSchema<{
|
|
26
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
28
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
29
|
+
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
30
|
+
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
31
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
32
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
33
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
type UpdateMediaContentTypeDocument = v.InferOutput<typeof UpdateMediaContentTypeDocument>;
|
|
36
|
+
declare const UpdateMediaContentTypeDocumentRequest: v.ObjectSchema<{
|
|
37
|
+
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
38
|
+
readonly data: v.ObjectSchema<{
|
|
39
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
41
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
+
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
+
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
44
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
45
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
46
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
}, undefined>;
|
|
49
|
+
type UpdateMediaContentTypeDocumentRequest = v.InferOutput<typeof UpdateMediaContentTypeDocumentRequest>;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/entities/media-content-type/query.d.ts
|
|
52
|
+
declare const QueryStrapiSearchMediaContentTypes: v.ObjectSchema<{
|
|
53
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
54
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
55
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
57
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
58
|
+
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
59
|
+
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
|
+
readonly media_platforms: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
61
|
+
readonly media_creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
62
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
type QueryStrapiSearchMediaContentTypes = v.InferOutput<typeof QueryStrapiSearchMediaContentTypes>;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { CreateMediaContentTypeDocument, LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE, LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE, MEDIA_CONTENT_TYPE_SORT_KEYS, MediaContentTypeDocument, QuerySortMediaContentTypes, QueryStrapiSearchMediaContentTypes, UpdateMediaContentTypeDocument, UpdateMediaContentTypeDocumentRequest };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
|
+
import { n as ERROR_MESSAGE_REGEX_URL_SLUG, o as REGEX_URL_SLUG } from "../../regex-BnKGcdS4.mjs";
|
|
3
|
+
import { d as VStringMinMax, f as VStringMinMaxRegex, i as VSize, l as VStringMax, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
+
import { a as SAssociateOneEntity, i as SAssociateManyEntities, s as SQueryManyEntities } from "../../relations-C04F46xL.mjs";
|
|
5
|
+
import { RichTextBlock } from "../../components/shared/index.mjs";
|
|
6
|
+
import * as v from "valibot";
|
|
7
|
+
//#region src/entities/media-content-type/constants.ts
|
|
8
|
+
const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = 100;
|
|
9
|
+
const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = 1e3;
|
|
10
|
+
const MEDIA_CONTENT_TYPE_SORT_KEYS = [
|
|
11
|
+
"id",
|
|
12
|
+
"title",
|
|
13
|
+
"slug",
|
|
14
|
+
"is_active",
|
|
15
|
+
"is_organic_social",
|
|
16
|
+
"is_paid_media",
|
|
17
|
+
"createdAt",
|
|
18
|
+
"updatedAt",
|
|
19
|
+
"media_platforms.title",
|
|
20
|
+
"media_platforms.slug",
|
|
21
|
+
"media_platforms.utm_key",
|
|
22
|
+
"media_platforms.is_active",
|
|
23
|
+
"media_platforms.is_organic_social",
|
|
24
|
+
"media_platforms.is_paid_media",
|
|
25
|
+
"media_platforms.createdAt",
|
|
26
|
+
"media_platforms.updatedAt",
|
|
27
|
+
"media_creative_formats.title",
|
|
28
|
+
"media_creative_formats.slug",
|
|
29
|
+
"media_creative_formats.is_active",
|
|
30
|
+
"media_creative_formats.createdAt",
|
|
31
|
+
"media_creative_formats.updatedAt"
|
|
32
|
+
];
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/entities/media-content-type/document.ts
|
|
35
|
+
const MediaContentTypeDocument = v.object({
|
|
36
|
+
...BaseDocument.entries,
|
|
37
|
+
title: v.string(),
|
|
38
|
+
slug: v.string(),
|
|
39
|
+
is_active: v.boolean(),
|
|
40
|
+
is_organic_social: v.boolean(),
|
|
41
|
+
is_paid_media: v.boolean(),
|
|
42
|
+
description: v.nullable(v.string()),
|
|
43
|
+
information: v.nullable(v.array(RichTextBlock))
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/entities/media-content-type/fields.ts
|
|
47
|
+
const QuerySortMediaContentTypes = v.optional(v.pipe(v.array(v.picklist(MEDIA_CONTENT_TYPE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(MEDIA_CONTENT_TYPE_SORT_KEYS.length)));
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/entities/media-content-type/mutation.ts
|
|
50
|
+
const CreateMediaContentTypeDocument = v.object({
|
|
51
|
+
title: VStringMinMax(1, 255),
|
|
52
|
+
slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
|
|
53
|
+
is_active: v.boolean(),
|
|
54
|
+
is_organic_social: v.boolean(),
|
|
55
|
+
is_paid_media: v.boolean(),
|
|
56
|
+
description: v.optional(v.nullable(VStringMax(255))),
|
|
57
|
+
media_platforms: v.optional(SAssociateManyEntities),
|
|
58
|
+
media_creative_formats: v.optional(SAssociateManyEntities)
|
|
59
|
+
});
|
|
60
|
+
const UpdateMediaContentTypeDocument = v.object({
|
|
61
|
+
title: v.optional(VStringMinMax(1, 255)),
|
|
62
|
+
slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
|
|
63
|
+
is_active: v.optional(v.boolean()),
|
|
64
|
+
is_organic_social: v.optional(v.boolean()),
|
|
65
|
+
is_paid_media: v.optional(v.boolean()),
|
|
66
|
+
description: v.optional(v.nullable(VStringMax(255))),
|
|
67
|
+
media_platforms: v.optional(SAssociateManyEntities),
|
|
68
|
+
media_creative_formats: v.optional(SAssociateManyEntities)
|
|
69
|
+
});
|
|
70
|
+
const UpdateMediaContentTypeDocumentRequest = v.object({
|
|
71
|
+
documentId: SAssociateOneEntity,
|
|
72
|
+
data: UpdateMediaContentTypeDocument
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/entities/media-content-type/query.ts
|
|
76
|
+
const QueryStrapiSearchMediaContentTypes = v.object({
|
|
77
|
+
page: VPage(),
|
|
78
|
+
size: VSize(LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE),
|
|
79
|
+
title: v.optional(VStringMax()),
|
|
80
|
+
slug: v.optional(VStringMax()),
|
|
81
|
+
is_active: v.optional(v.boolean()),
|
|
82
|
+
is_organic_social: v.optional(v.boolean()),
|
|
83
|
+
is_paid_media: v.optional(v.boolean()),
|
|
84
|
+
media_platforms: v.optional(SQueryManyEntities),
|
|
85
|
+
media_creative_formats: v.optional(SQueryManyEntities),
|
|
86
|
+
sort: QuerySortMediaContentTypes
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { CreateMediaContentTypeDocument, LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE, LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE, MEDIA_CONTENT_TYPE_SORT_KEYS, MediaContentTypeDocument, QuerySortMediaContentTypes, QueryStrapiSearchMediaContentTypes, UpdateMediaContentTypeDocument, UpdateMediaContentTypeDocumentRequest };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
|
+
const require_regex = require("../../regex-Cl5goNwp.cjs");
|
|
5
|
+
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
+
const require_relations = require("../../relations-CGu18hfT.cjs");
|
|
7
|
+
let valibot = require("valibot");
|
|
8
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
|
+
//#region src/entities/media-creative-format/constants.ts
|
|
10
|
+
const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE = 100;
|
|
11
|
+
const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE = 1e3;
|
|
12
|
+
const MEDIA_CREATIVE_FORMAT_SORT_KEYS = [
|
|
13
|
+
"id",
|
|
14
|
+
"title",
|
|
15
|
+
"slug",
|
|
16
|
+
"is_active",
|
|
17
|
+
"createdAt",
|
|
18
|
+
"updatedAt",
|
|
19
|
+
"media_content_types.title",
|
|
20
|
+
"media_content_types.slug",
|
|
21
|
+
"media_content_types.is_active",
|
|
22
|
+
"media_content_types.is_organic_social",
|
|
23
|
+
"media_content_types.is_paid_media",
|
|
24
|
+
"media_content_types.createdAt",
|
|
25
|
+
"media_content_types.updatedAt"
|
|
26
|
+
];
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/entities/media-creative-format/document.ts
|
|
29
|
+
const MediaCreativeFormatDocument = valibot.object({
|
|
30
|
+
...require_document.BaseDocument.entries,
|
|
31
|
+
title: valibot.string(),
|
|
32
|
+
slug: valibot.string(),
|
|
33
|
+
is_active: valibot.boolean(),
|
|
34
|
+
description: valibot.nullable(valibot.string())
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/entities/media-creative-format/fields.ts
|
|
38
|
+
const QuerySortMediaCreativeFormats = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_CREATIVE_FORMAT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_CREATIVE_FORMAT_SORT_KEYS.length)));
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/entities/media-creative-format/mutation.ts
|
|
41
|
+
const CreateMediaCreativeFormatDocument = valibot.object({
|
|
42
|
+
title: require_validators.VStringMinMax(1, 255),
|
|
43
|
+
slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
|
|
44
|
+
is_active: valibot.boolean(),
|
|
45
|
+
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
46
|
+
media_content_types: valibot.optional(require_relations.SAssociateManyEntities)
|
|
47
|
+
});
|
|
48
|
+
const UpdateMediaCreativeFormatDocument = valibot.object({
|
|
49
|
+
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
50
|
+
slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
|
|
51
|
+
is_active: valibot.optional(valibot.boolean()),
|
|
52
|
+
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
53
|
+
media_content_types: valibot.optional(require_relations.SAssociateManyEntities)
|
|
54
|
+
});
|
|
55
|
+
const UpdateMediaCreativeFormatDocumentRequest = valibot.object({
|
|
56
|
+
documentId: require_relations.SAssociateOneEntity,
|
|
57
|
+
data: UpdateMediaCreativeFormatDocument
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/entities/media-creative-format/query.ts
|
|
61
|
+
const QueryStrapiSearchMediaCreativeFormats = valibot.object({
|
|
62
|
+
page: require_validators.VPage(),
|
|
63
|
+
size: require_validators.VSize(LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE),
|
|
64
|
+
title: valibot.optional(require_validators.VStringMax()),
|
|
65
|
+
slug: valibot.optional(require_validators.VStringMax()),
|
|
66
|
+
is_active: valibot.optional(valibot.boolean()),
|
|
67
|
+
media_content_types: valibot.optional(require_relations.SQueryManyEntities),
|
|
68
|
+
sort: QuerySortMediaCreativeFormats
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
exports.CreateMediaCreativeFormatDocument = CreateMediaCreativeFormatDocument;
|
|
72
|
+
exports.LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE = LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE;
|
|
73
|
+
exports.LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE = LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE;
|
|
74
|
+
exports.MEDIA_CREATIVE_FORMAT_SORT_KEYS = MEDIA_CREATIVE_FORMAT_SORT_KEYS;
|
|
75
|
+
exports.MediaCreativeFormatDocument = MediaCreativeFormatDocument;
|
|
76
|
+
exports.QuerySortMediaCreativeFormats = QuerySortMediaCreativeFormats;
|
|
77
|
+
exports.QueryStrapiSearchMediaCreativeFormats = QueryStrapiSearchMediaCreativeFormats;
|
|
78
|
+
exports.UpdateMediaCreativeFormatDocument = UpdateMediaCreativeFormatDocument;
|
|
79
|
+
exports.UpdateMediaCreativeFormatDocumentRequest = UpdateMediaCreativeFormatDocumentRequest;
|