@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,147 @@
|
|
|
1
|
+
import { t as ClientProjectDocument } from "../../document-DA6YVZz-.cjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/entities/client-project/constants.d.ts
|
|
5
|
+
declare const LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE = 10;
|
|
6
|
+
declare const LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE = 100;
|
|
7
|
+
declare const CLIENT_PROJECT_STATUS: readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"];
|
|
8
|
+
declare const CLIENT_PROJECT_PHASES: readonly [{
|
|
9
|
+
readonly label: "Brand";
|
|
10
|
+
readonly value: "brand";
|
|
11
|
+
readonly description: "General/Company branded content";
|
|
12
|
+
}, {
|
|
13
|
+
readonly label: "Phase 1";
|
|
14
|
+
readonly value: "p1";
|
|
15
|
+
readonly description: "Interest list building";
|
|
16
|
+
}, {
|
|
17
|
+
readonly label: "Phase 2";
|
|
18
|
+
readonly value: "p2";
|
|
19
|
+
readonly description: "Pre-qualification, pre-sales";
|
|
20
|
+
}, {
|
|
21
|
+
readonly label: "Phase 3";
|
|
22
|
+
readonly value: "p3";
|
|
23
|
+
readonly description: "Grand opening, now open, available";
|
|
24
|
+
}, {
|
|
25
|
+
readonly label: "Phase 4";
|
|
26
|
+
readonly value: "p4";
|
|
27
|
+
readonly description: "For sale, maintenance period";
|
|
28
|
+
}, {
|
|
29
|
+
readonly label: "Phase 5";
|
|
30
|
+
readonly value: "p5";
|
|
31
|
+
readonly description: "Final sale";
|
|
32
|
+
}, {
|
|
33
|
+
readonly label: "Closed";
|
|
34
|
+
readonly value: "closed";
|
|
35
|
+
readonly description: "Sold out, no longer available";
|
|
36
|
+
}];
|
|
37
|
+
declare const CLIENT_PROJECT_PHASE_VALUES: readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"];
|
|
38
|
+
declare const CLIENT_PROJECT_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_hidden", "project_phase", "project_url", "project_type", "project_pricing", "project_address", "phone_number", "num_of_models", "num_of_units_remain", "buyer_profile", "social_organic_start_date", "paid_media_start_date", "go_date", "createdAt", "updatedAt"];
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/entities/client-project/fields.d.ts
|
|
41
|
+
declare const QuerySortClientProjects: 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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase: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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase:DESC")[], 19, undefined>]>, undefined>;
|
|
42
|
+
type QuerySortClientProjects = v.InferOutput<typeof QuerySortClientProjects>;
|
|
43
|
+
declare const ClientProjectStatus: v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>;
|
|
44
|
+
type ClientProjectStatus = v.InferOutput<typeof ClientProjectStatus>;
|
|
45
|
+
declare const ClientProjectPhase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>;
|
|
46
|
+
type ClientProjectPhase = v.InferOutput<typeof ClientProjectPhase>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/entities/client-project/mutation.d.ts
|
|
49
|
+
declare const CreateClientProjectDocument: v.ObjectSchema<{
|
|
50
|
+
readonly clients: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
51
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
52
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
53
|
+
readonly is_active: v.BooleanSchema<undefined>;
|
|
54
|
+
readonly is_hidden: v.BooleanSchema<undefined>;
|
|
55
|
+
readonly project_status: v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">]>;
|
|
56
|
+
readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>;
|
|
57
|
+
readonly project_url: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
58
|
+
readonly project_type: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
59
|
+
readonly project_pricing: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
60
|
+
readonly project_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
61
|
+
readonly phone_number: v.OptionalSchema<v.NullableSchema<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>, undefined>;
|
|
62
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
63
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
64
|
+
readonly buyer_profile: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
65
|
+
readonly social_organic_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
66
|
+
readonly paid_media_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
67
|
+
readonly go_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
type CreateClientProjectDocument = v.InferOutput<typeof CreateClientProjectDocument>;
|
|
70
|
+
declare const UpdateClientProjectDocument: v.ObjectSchema<{
|
|
71
|
+
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
72
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
74
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
75
|
+
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
76
|
+
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">]>, undefined>;
|
|
77
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>, undefined>;
|
|
78
|
+
readonly project_url: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
79
|
+
readonly project_type: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
80
|
+
readonly project_pricing: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
81
|
+
readonly project_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
82
|
+
readonly phone_number: v.OptionalSchema<v.NullableSchema<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>, undefined>;
|
|
83
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
84
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
85
|
+
readonly buyer_profile: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
86
|
+
readonly social_organic_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
87
|
+
readonly paid_media_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
88
|
+
readonly go_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
89
|
+
}, undefined>;
|
|
90
|
+
type UpdateClientProjectDocument = v.InferOutput<typeof UpdateClientProjectDocument>;
|
|
91
|
+
declare const UpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
92
|
+
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
93
|
+
readonly data: v.ObjectSchema<{
|
|
94
|
+
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
95
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
96
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
97
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
98
|
+
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
99
|
+
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">]>, undefined>;
|
|
100
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>, undefined>;
|
|
101
|
+
readonly project_url: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
102
|
+
readonly project_type: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
103
|
+
readonly project_pricing: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
104
|
+
readonly project_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
105
|
+
readonly phone_number: v.OptionalSchema<v.NullableSchema<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>, undefined>;
|
|
106
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
107
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
108
|
+
readonly buyer_profile: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
109
|
+
readonly social_organic_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
110
|
+
readonly paid_media_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
111
|
+
readonly go_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
112
|
+
}, undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
type UpdateClientProjectDocumentRequest = v.InferOutput<typeof UpdateClientProjectDocumentRequest>;
|
|
115
|
+
declare const SAssociateClientToClientProjectDocument: v.ObjectSchema<{
|
|
116
|
+
readonly client: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
117
|
+
readonly client_project: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
118
|
+
}, undefined>;
|
|
119
|
+
type SAssociateClientToClientProjectDocument = v.InferOutput<typeof SAssociateClientToClientProjectDocument>;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/entities/client-project/query.d.ts
|
|
122
|
+
declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
|
|
123
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
124
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
125
|
+
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
126
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
127
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
128
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
129
|
+
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
130
|
+
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, undefined>, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, undefined>]>, undefined>;
|
|
131
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>, undefined>;
|
|
132
|
+
readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
|
|
133
|
+
readonly project_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
134
|
+
readonly project_pricing: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
135
|
+
readonly project_address: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
136
|
+
readonly phone_number: 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>;
|
|
137
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
138
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
139
|
+
readonly buyer_profile: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
|
+
readonly social_organic_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
141
|
+
readonly paid_media_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
142
|
+
readonly go_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
143
|
+
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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase: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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase:DESC")[], 19, undefined>]>, undefined>;
|
|
144
|
+
}, undefined>;
|
|
145
|
+
type QueryStrapiSearchClientProjects = v.InferOutput<typeof QueryStrapiSearchClientProjects>;
|
|
146
|
+
//#endregion
|
|
147
|
+
export { CLIENT_PROJECT_PHASES, CLIENT_PROJECT_PHASE_VALUES, CLIENT_PROJECT_SORT_KEYS, CLIENT_PROJECT_STATUS, ClientProjectDocument, ClientProjectPhase, ClientProjectStatus, CreateClientProjectDocument, LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE, QuerySortClientProjects, QueryStrapiSearchClientProjects, SAssociateClientToClientProjectDocument, UpdateClientProjectDocument, UpdateClientProjectDocumentRequest };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { t as ClientProjectDocument } from "../../document-BAzLIprH.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/entities/client-project/constants.d.ts
|
|
5
|
+
declare const LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE = 10;
|
|
6
|
+
declare const LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE = 100;
|
|
7
|
+
declare const CLIENT_PROJECT_STATUS: readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"];
|
|
8
|
+
declare const CLIENT_PROJECT_PHASES: readonly [{
|
|
9
|
+
readonly label: "Brand";
|
|
10
|
+
readonly value: "brand";
|
|
11
|
+
readonly description: "General/Company branded content";
|
|
12
|
+
}, {
|
|
13
|
+
readonly label: "Phase 1";
|
|
14
|
+
readonly value: "p1";
|
|
15
|
+
readonly description: "Interest list building";
|
|
16
|
+
}, {
|
|
17
|
+
readonly label: "Phase 2";
|
|
18
|
+
readonly value: "p2";
|
|
19
|
+
readonly description: "Pre-qualification, pre-sales";
|
|
20
|
+
}, {
|
|
21
|
+
readonly label: "Phase 3";
|
|
22
|
+
readonly value: "p3";
|
|
23
|
+
readonly description: "Grand opening, now open, available";
|
|
24
|
+
}, {
|
|
25
|
+
readonly label: "Phase 4";
|
|
26
|
+
readonly value: "p4";
|
|
27
|
+
readonly description: "For sale, maintenance period";
|
|
28
|
+
}, {
|
|
29
|
+
readonly label: "Phase 5";
|
|
30
|
+
readonly value: "p5";
|
|
31
|
+
readonly description: "Final sale";
|
|
32
|
+
}, {
|
|
33
|
+
readonly label: "Closed";
|
|
34
|
+
readonly value: "closed";
|
|
35
|
+
readonly description: "Sold out, no longer available";
|
|
36
|
+
}];
|
|
37
|
+
declare const CLIENT_PROJECT_PHASE_VALUES: readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"];
|
|
38
|
+
declare const CLIENT_PROJECT_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_hidden", "project_phase", "project_url", "project_type", "project_pricing", "project_address", "phone_number", "num_of_models", "num_of_units_remain", "buyer_profile", "social_organic_start_date", "paid_media_start_date", "go_date", "createdAt", "updatedAt"];
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/entities/client-project/fields.d.ts
|
|
41
|
+
declare const QuerySortClientProjects: 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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase: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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase:DESC")[], 19, undefined>]>, undefined>;
|
|
42
|
+
type QuerySortClientProjects = v.InferOutput<typeof QuerySortClientProjects>;
|
|
43
|
+
declare const ClientProjectStatus: v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>;
|
|
44
|
+
type ClientProjectStatus = v.InferOutput<typeof ClientProjectStatus>;
|
|
45
|
+
declare const ClientProjectPhase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>;
|
|
46
|
+
type ClientProjectPhase = v.InferOutput<typeof ClientProjectPhase>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/entities/client-project/mutation.d.ts
|
|
49
|
+
declare const CreateClientProjectDocument: v.ObjectSchema<{
|
|
50
|
+
readonly clients: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
51
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
52
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
53
|
+
readonly is_active: v.BooleanSchema<undefined>;
|
|
54
|
+
readonly is_hidden: v.BooleanSchema<undefined>;
|
|
55
|
+
readonly project_status: v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">]>;
|
|
56
|
+
readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>;
|
|
57
|
+
readonly project_url: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
58
|
+
readonly project_type: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
59
|
+
readonly project_pricing: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
60
|
+
readonly project_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
61
|
+
readonly phone_number: v.OptionalSchema<v.NullableSchema<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>, undefined>;
|
|
62
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
63
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
64
|
+
readonly buyer_profile: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
65
|
+
readonly social_organic_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
66
|
+
readonly paid_media_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
67
|
+
readonly go_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
type CreateClientProjectDocument = v.InferOutput<typeof CreateClientProjectDocument>;
|
|
70
|
+
declare const UpdateClientProjectDocument: v.ObjectSchema<{
|
|
71
|
+
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
72
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
74
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
75
|
+
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
76
|
+
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">]>, undefined>;
|
|
77
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>, undefined>;
|
|
78
|
+
readonly project_url: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
79
|
+
readonly project_type: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
80
|
+
readonly project_pricing: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
81
|
+
readonly project_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
82
|
+
readonly phone_number: v.OptionalSchema<v.NullableSchema<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>, undefined>;
|
|
83
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
84
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
85
|
+
readonly buyer_profile: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
86
|
+
readonly social_organic_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
87
|
+
readonly paid_media_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
88
|
+
readonly go_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
89
|
+
}, undefined>;
|
|
90
|
+
type UpdateClientProjectDocument = v.InferOutput<typeof UpdateClientProjectDocument>;
|
|
91
|
+
declare const UpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
92
|
+
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
93
|
+
readonly data: v.ObjectSchema<{
|
|
94
|
+
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
95
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
96
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
97
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
98
|
+
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
99
|
+
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "You can only select one project status.">]>, undefined>;
|
|
100
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>, undefined>;
|
|
101
|
+
readonly project_url: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>, undefined>;
|
|
102
|
+
readonly project_type: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
103
|
+
readonly project_pricing: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
104
|
+
readonly project_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
105
|
+
readonly phone_number: v.OptionalSchema<v.NullableSchema<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>, undefined>;
|
|
106
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
107
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
108
|
+
readonly buyer_profile: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
109
|
+
readonly social_organic_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
110
|
+
readonly paid_media_start_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
111
|
+
readonly go_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
112
|
+
}, undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
type UpdateClientProjectDocumentRequest = v.InferOutput<typeof UpdateClientProjectDocumentRequest>;
|
|
115
|
+
declare const SAssociateClientToClientProjectDocument: v.ObjectSchema<{
|
|
116
|
+
readonly client: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
117
|
+
readonly client_project: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
118
|
+
}, undefined>;
|
|
119
|
+
type SAssociateClientToClientProjectDocument = v.InferOutput<typeof SAssociateClientToClientProjectDocument>;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/entities/client-project/query.d.ts
|
|
122
|
+
declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
|
|
123
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
124
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
125
|
+
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
126
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
127
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
128
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
129
|
+
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
130
|
+
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, undefined>, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, undefined>]>, undefined>;
|
|
131
|
+
readonly project_phase: v.OptionalSchema<v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>, undefined>;
|
|
132
|
+
readonly project_url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.StartsWithAction<string, "http", "Please enter a valid URL starting with http or https.">, v.UrlAction<string, "Please enter a valid URL.">]>, undefined>;
|
|
133
|
+
readonly project_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
134
|
+
readonly project_pricing: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
135
|
+
readonly project_address: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
136
|
+
readonly phone_number: 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>;
|
|
137
|
+
readonly num_of_models: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
138
|
+
readonly num_of_units_remain: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
139
|
+
readonly buyer_profile: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
|
+
readonly social_organic_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
141
|
+
readonly paid_media_start_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
142
|
+
readonly go_date: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
143
|
+
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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase: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_hidden:ASC" | "is_hidden:DESC" | "project_url:ASC" | "project_type:ASC" | "project_pricing:ASC" | "project_address:ASC" | "phone_number:ASC" | "num_of_models:ASC" | "num_of_units_remain:ASC" | "buyer_profile:ASC" | "social_organic_start_date:ASC" | "paid_media_start_date:ASC" | "go_date:ASC" | "project_phase:ASC" | "project_url:DESC" | "project_type:DESC" | "project_pricing:DESC" | "project_address:DESC" | "phone_number:DESC" | "num_of_models:DESC" | "num_of_units_remain:DESC" | "buyer_profile:DESC" | "social_organic_start_date:DESC" | "paid_media_start_date:DESC" | "go_date:DESC" | "project_phase:DESC")[], 19, undefined>]>, undefined>;
|
|
144
|
+
}, undefined>;
|
|
145
|
+
type QueryStrapiSearchClientProjects = v.InferOutput<typeof QueryStrapiSearchClientProjects>;
|
|
146
|
+
//#endregion
|
|
147
|
+
export { CLIENT_PROJECT_PHASES, CLIENT_PROJECT_PHASE_VALUES, CLIENT_PROJECT_SORT_KEYS, CLIENT_PROJECT_STATUS, ClientProjectDocument, ClientProjectPhase, ClientProjectStatus, CreateClientProjectDocument, LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE, QuerySortClientProjects, QueryStrapiSearchClientProjects, SAssociateClientToClientProjectDocument, UpdateClientProjectDocument, UpdateClientProjectDocumentRequest };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
|
+
import { r as MediaUploadDocument } from "../../media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { W as ERROR_MESSAGE_ONE_PROJECT_STATUS } from "../../regex-BnKGcdS4.mjs";
|
|
4
|
+
import { _ as VStringSlug, b as VStringUrlNullable, h as VStringShort, i as VSize, l as VStringMax, m as VStringPhoneNullable, p as VStringPhone, r as VPage, t as VIntegerNullable, v as VStringUrl } from "../../validators-P5E_3qzc.mjs";
|
|
5
|
+
import { a as SAssociateOneEntity } from "../../relations-C04F46xL.mjs";
|
|
6
|
+
import * as v from "valibot";
|
|
7
|
+
//#region src/entities/client-project/constants.ts
|
|
8
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE = 10;
|
|
9
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE = 100;
|
|
10
|
+
const CLIENT_PROJECT_STATUS = [
|
|
11
|
+
"coming-soon",
|
|
12
|
+
"now-open",
|
|
13
|
+
"for-sale",
|
|
14
|
+
"sold-out",
|
|
15
|
+
"available"
|
|
16
|
+
];
|
|
17
|
+
const CLIENT_PROJECT_PHASES = [
|
|
18
|
+
{
|
|
19
|
+
label: "Brand",
|
|
20
|
+
value: "brand",
|
|
21
|
+
description: "General/Company branded content"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: "Phase 1",
|
|
25
|
+
value: "p1",
|
|
26
|
+
description: "Interest list building"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "Phase 2",
|
|
30
|
+
value: "p2",
|
|
31
|
+
description: "Pre-qualification, pre-sales"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "Phase 3",
|
|
35
|
+
value: "p3",
|
|
36
|
+
description: "Grand opening, now open, available"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "Phase 4",
|
|
40
|
+
value: "p4",
|
|
41
|
+
description: "For sale, maintenance period"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "Phase 5",
|
|
45
|
+
value: "p5",
|
|
46
|
+
description: "Final sale"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "Closed",
|
|
50
|
+
value: "closed",
|
|
51
|
+
description: "Sold out, no longer available"
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
const CLIENT_PROJECT_PHASE_VALUES = [
|
|
55
|
+
"brand",
|
|
56
|
+
"p1",
|
|
57
|
+
"p2",
|
|
58
|
+
"p3",
|
|
59
|
+
"p4",
|
|
60
|
+
"p5",
|
|
61
|
+
"closed"
|
|
62
|
+
];
|
|
63
|
+
const CLIENT_PROJECT_SORT_KEYS = [
|
|
64
|
+
"id",
|
|
65
|
+
"title",
|
|
66
|
+
"slug",
|
|
67
|
+
"is_active",
|
|
68
|
+
"is_hidden",
|
|
69
|
+
"project_phase",
|
|
70
|
+
"project_url",
|
|
71
|
+
"project_type",
|
|
72
|
+
"project_pricing",
|
|
73
|
+
"project_address",
|
|
74
|
+
"phone_number",
|
|
75
|
+
"num_of_models",
|
|
76
|
+
"num_of_units_remain",
|
|
77
|
+
"buyer_profile",
|
|
78
|
+
"social_organic_start_date",
|
|
79
|
+
"paid_media_start_date",
|
|
80
|
+
"go_date",
|
|
81
|
+
"createdAt",
|
|
82
|
+
"updatedAt"
|
|
83
|
+
];
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/entities/client-project/fields.ts
|
|
86
|
+
const QuerySortClientProjects = v.optional(v.pipe(v.array(v.picklist(CLIENT_PROJECT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CLIENT_PROJECT_SORT_KEYS.length)));
|
|
87
|
+
const ClientProjectStatus = v.picklist(CLIENT_PROJECT_STATUS);
|
|
88
|
+
const ClientProjectPhase = v.picklist(CLIENT_PROJECT_PHASE_VALUES);
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/entities/client-project/document.ts
|
|
91
|
+
const ClientProjectDocument = v.object({
|
|
92
|
+
...BaseDocument.entries,
|
|
93
|
+
title: v.string(),
|
|
94
|
+
slug: v.string(),
|
|
95
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
96
|
+
is_active: v.boolean(),
|
|
97
|
+
is_hidden: v.boolean(),
|
|
98
|
+
project_status: v.array(ClientProjectStatus),
|
|
99
|
+
project_phase: ClientProjectPhase,
|
|
100
|
+
project_url: v.nullable(v.string()),
|
|
101
|
+
project_type: v.nullable(v.string()),
|
|
102
|
+
project_pricing: v.nullable(v.string()),
|
|
103
|
+
project_address: v.nullable(v.string()),
|
|
104
|
+
phone_number: v.nullable(v.string()),
|
|
105
|
+
num_of_models: v.nullable(v.number()),
|
|
106
|
+
num_of_units_remain: v.nullable(v.number()),
|
|
107
|
+
buyer_profile: v.nullable(v.string()),
|
|
108
|
+
social_organic_start_date: v.nullable(v.string()),
|
|
109
|
+
paid_media_start_date: v.nullable(v.string()),
|
|
110
|
+
go_date: v.nullable(v.string())
|
|
111
|
+
});
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/entities/client-project/mutation.ts
|
|
114
|
+
const CreateClientProjectDocument = v.object({
|
|
115
|
+
clients: v.pipe(v.array(VStringShort()), v.minLength(1)),
|
|
116
|
+
title: VStringShort(),
|
|
117
|
+
slug: VStringSlug(),
|
|
118
|
+
is_active: v.boolean(),
|
|
119
|
+
is_hidden: v.boolean(),
|
|
120
|
+
project_status: v.pipe(v.array(v.optional(ClientProjectStatus, CLIENT_PROJECT_STATUS[0])), v.minLength(1, ERROR_MESSAGE_ONE_PROJECT_STATUS), v.maxLength(1, ERROR_MESSAGE_ONE_PROJECT_STATUS)),
|
|
121
|
+
project_phase: ClientProjectPhase,
|
|
122
|
+
project_url: VStringUrlNullable(),
|
|
123
|
+
project_type: v.optional(v.nullable(VStringMax())),
|
|
124
|
+
project_pricing: v.optional(v.nullable(VStringMax())),
|
|
125
|
+
project_address: v.optional(v.nullable(VStringMax())),
|
|
126
|
+
phone_number: VStringPhoneNullable(),
|
|
127
|
+
num_of_models: VIntegerNullable(),
|
|
128
|
+
num_of_units_remain: VIntegerNullable(),
|
|
129
|
+
buyer_profile: v.optional(v.nullable(VStringMax())),
|
|
130
|
+
social_organic_start_date: v.optional(v.nullable(v.pipe(v.string(), v.isoDate()))),
|
|
131
|
+
paid_media_start_date: v.optional(v.nullable(v.pipe(v.string(), v.isoDate()))),
|
|
132
|
+
go_date: v.optional(v.nullable(v.pipe(v.string(), v.isoDate())))
|
|
133
|
+
});
|
|
134
|
+
const UpdateClientProjectDocument = v.object({
|
|
135
|
+
clients: v.optional(v.pipe(v.array(VStringShort()), v.minLength(1))),
|
|
136
|
+
title: v.optional(VStringShort()),
|
|
137
|
+
slug: v.optional(VStringSlug()),
|
|
138
|
+
is_active: v.optional(v.boolean()),
|
|
139
|
+
is_hidden: v.optional(v.boolean()),
|
|
140
|
+
project_status: v.optional(v.pipe(v.array(v.optional(ClientProjectStatus, CLIENT_PROJECT_STATUS[0])), v.minLength(1, ERROR_MESSAGE_ONE_PROJECT_STATUS), v.maxLength(1, ERROR_MESSAGE_ONE_PROJECT_STATUS))),
|
|
141
|
+
project_phase: v.optional(ClientProjectPhase),
|
|
142
|
+
project_url: VStringUrlNullable(),
|
|
143
|
+
project_type: v.optional(v.nullable(VStringMax())),
|
|
144
|
+
project_pricing: v.optional(v.nullable(VStringMax())),
|
|
145
|
+
project_address: v.optional(v.nullable(VStringMax())),
|
|
146
|
+
phone_number: VStringPhoneNullable(),
|
|
147
|
+
num_of_models: VIntegerNullable(),
|
|
148
|
+
num_of_units_remain: VIntegerNullable(),
|
|
149
|
+
buyer_profile: v.optional(v.nullable(VStringMax())),
|
|
150
|
+
social_organic_start_date: v.optional(v.nullable(v.pipe(v.string(), v.isoDate()))),
|
|
151
|
+
paid_media_start_date: v.optional(v.nullable(v.pipe(v.string(), v.isoDate()))),
|
|
152
|
+
go_date: v.optional(v.nullable(v.pipe(v.string(), v.isoDate())))
|
|
153
|
+
});
|
|
154
|
+
const UpdateClientProjectDocumentRequest = v.object({
|
|
155
|
+
documentId: SAssociateOneEntity,
|
|
156
|
+
data: UpdateClientProjectDocument
|
|
157
|
+
});
|
|
158
|
+
const SAssociateClientToClientProjectDocument = v.object({
|
|
159
|
+
client: SAssociateOneEntity,
|
|
160
|
+
client_project: SAssociateOneEntity
|
|
161
|
+
});
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/entities/client-project/query.ts
|
|
164
|
+
const QueryStrapiSearchClientProjects = v.object({
|
|
165
|
+
page: VPage(),
|
|
166
|
+
size: VSize(100),
|
|
167
|
+
client_id: v.optional(VStringShort()),
|
|
168
|
+
title: v.optional(VStringMax()),
|
|
169
|
+
slug: v.optional(VStringSlug()),
|
|
170
|
+
is_active: v.optional(v.boolean()),
|
|
171
|
+
is_hidden: v.optional(v.boolean()),
|
|
172
|
+
project_status: v.optional(v.pipe(v.array(v.optional(ClientProjectStatus, CLIENT_PROJECT_STATUS[0])), v.minLength(1), v.maxLength(1))),
|
|
173
|
+
project_phase: v.optional(ClientProjectPhase),
|
|
174
|
+
project_url: v.optional(VStringUrl()),
|
|
175
|
+
project_type: v.optional(VStringMax()),
|
|
176
|
+
project_pricing: v.optional(VStringMax(255)),
|
|
177
|
+
project_address: v.optional(VStringMax()),
|
|
178
|
+
phone_number: v.optional(VStringPhone()),
|
|
179
|
+
num_of_models: VIntegerNullable(),
|
|
180
|
+
num_of_units_remain: VIntegerNullable(),
|
|
181
|
+
buyer_profile: v.optional(VStringMax()),
|
|
182
|
+
social_organic_start_date: v.optional(v.pipe(v.string(), v.isoDate())),
|
|
183
|
+
paid_media_start_date: v.optional(v.pipe(v.string(), v.isoDate())),
|
|
184
|
+
go_date: v.optional(v.pipe(v.string(), v.isoDate())),
|
|
185
|
+
sort: QuerySortClientProjects
|
|
186
|
+
});
|
|
187
|
+
//#endregion
|
|
188
|
+
export { CLIENT_PROJECT_PHASES, CLIENT_PROJECT_PHASE_VALUES, CLIENT_PROJECT_SORT_KEYS, CLIENT_PROJECT_STATUS, ClientProjectDocument, ClientProjectPhase, ClientProjectStatus, CreateClientProjectDocument, LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE, QuerySortClientProjects, QueryStrapiSearchClientProjects, SAssociateClientToClientProjectDocument, UpdateClientProjectDocument, UpdateClientProjectDocumentRequest };
|
|
@@ -0,0 +1,82 @@
|
|
|
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/client-report/constants.ts
|
|
10
|
+
const LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE = 10;
|
|
11
|
+
const LIMIT_CLIENT_REPORT_PAGINATION_MAX_SIZE = 100;
|
|
12
|
+
const CLIENT_REPORT_SORT_KEYS = [
|
|
13
|
+
"id",
|
|
14
|
+
"title",
|
|
15
|
+
"is_active",
|
|
16
|
+
"is_external",
|
|
17
|
+
"is_hidden",
|
|
18
|
+
"createdAt",
|
|
19
|
+
"updatedAt"
|
|
20
|
+
];
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/entities/client-report/document.ts
|
|
23
|
+
const ClientReportDocument = valibot.object({
|
|
24
|
+
...require_document.BaseDocument.entries,
|
|
25
|
+
title: valibot.string(),
|
|
26
|
+
report_id: valibot.string(),
|
|
27
|
+
is_active: valibot.boolean(),
|
|
28
|
+
is_external: valibot.boolean(),
|
|
29
|
+
is_hidden: valibot.boolean(),
|
|
30
|
+
scopes: valibot.array(valibot.string())
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/entities/client-report/fields.ts
|
|
34
|
+
const QuerySortClientReports = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_REPORT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_REPORT_SORT_KEYS.length)));
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/entities/client-report/mutation.ts
|
|
37
|
+
const CreateClientReportDocument = valibot.object({
|
|
38
|
+
title: require_validators.VStringMinMax(1, 255),
|
|
39
|
+
report_id: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
|
|
40
|
+
is_active: valibot.optional(valibot.boolean(), true),
|
|
41
|
+
is_external: valibot.optional(valibot.boolean(), false),
|
|
42
|
+
is_hidden: valibot.optional(valibot.boolean(), false),
|
|
43
|
+
scopes: valibot.optional(valibot.pipe(valibot.array(valibot.string("Please provide a valid list of scopes."))), ["user:*"]),
|
|
44
|
+
clients: valibot.optional(require_relations.SAssociateManyEntities)
|
|
45
|
+
});
|
|
46
|
+
const UpdateClientReportDocument = valibot.object({
|
|
47
|
+
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
48
|
+
report_id: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
|
|
49
|
+
is_active: valibot.optional(valibot.boolean()),
|
|
50
|
+
is_external: valibot.optional(valibot.boolean()),
|
|
51
|
+
is_hidden: valibot.optional(valibot.boolean()),
|
|
52
|
+
scopes: valibot.optional(valibot.pipe(valibot.array(valibot.string("Please provide a valid list of scopes."))), ["user:*"]),
|
|
53
|
+
clients: valibot.optional(require_relations.SAssociateManyEntities)
|
|
54
|
+
});
|
|
55
|
+
const UpdateClientReportDocumentRequest = valibot.object({
|
|
56
|
+
documentId: require_relations.SAssociateOneEntity,
|
|
57
|
+
data: UpdateClientReportDocument
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/entities/client-report/query.ts
|
|
61
|
+
const QueryStrapiSearchClientReports = valibot.object({
|
|
62
|
+
page: require_validators.VPage(),
|
|
63
|
+
size: require_validators.VSize(100),
|
|
64
|
+
title: valibot.optional(require_validators.VStringMax()),
|
|
65
|
+
report_id: valibot.optional(require_validators.VStringMax()),
|
|
66
|
+
is_active: valibot.optional(valibot.boolean()),
|
|
67
|
+
is_external: valibot.optional(valibot.boolean()),
|
|
68
|
+
is_hidden: valibot.optional(valibot.boolean()),
|
|
69
|
+
client_id: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
70
|
+
clients: valibot.optional(require_relations.SQueryManyEntities),
|
|
71
|
+
sort: QuerySortClientReports
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
exports.CLIENT_REPORT_SORT_KEYS = CLIENT_REPORT_SORT_KEYS;
|
|
75
|
+
exports.ClientReportDocument = ClientReportDocument;
|
|
76
|
+
exports.CreateClientReportDocument = CreateClientReportDocument;
|
|
77
|
+
exports.LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE = LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE;
|
|
78
|
+
exports.LIMIT_CLIENT_REPORT_PAGINATION_MAX_SIZE = LIMIT_CLIENT_REPORT_PAGINATION_MAX_SIZE;
|
|
79
|
+
exports.QuerySortClientReports = QuerySortClientReports;
|
|
80
|
+
exports.QueryStrapiSearchClientReports = QueryStrapiSearchClientReports;
|
|
81
|
+
exports.UpdateClientReportDocument = UpdateClientReportDocument;
|
|
82
|
+
exports.UpdateClientReportDocumentRequest = UpdateClientReportDocumentRequest;
|