@getcommunity/gc-validators 0.0.271-alpha.6 → 0.0.271-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/index.cjs +19 -19
- package/dist/base/index.d.cts +3 -3
- package/dist/base/index.d.mts +4 -4
- package/dist/base/index.mjs +2 -2
- package/dist/components/blocks/index.cjs +16 -14
- package/dist/components/blocks/index.d.cts +2 -1322
- package/dist/components/blocks/index.d.mts +2 -1322
- package/dist/components/blocks/index.mjs +16 -14
- package/dist/components/brand/index.d.cts +1 -314
- package/dist/components/brand/index.d.mts +1 -314
- package/dist/components/forms/index.cjs +10 -8
- package/dist/components/forms/index.d.cts +6 -3
- package/dist/components/forms/index.d.mts +6 -3
- package/dist/components/forms/index.mjs +10 -8
- package/dist/components/shared/index.cjs +3 -1
- package/dist/components/shared/index.d.cts +1 -916
- package/dist/components/shared/index.d.mts +1 -916
- package/dist/components/shared/index.mjs +3 -1
- package/dist/components/slideshow/index.cjs +15 -13
- package/dist/components/slideshow/index.d.cts +7 -5
- package/dist/components/slideshow/index.d.mts +7 -5
- package/dist/components/slideshow/index.mjs +15 -13
- package/dist/components/utm/index.cjs +4 -2
- package/dist/components/utm/index.d.cts +1 -31
- package/dist/components/utm/index.d.mts +1 -31
- package/dist/components/utm/index.mjs +4 -2
- package/dist/document-BFPtEW5P.d.cts +17 -0
- package/dist/{document-BPdwRVjm.d.cts → document-CH1Od98-.d.mts} +6 -6
- package/dist/{document-BMxLOdrT.d.cts → document-CnKWB70Z.d.cts} +158 -104
- package/dist/{document-DY8Wgy1A.d.mts → document-CpsxYzbB.d.cts} +6 -6
- package/dist/document-CrnqUGRk.cjs +243 -0
- package/dist/document-Cx4Klv8A.mjs +128 -0
- package/dist/document-DUHPXtbm.mjs +409 -0
- package/dist/{document-DnVLqNHr.cjs → document-DamlTVm7.cjs} +2 -1
- package/dist/{document-Cww9JKGT.mjs → document-DnA3Nwgh.mjs} +2 -1
- package/dist/{document-Db1-gtyJ.d.mts → document-Dr5-pbqu.d.mts} +158 -104
- package/dist/document-GovGVYRl.d.mts +17 -0
- package/dist/document-zu6-DmQT.cjs +632 -0
- package/dist/entities/audit-log/index.cjs +2 -2
- package/dist/entities/audit-log/index.d.cts +2 -2
- package/dist/entities/audit-log/index.d.mts +3 -3
- package/dist/entities/audit-log/index.mjs +1 -1
- package/dist/entities/blog-page/index.d.mts +1 -1
- package/dist/entities/blog-post/index.cjs +1 -14
- package/dist/entities/blog-post/index.d.cts +2 -3715
- package/dist/entities/blog-post/index.d.mts +2 -3715
- package/dist/entities/blog-post/index.mjs +2 -14
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.cjs +4 -12
- package/dist/entities/category/index.d.cts +4 -977
- package/dist/entities/category/index.d.mts +4 -977
- package/dist/entities/category/index.mjs +3 -10
- package/dist/entities/client/index.cjs +3 -29
- package/dist/entities/client/index.d.cts +2 -1412
- package/dist/entities/client/index.d.mts +2 -1412
- package/dist/entities/client/index.mjs +3 -28
- package/dist/entities/client-content-pillar/index.cjs +9 -9
- package/dist/entities/client-content-pillar/index.d.cts +1 -48
- package/dist/entities/client-content-pillar/index.d.mts +1 -48
- package/dist/entities/client-content-pillar/index.mjs +2 -2
- package/dist/entities/client-media-platform/index.cjs +10 -20
- package/dist/entities/client-media-platform/index.d.cts +2 -535
- package/dist/entities/client-media-platform/index.d.mts +2 -535
- package/dist/entities/client-media-platform/index.mjs +3 -12
- package/dist/entities/client-project/index.cjs +22 -30
- package/dist/entities/client-project/index.d.cts +2 -476
- package/dist/entities/client-project/index.d.mts +2 -476
- package/dist/entities/client-project/index.mjs +3 -10
- package/dist/entities/client-report/index.cjs +7 -15
- package/dist/entities/client-report/index.d.cts +2 -311
- package/dist/entities/client-report/index.d.mts +2 -311
- package/dist/entities/client-report/index.mjs +3 -10
- package/dist/entities/client-styleguide/index.cjs +7 -15
- package/dist/entities/client-styleguide/index.d.cts +2 -711
- package/dist/entities/client-styleguide/index.d.mts +2 -711
- package/dist/entities/client-styleguide/index.mjs +3 -10
- package/dist/entities/client-user/index.cjs +17 -26
- package/dist/entities/client-user/index.d.cts +2 -291
- package/dist/entities/client-user/index.d.mts +2 -291
- package/dist/entities/client-user/index.mjs +3 -11
- package/dist/entities/comment/index.d.cts +1 -1
- package/dist/entities/comment/index.d.mts +1 -1
- package/dist/entities/content-pillar/index.cjs +5 -12
- package/dist/entities/content-pillar/index.d.cts +2 -335
- package/dist/entities/content-pillar/index.d.mts +2 -335
- package/dist/entities/content-pillar/index.mjs +3 -9
- package/dist/entities/faq-page/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.cjs +9 -19
- package/dist/entities/gcflytour/index.d.cts +2 -320
- package/dist/entities/gcflytour/index.d.mts +2 -320
- package/dist/entities/gcflytour/index.mjs +3 -12
- package/dist/entities/gcflytour-snap/index.cjs +7 -15
- package/dist/entities/gcflytour-snap/index.d.cts +2 -86
- package/dist/entities/gcflytour-snap/index.d.mts +2 -86
- package/dist/entities/gcflytour-snap/index.mjs +3 -10
- package/dist/entities/landing-page/index.d.mts +1 -1
- package/dist/entities/lead/index.cjs +2 -2
- package/dist/entities/lead/index.mjs +1 -1
- package/dist/entities/media-content-type/index.cjs +10 -20
- package/dist/entities/media-content-type/index.d.cts +4 -280
- package/dist/entities/media-content-type/index.d.mts +4 -280
- package/dist/entities/media-content-type/index.mjs +3 -12
- package/dist/entities/media-creative-format/index.cjs +7 -15
- package/dist/entities/media-creative-format/index.d.cts +4 -42
- package/dist/entities/media-creative-format/index.d.mts +4 -42
- package/dist/entities/media-creative-format/index.mjs +3 -10
- package/dist/entities/media-medium/index.cjs +7 -15
- package/dist/entities/media-medium/index.d.cts +4 -273
- package/dist/entities/media-medium/index.d.mts +4 -273
- package/dist/entities/media-medium/index.mjs +3 -10
- package/dist/entities/media-platform/index.cjs +13 -25
- package/dist/entities/media-platform/index.d.cts +2 -361
- package/dist/entities/media-platform/index.d.mts +2 -361
- package/dist/entities/media-platform/index.mjs +3 -14
- package/dist/entities/monday-workspace/index.cjs +7 -15
- package/dist/entities/monday-workspace/index.d.cts +2 -291
- package/dist/entities/monday-workspace/index.d.mts +2 -291
- package/dist/entities/monday-workspace/index.mjs +3 -10
- package/dist/entities/newsletter-signup/index.cjs +2 -2
- package/dist/entities/newsletter-signup/index.mjs +1 -1
- package/dist/entities/policy-page/index.d.mts +1 -1
- package/dist/entities/product/index.cjs +1 -1
- package/dist/entities/product/index.d.cts +1 -319
- package/dist/entities/product/index.d.mts +1 -319
- package/dist/entities/product/index.mjs +1 -1
- package/dist/entities/product-highlight/index.cjs +2 -17
- package/dist/entities/product-highlight/index.d.cts +2 -1039
- package/dist/entities/product-highlight/index.d.mts +2 -1039
- package/dist/entities/product-highlight/index.mjs +2 -14
- package/dist/entities/resume/index.cjs +2 -2
- package/dist/entities/resume/index.mjs +1 -1
- package/dist/entities/tag/index.cjs +3 -3
- package/dist/entities/tag/index.d.cts +3 -14
- package/dist/entities/tag/index.d.mts +3 -14
- package/dist/entities/tag/index.mjs +2 -2
- package/dist/entities/team-member/index.cjs +13 -23
- package/dist/entities/team-member/index.d.cts +2 -1668
- package/dist/entities/team-member/index.d.mts +2 -1668
- package/dist/entities/team-member/index.mjs +2 -11
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/trend/index.cjs +3 -3
- package/dist/entities/trend/index.d.cts +1 -333
- package/dist/entities/trend/index.d.mts +1 -333
- package/dist/entities/trend/index.mjs +2 -2
- package/dist/entities/up-auth/index.d.cts +1 -1
- package/dist/entities/up-auth/index.d.mts +1 -1
- package/dist/entities/up-permission/index.cjs +1 -12
- package/dist/entities/up-permission/index.d.cts +2 -35
- package/dist/entities/up-permission/index.d.mts +2 -35
- package/dist/entities/up-permission/index.mjs +2 -10
- package/dist/entities/up-role/index.cjs +4 -17
- package/dist/entities/up-role/index.d.cts +2 -38
- package/dist/entities/up-role/index.d.mts +2 -38
- package/dist/entities/up-role/index.mjs +2 -12
- package/dist/entities/up-user/index.cjs +2 -16
- package/dist/entities/up-user/index.d.cts +2 -106
- package/dist/entities/up-user/index.d.mts +2 -106
- package/dist/entities/up-user/index.mjs +2 -15
- package/dist/entities/user-account/index.cjs +9 -16
- package/dist/entities/user-account/index.d.cts +3 -17
- package/dist/entities/user-account/index.d.mts +3 -17
- package/dist/entities/user-account/index.mjs +4 -10
- package/dist/entities/utm-link-builder/index.cjs +5 -5
- package/dist/entities/utm-link-builder/index.mjs +1 -1
- package/dist/entities/utm-tracking-link/index.cjs +7 -17
- package/dist/entities/utm-tracking-link/index.d.cts +2 -236
- package/dist/entities/utm-tracking-link/index.d.mts +2 -236
- package/dist/entities/utm-tracking-link/index.mjs +3 -12
- package/dist/index-22laZYwt.d.mts +34 -0
- package/dist/{index-DxyNYBOY.d.mts → index-B-CQQO_E.d.mts} +59 -140
- package/dist/index-BCvKbd4C.d.cts +940 -0
- package/dist/{index-D6AuLdB6.d.mts → index-BIWFngsB.d.mts} +3 -3
- package/dist/index-BQ_nheAt.d.mts +1324 -0
- package/dist/{index-Dcwyodut.d.cts → index-COCNx5sv.d.cts} +3 -3
- package/dist/index-Cb8BnFcL.d.cts +4731 -0
- package/dist/index-Cpbdnd9q.d.cts +317 -0
- package/dist/index-D0PCjo7e.d.mts +940 -0
- package/dist/index-DB45mxlG.d.mts +921 -0
- package/dist/index-Df7ixqwa.d.cts +1324 -0
- package/dist/index-GUYqdxFh.d.mts +4731 -0
- package/dist/index-NBz_zMvQ.d.cts +34 -0
- package/dist/index-Z_fJ28vW.d.mts +317 -0
- package/dist/index-_eItTyFr.d.cts +921 -0
- package/dist/{index-ZBDWYTfn.d.cts → index-j2pTtcNX.d.cts} +58 -139
- package/dist/media-upload-BEfESsVb.d.mts +140 -0
- package/dist/media-upload-D-nP8FR1.d.cts +140 -0
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/{query.schema-DHTf6rTw.cjs → query-7g1AOXN9.cjs} +3 -3
- package/dist/{query.schema-YKoOuBnk.mjs → query-CeUev0uJ.mjs} +2 -2
- package/dist/{query.schema-CItKlb0x.d.cts → query-Cyv28Ggi.d.cts} +1 -1
- package/dist/{query.schema-DKllKSKC.d.mts → query-HXwJctNd.d.mts} +1 -1
- package/dist/{relations-C04F46xL.mjs → relationships-BosK0kyG.mjs} +1 -1
- package/dist/{relations-CGu18hfT.cjs → relationships-CWVJebkQ.cjs} +1 -1
- package/dist/utilities/index.d.cts +2 -4
- package/dist/utilities/index.d.mts +2 -4
- package/package.json +1 -1
- package/dist/document-382ehFRd.mjs +0 -13
- package/dist/document-7JBq8iiP.d.mts +0 -100
- package/dist/document-8oGgjvHp.cjs +0 -21
- package/dist/document-B-BesdbN.cjs +0 -106
- package/dist/document-B0Wfxtx_.cjs +0 -31
- package/dist/document-B3W1HKLY.cjs +0 -42
- package/dist/document-B6m32jys.cjs +0 -26
- package/dist/document-BInCC6Wk.d.cts +0 -17
- package/dist/document-BM56JclD.mjs +0 -19
- package/dist/document-BQ6ulTO1.d.mts +0 -15
- package/dist/document-BRxLaO7o.mjs +0 -14
- package/dist/document-Bbc9ayLX.cjs +0 -23
- package/dist/document-BdMrLGBL.d.cts +0 -244
- package/dist/document-BezYxNmb.d.cts +0 -16
- package/dist/document-BpFw7FI0.d.mts +0 -16
- package/dist/document-Bpgteig6.mjs +0 -51
- package/dist/document-BqLA3Y8O.cjs +0 -17
- package/dist/document-BqfLH_0k.d.mts +0 -12183
- package/dist/document-Bs8c1mok.d.cts +0 -15
- package/dist/document-Bt9GvI0D.mjs +0 -10
- package/dist/document-Bu5YWCAU.cjs +0 -82
- package/dist/document-BumbQ1Eb.d.cts +0 -18
- package/dist/document-BvIcrPT7.cjs +0 -171
- package/dist/document-C3OB0I_l.mjs +0 -14
- package/dist/document-C4ofAcKx.d.mts +0 -434
- package/dist/document-CCcofYd9.d.mts +0 -16
- package/dist/document-CFlCafnR.mjs +0 -23
- package/dist/document-CLNQhWUt.d.cts +0 -12183
- package/dist/document-CUGxDcNv.mjs +0 -10
- package/dist/document-CW3ycXvJ.mjs +0 -23
- package/dist/document-CXQi4qL-.mjs +0 -39
- package/dist/document-CaSvsqH_.mjs +0 -16
- package/dist/document-CfUkGKW8.mjs +0 -9
- package/dist/document-Clr6FjtO.d.cts +0 -30
- package/dist/document-Cp8Pptp9.mjs +0 -23
- package/dist/document-Ct4bnsKU.d.mts +0 -27
- package/dist/document-CxeeO4Pl.d.mts +0 -18
- package/dist/document-D1jsgU3z.cjs +0 -24
- package/dist/document-D2sLfhsG.mjs +0 -12
- package/dist/document-D73dqRle.d.cts +0 -19
- package/dist/document-DA6YVZz-.d.cts +0 -100
- package/dist/document-DAt2jaAd.cjs +0 -26
- package/dist/document-DHP4LdYq.cjs +0 -21
- package/dist/document-DIcd27AR.d.mts +0 -30
- package/dist/document-DK6Xmvao.d.cts +0 -18
- package/dist/document-DL4Wayv7.d.mts +0 -244
- package/dist/document-DM_UVNTr.cjs +0 -35
- package/dist/document-DN3g0EFx.d.cts +0 -434
- package/dist/document-DOF-cc0D.mjs +0 -13
- package/dist/document-DX2Vidl1.d.cts +0 -27
- package/dist/document-DeOzRkxJ.mjs +0 -24
- package/dist/document-DgG9DIT2.cjs +0 -106
- package/dist/document-DtBkeafK.cjs +0 -30
- package/dist/document-Dv3TYeB2.cjs +0 -30
- package/dist/document-DwpVkKFH.cjs +0 -16
- package/dist/document-DwsiJVoA.mjs +0 -22
- package/dist/document-DwuQKbb9.cjs +0 -20
- package/dist/document-HWHxKIhw.mjs +0 -17
- package/dist/document-U0OA-83z.cjs +0 -19
- package/dist/document-YDFyLZlN.d.mts +0 -18
- package/dist/document-a6GT3Sh4.mjs +0 -19
- package/dist/document-ahAv6kkH.cjs +0 -17
- package/dist/document-bJOLxFq1.d.mts +0 -19
- package/dist/document-bbO2HaC_.mjs +0 -110
- package/dist/document-cysZuK08.mjs +0 -57
- package/dist/document-llX1moYE.mjs +0 -10
- package/dist/document-mxwQ5HxZ.cjs +0 -17
- package/dist/document-oPQeqMah.cjs +0 -20
- package/dist/document-oUROy-QQ.cjs +0 -21
- package/dist/document-wBWa6c70.mjs +0 -14
- package/dist/document-xVdETwbX.d.cts +0 -16
- package/dist/document-yW376Wot.d.mts +0 -17
- package/dist/fields-BuP0NSFS.d.mts +0 -7
- package/dist/fields-ByZAYnAi.d.cts +0 -7
- package/dist/index-DfGGyf7_.d.cts +0 -114
- package/dist/index-Dj9J1FKD.d.mts +0 -114
- package/dist/relations-CG_9IVCD.d.cts +0 -274
- package/dist/relations-DxgFak1L.d.mts +0 -274
- package/dist/response-BZKHnpHe.d.mts +0 -57
- package/dist/response-c6SgLvi9.d.cts +0 -57
- /package/dist/{document-B_wA1eag.cjs → document-Ccvtwgy_.cjs} +0 -0
- /package/dist/{document-BxOiI95X.mjs → document-D060zybc.mjs} +0 -0
- /package/dist/{document-D067FSuD.cjs → document-DaICHS9G.cjs} +0 -0
- /package/dist/{document-B_cRo5-b.mjs → document-c3GNPelp.mjs} +0 -0
- /package/dist/{json-BbJGr6x_.d.mts → json-p1Yf7cEr.d.mts} +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import { r as MediaUploadDocument } from "./media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { ComponentSharedRichTextBlock, RichTextBlock, SeoMeta } from "./components/shared/index.mjs";
|
|
4
|
+
import { BlockContact, BlockVideoEmbed, ComponentBlockButtonGroup, ComponentBlockContact, ComponentBlockFaq, ComponentBlockFullscreenContent, ComponentBlockGraphicImage, ComponentBlockPullQuote, ComponentBlockSectionTitle, ComponentBlockVideo } from "./components/blocks/index.mjs";
|
|
5
|
+
import { ComponentFormSelect } from "./components/forms/index.mjs";
|
|
6
|
+
import { ComponentSlideshow } from "./components/slideshow/index.mjs";
|
|
7
|
+
import { t as TagDocument } from "./document-c3GNPelp.mjs";
|
|
8
|
+
import * as v from "valibot";
|
|
9
|
+
//#region src/entities/blog-post/constants.ts
|
|
10
|
+
const LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE = 6;
|
|
11
|
+
const LIMIT_BLOG_POST_PAGINATION_MAX_SIZE = 20;
|
|
12
|
+
const BLOG_POST_SORT_KEYS = [
|
|
13
|
+
"id",
|
|
14
|
+
"title",
|
|
15
|
+
"slug",
|
|
16
|
+
"is_live",
|
|
17
|
+
"is_featured",
|
|
18
|
+
"is_public",
|
|
19
|
+
"published",
|
|
20
|
+
"createdAt",
|
|
21
|
+
"updatedAt"
|
|
22
|
+
];
|
|
23
|
+
const BLOG_POST_LAYOUT = ["main-aside", "center-column"];
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/entities/category/document.ts
|
|
26
|
+
const CategoryDocument = v.object({
|
|
27
|
+
...BaseDocument.entries,
|
|
28
|
+
label: v.string(),
|
|
29
|
+
slug: v.string(),
|
|
30
|
+
blog_posts: v.optional(v.nullable(v.array(v.lazy(() => BlogPostDocument))))
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/entities/trend/document.ts
|
|
34
|
+
const TrendDocument = v.object({
|
|
35
|
+
...BaseDocument.entries,
|
|
36
|
+
title: v.string(),
|
|
37
|
+
video_embed: v.optional(v.nullable(BlockVideoEmbed)),
|
|
38
|
+
caption: v.nullable(v.string()),
|
|
39
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
40
|
+
likes: v.number(),
|
|
41
|
+
creators: v.optional(v.nullable(v.array(v.lazy(() => TeamMemberDocument))))
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/entities/team-member/constants.ts
|
|
45
|
+
const LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE = 10;
|
|
46
|
+
const LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE = 20;
|
|
47
|
+
const TEAM_MEMBER_SORT_KEYS = [
|
|
48
|
+
"id",
|
|
49
|
+
"name",
|
|
50
|
+
"order",
|
|
51
|
+
"tier",
|
|
52
|
+
"group",
|
|
53
|
+
"is_employed",
|
|
54
|
+
"createdAt",
|
|
55
|
+
"updatedAt"
|
|
56
|
+
];
|
|
57
|
+
const TEAM_MEMBER_TIER = [
|
|
58
|
+
"owner",
|
|
59
|
+
"manager",
|
|
60
|
+
"employee"
|
|
61
|
+
];
|
|
62
|
+
const TEAM_MEMBER_GROUP = [
|
|
63
|
+
"account",
|
|
64
|
+
"media",
|
|
65
|
+
"creative"
|
|
66
|
+
];
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/entities/team-member/fields.ts
|
|
69
|
+
const QuerySortTeamMembers = v.optional(v.pipe(v.array(v.picklist(TEAM_MEMBER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(TEAM_MEMBER_SORT_KEYS.length)));
|
|
70
|
+
const TeamMemberTier = v.picklist(TEAM_MEMBER_TIER);
|
|
71
|
+
const TeamMemberGroup = v.picklist(TEAM_MEMBER_GROUP);
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/entities/team-member/document.ts
|
|
74
|
+
const TeamMemberDocument = v.object({
|
|
75
|
+
...BaseDocument.entries,
|
|
76
|
+
name: v.string(),
|
|
77
|
+
slug: v.string(),
|
|
78
|
+
order: v.number(),
|
|
79
|
+
job_title: v.string(),
|
|
80
|
+
tier: TeamMemberTier,
|
|
81
|
+
group: TeamMemberGroup,
|
|
82
|
+
is_employed: v.boolean(),
|
|
83
|
+
contact_links: v.optional(v.nullable(BlockContact)),
|
|
84
|
+
biography: v.nullable(v.array(RichTextBlock)),
|
|
85
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
86
|
+
featured_video: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
87
|
+
blog_posts: v.optional(v.nullable(v.array(v.lazy(() => BlogPostDocument)))),
|
|
88
|
+
trends: v.optional(v.nullable(v.array(v.lazy(() => TrendDocument))))
|
|
89
|
+
});
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/entities/blog-post/fields.ts
|
|
92
|
+
const QuerySortBlogPosts = v.optional(v.pipe(v.array(v.picklist(BLOG_POST_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(BLOG_POST_SORT_KEYS.length)));
|
|
93
|
+
const BlogPostLayout = v.picklist(BLOG_POST_LAYOUT);
|
|
94
|
+
const BlogPostBlock = v.union([
|
|
95
|
+
v.lazy(() => ComponentBlockSectionTitle),
|
|
96
|
+
v.lazy(() => ComponentBlockGraphicImage),
|
|
97
|
+
v.lazy(() => ComponentBlockPullQuote),
|
|
98
|
+
v.lazy(() => ComponentBlockVideo),
|
|
99
|
+
v.lazy(() => ComponentBlockFaq),
|
|
100
|
+
v.lazy(() => ComponentBlockContact),
|
|
101
|
+
v.lazy(() => ComponentBlockButtonGroup),
|
|
102
|
+
v.lazy(() => ComponentBlockFullscreenContent),
|
|
103
|
+
v.lazy(() => ComponentFormSelect),
|
|
104
|
+
v.lazy(() => ComponentSlideshow),
|
|
105
|
+
v.lazy(() => ComponentSharedRichTextBlock)
|
|
106
|
+
]);
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/entities/blog-post/document.ts
|
|
109
|
+
const BlogPostDocument = v.object({
|
|
110
|
+
...BaseDocument.entries,
|
|
111
|
+
title: v.string(),
|
|
112
|
+
slug: v.string(),
|
|
113
|
+
excerpt: v.string(),
|
|
114
|
+
published: v.string(),
|
|
115
|
+
is_live: v.boolean(),
|
|
116
|
+
is_featured: v.boolean(),
|
|
117
|
+
is_public: v.boolean(),
|
|
118
|
+
seo: v.optional(v.nullable(SeoMeta)),
|
|
119
|
+
layout: v.nullable(BlogPostLayout),
|
|
120
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
121
|
+
blocks: v.optional(v.array(v.lazy(() => BlogPostBlock))),
|
|
122
|
+
category: v.optional(v.nullable(v.lazy(() => CategoryDocument))),
|
|
123
|
+
tags: v.optional(v.nullable(v.array(v.lazy(() => TagDocument)))),
|
|
124
|
+
authors: v.optional(v.nullable(v.array(v.lazy(() => TeamMemberDocument)))),
|
|
125
|
+
related_posts: v.optional(v.nullable(v.array(v.lazy(() => BlogPostDocument))))
|
|
126
|
+
});
|
|
127
|
+
//#endregion
|
|
128
|
+
export { BLOG_POST_SORT_KEYS as _, TeamMemberDocument as a, TeamMemberTier as c, TEAM_MEMBER_GROUP as d, TEAM_MEMBER_SORT_KEYS as f, BLOG_POST_LAYOUT as g, CategoryDocument as h, QuerySortBlogPosts as i, LIMIT_TEAM_MEMBER_PAGINATION_DEFAULT_SIZE as l, TrendDocument as m, BlogPostBlock as n, QuerySortTeamMembers as o, TEAM_MEMBER_TIER as p, BlogPostLayout as r, TeamMemberGroup as s, BlogPostDocument as t, LIMIT_TEAM_MEMBER_PAGINATION_MAX_SIZE as u, LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE as v, LIMIT_BLOG_POST_PAGINATION_MAX_SIZE as y };
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import { r as MediaUploadDocument } from "./media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { r as CLIENT_ENTITY_SCOPES } from "./constants-Htf-MeCA.mjs";
|
|
4
|
+
import { RichTextBlock } from "./components/shared/index.mjs";
|
|
5
|
+
import { BlockBrandLogos, BlockFullscreenContent } from "./components/blocks/index.mjs";
|
|
6
|
+
import { ComponentBrandStyleguideColor, ComponentBrandStyleguideFont } from "./components/brand/index.mjs";
|
|
7
|
+
import { UtmClassificationKey } from "./components/utm/index.mjs";
|
|
8
|
+
import { t as TagDocument } from "./document-c3GNPelp.mjs";
|
|
9
|
+
import { t as ProductDocument } from "./document-D060zybc.mjs";
|
|
10
|
+
import { t as UserAccountDocument } from "./document-DnA3Nwgh.mjs";
|
|
11
|
+
import * as v from "valibot";
|
|
12
|
+
//#region src/entities/media-creative-format/document.ts
|
|
13
|
+
const MediaCreativeFormatDocument = v.object({
|
|
14
|
+
...BaseDocument.entries,
|
|
15
|
+
title: v.string(),
|
|
16
|
+
slug: v.string(),
|
|
17
|
+
is_active: v.boolean(),
|
|
18
|
+
description: v.nullable(v.string()),
|
|
19
|
+
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument))))
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/entities/media-content-type/document.ts
|
|
23
|
+
const MediaContentTypeDocument = v.object({
|
|
24
|
+
...BaseDocument.entries,
|
|
25
|
+
title: v.string(),
|
|
26
|
+
slug: v.string(),
|
|
27
|
+
is_active: v.boolean(),
|
|
28
|
+
is_organic_social: v.boolean(),
|
|
29
|
+
is_paid_media: v.boolean(),
|
|
30
|
+
description: v.nullable(v.string()),
|
|
31
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
32
|
+
media_platforms: v.optional(v.nullable(v.array(v.lazy(() => MediaPlatformDocument)))),
|
|
33
|
+
media_creative_formats: v.optional(v.nullable(v.array(v.lazy(() => MediaCreativeFormatDocument))))
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/entities/media-medium/document.ts
|
|
37
|
+
const MediaMediumDocument = v.object({
|
|
38
|
+
...BaseDocument.entries,
|
|
39
|
+
title: v.string(),
|
|
40
|
+
slug: v.string(),
|
|
41
|
+
is_active: v.boolean(),
|
|
42
|
+
is_organic_social: v.boolean(),
|
|
43
|
+
is_paid_media: v.boolean(),
|
|
44
|
+
description: v.nullable(v.string()),
|
|
45
|
+
media_platforms: v.optional(v.nullable(v.array(v.lazy(() => MediaPlatformDocument))))
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/entities/media-platform/document.ts
|
|
49
|
+
const MediaPlatformDocument = v.object({
|
|
50
|
+
...BaseDocument.entries,
|
|
51
|
+
title: v.string(),
|
|
52
|
+
slug: v.string(),
|
|
53
|
+
utm_key: v.string(),
|
|
54
|
+
is_active: v.boolean(),
|
|
55
|
+
is_organic_social: v.boolean(),
|
|
56
|
+
is_paid_media: v.boolean(),
|
|
57
|
+
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
58
|
+
description: v.nullable(v.string()),
|
|
59
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
60
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientMediaPlatformDocument)))),
|
|
61
|
+
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument)))),
|
|
62
|
+
media_mediums: v.optional(v.nullable(v.array(v.lazy(() => MediaMediumDocument))))
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/entities/client-media-platform/document.ts
|
|
66
|
+
const ClientMediaPlatformDocument = v.object({
|
|
67
|
+
...BaseDocument.entries,
|
|
68
|
+
url: v.nullable(v.string()),
|
|
69
|
+
is_active: v.boolean(),
|
|
70
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument))),
|
|
71
|
+
media_platform: v.optional(v.nullable(v.lazy(() => MediaPlatformDocument)))
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/entities/client-project/constants.ts
|
|
75
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE = 10;
|
|
76
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE = 100;
|
|
77
|
+
const CLIENT_PROJECT_STATUS = [
|
|
78
|
+
"coming-soon",
|
|
79
|
+
"now-open",
|
|
80
|
+
"for-sale",
|
|
81
|
+
"sold-out",
|
|
82
|
+
"available"
|
|
83
|
+
];
|
|
84
|
+
const CLIENT_PROJECT_PHASES = [
|
|
85
|
+
{
|
|
86
|
+
label: "Brand",
|
|
87
|
+
value: "brand",
|
|
88
|
+
description: "General/Company branded content"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "Phase 1",
|
|
92
|
+
value: "p1",
|
|
93
|
+
description: "Interest list building"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "Phase 2",
|
|
97
|
+
value: "p2",
|
|
98
|
+
description: "Pre-qualification, pre-sales"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: "Phase 3",
|
|
102
|
+
value: "p3",
|
|
103
|
+
description: "Grand opening, now open, available"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "Phase 4",
|
|
107
|
+
value: "p4",
|
|
108
|
+
description: "For sale, maintenance period"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: "Phase 5",
|
|
112
|
+
value: "p5",
|
|
113
|
+
description: "Final sale"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "Closed",
|
|
117
|
+
value: "closed",
|
|
118
|
+
description: "Sold out, no longer available"
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
const CLIENT_PROJECT_PHASE_VALUES = [
|
|
122
|
+
"brand",
|
|
123
|
+
"p1",
|
|
124
|
+
"p2",
|
|
125
|
+
"p3",
|
|
126
|
+
"p4",
|
|
127
|
+
"p5",
|
|
128
|
+
"closed"
|
|
129
|
+
];
|
|
130
|
+
const CLIENT_PROJECT_SORT_KEYS = [
|
|
131
|
+
"id",
|
|
132
|
+
"title",
|
|
133
|
+
"slug",
|
|
134
|
+
"is_active",
|
|
135
|
+
"is_hidden",
|
|
136
|
+
"project_phase",
|
|
137
|
+
"project_url",
|
|
138
|
+
"project_type",
|
|
139
|
+
"project_pricing",
|
|
140
|
+
"project_address",
|
|
141
|
+
"phone_number",
|
|
142
|
+
"num_of_models",
|
|
143
|
+
"num_of_units_remain",
|
|
144
|
+
"buyer_profile",
|
|
145
|
+
"social_organic_start_date",
|
|
146
|
+
"paid_media_start_date",
|
|
147
|
+
"go_date",
|
|
148
|
+
"createdAt",
|
|
149
|
+
"updatedAt"
|
|
150
|
+
];
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/entities/client-project/fields.ts
|
|
153
|
+
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)));
|
|
154
|
+
const ClientProjectStatus = v.picklist(CLIENT_PROJECT_STATUS);
|
|
155
|
+
const ClientProjectPhase = v.picklist(CLIENT_PROJECT_PHASE_VALUES);
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/entities/client-project/document.ts
|
|
158
|
+
const ClientProjectDocument = v.object({
|
|
159
|
+
...BaseDocument.entries,
|
|
160
|
+
title: v.string(),
|
|
161
|
+
slug: v.string(),
|
|
162
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
163
|
+
is_active: v.boolean(),
|
|
164
|
+
is_hidden: v.boolean(),
|
|
165
|
+
project_status: v.array(ClientProjectStatus),
|
|
166
|
+
project_phase: ClientProjectPhase,
|
|
167
|
+
project_url: v.nullable(v.string()),
|
|
168
|
+
project_type: v.nullable(v.string()),
|
|
169
|
+
project_pricing: v.nullable(v.string()),
|
|
170
|
+
project_address: v.nullable(v.string()),
|
|
171
|
+
phone_number: v.nullable(v.string()),
|
|
172
|
+
num_of_models: v.nullable(v.number()),
|
|
173
|
+
num_of_units_remain: v.nullable(v.number()),
|
|
174
|
+
buyer_profile: v.nullable(v.string()),
|
|
175
|
+
social_organic_start_date: v.nullable(v.string()),
|
|
176
|
+
paid_media_start_date: v.nullable(v.string()),
|
|
177
|
+
go_date: v.nullable(v.string()),
|
|
178
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument))))
|
|
179
|
+
});
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/entities/client-report/document.ts
|
|
182
|
+
const ClientReportDocument = v.object({
|
|
183
|
+
...BaseDocument.entries,
|
|
184
|
+
title: v.string(),
|
|
185
|
+
report_id: v.string(),
|
|
186
|
+
is_active: v.boolean(),
|
|
187
|
+
is_external: v.boolean(),
|
|
188
|
+
is_hidden: v.boolean(),
|
|
189
|
+
scopes: v.array(v.string()),
|
|
190
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument))))
|
|
191
|
+
});
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/entities/client-styleguide/document.ts
|
|
194
|
+
const ClientStyleguideDocument = v.object({
|
|
195
|
+
...BaseDocument.entries,
|
|
196
|
+
title: v.string(),
|
|
197
|
+
is_active: v.boolean(),
|
|
198
|
+
introduction: v.array(RichTextBlock),
|
|
199
|
+
voice: v.array(RichTextBlock),
|
|
200
|
+
communication: v.array(RichTextBlock),
|
|
201
|
+
brand_elements: v.array(RichTextBlock),
|
|
202
|
+
brand_intention: v.array(RichTextBlock),
|
|
203
|
+
mood: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
204
|
+
logos: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
205
|
+
brand_colors: v.optional(v.array(ComponentBrandStyleguideColor)),
|
|
206
|
+
brand_fonts: v.optional(v.array(ComponentBrandStyleguideFont)),
|
|
207
|
+
brand_application: v.optional(v.array(v.lazy(() => MediaUploadDocument))),
|
|
208
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument)))
|
|
209
|
+
});
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/entities/client-user/constants.ts
|
|
212
|
+
const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
|
|
213
|
+
const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
|
|
214
|
+
const CLIENT_USER_SORT_KEYS = [
|
|
215
|
+
"id",
|
|
216
|
+
"client.title",
|
|
217
|
+
"client.teamwork_id",
|
|
218
|
+
"client.teamwork_name",
|
|
219
|
+
"client.is_active",
|
|
220
|
+
"client.allow_create_utm_link",
|
|
221
|
+
"client.is_paid_media",
|
|
222
|
+
"client.is_organic_social",
|
|
223
|
+
"user.username",
|
|
224
|
+
"user.email",
|
|
225
|
+
"user.confirmed",
|
|
226
|
+
"user.blocked",
|
|
227
|
+
"createdAt",
|
|
228
|
+
"updatedAt"
|
|
229
|
+
];
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/entities/client-user/fields.ts
|
|
232
|
+
const QuerySortClientUsers = v.optional(v.pipe(v.array(v.picklist(CLIENT_USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CLIENT_USER_SORT_KEYS.length)));
|
|
233
|
+
const ClientUserScope = v.pipe(v.array(v.picklist(CLIENT_ENTITY_SCOPES), "Please provide a valid list of scopes."), v.maxLength(CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."));
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/entities/client-user/document.ts
|
|
236
|
+
const ClientUserDocument = v.object({
|
|
237
|
+
...BaseDocument.entries,
|
|
238
|
+
scopes: v.array(ClientUserScope),
|
|
239
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument))),
|
|
240
|
+
user: v.optional(v.unknown())
|
|
241
|
+
});
|
|
242
|
+
const ClientUserDocumentStatus = v.object({
|
|
243
|
+
verified: v.boolean(),
|
|
244
|
+
clientUser: v.nullable(v.lazy(() => ClientUserDocument)),
|
|
245
|
+
scopes: ClientUserScope
|
|
246
|
+
});
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/entities/gcflytour-snap/document.ts
|
|
249
|
+
const GCFlyTourSnapDocument = v.object({
|
|
250
|
+
...BaseDocument.entries,
|
|
251
|
+
title: v.string(),
|
|
252
|
+
slug: v.string(),
|
|
253
|
+
description: v.nullable(v.string()),
|
|
254
|
+
is_active: v.boolean(),
|
|
255
|
+
is_hidden: v.boolean(),
|
|
256
|
+
gcflytour: v.optional(v.nullable(v.lazy(() => GCFlyTourDocument)))
|
|
257
|
+
});
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/entities/gcflytour/document.ts
|
|
260
|
+
const GCFlyTourDocument = v.object({
|
|
261
|
+
...BaseDocument.entries,
|
|
262
|
+
title: v.string(),
|
|
263
|
+
slug: v.string(),
|
|
264
|
+
description: v.nullable(v.string()),
|
|
265
|
+
is_active: v.boolean(),
|
|
266
|
+
is_hidden: v.boolean(),
|
|
267
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument)))),
|
|
268
|
+
gcflytour_snaps: v.optional(v.nullable(v.array(v.lazy(() => GCFlyTourSnapDocument))))
|
|
269
|
+
});
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/entities/monday-workspace/document.ts
|
|
272
|
+
const MondayWorkspaceDocument = v.object({
|
|
273
|
+
...BaseDocument.entries,
|
|
274
|
+
title: v.string(),
|
|
275
|
+
workspace_id: v.string(),
|
|
276
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument))))
|
|
277
|
+
});
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region src/entities/product-highlight/document.ts
|
|
280
|
+
const ProductHighlightDocument = v.object({
|
|
281
|
+
...BaseDocument.entries,
|
|
282
|
+
title: v.string(),
|
|
283
|
+
title_line_1: v.string(),
|
|
284
|
+
title_line_2: v.string(),
|
|
285
|
+
introduction: v.string(),
|
|
286
|
+
highlight: v.optional(BlockFullscreenContent),
|
|
287
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
288
|
+
background_color: v.string(),
|
|
289
|
+
order: v.number(),
|
|
290
|
+
text_invert: v.boolean(),
|
|
291
|
+
products: v.optional(v.nullable(v.array(v.lazy(() => ProductDocument)))),
|
|
292
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument)))),
|
|
293
|
+
tags: v.optional(v.nullable(v.array(v.lazy(() => TagDocument))))
|
|
294
|
+
});
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/entities/up-permission/document.ts
|
|
297
|
+
const PermissionDocument = v.object({
|
|
298
|
+
...BaseDocument.entries,
|
|
299
|
+
action: v.string(),
|
|
300
|
+
role: v.optional(v.nullable(v.lazy(() => RoleDocument)))
|
|
301
|
+
});
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/entities/up-role/constants.ts
|
|
304
|
+
const ROLE_TYPES = [
|
|
305
|
+
"authenticated",
|
|
306
|
+
"public",
|
|
307
|
+
"employee",
|
|
308
|
+
"manager",
|
|
309
|
+
"client"
|
|
310
|
+
];
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/entities/up-role/fields.ts
|
|
313
|
+
const RoleType = v.picklist(ROLE_TYPES);
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region src/entities/up-role/document.ts
|
|
316
|
+
const RoleDocument = v.object({
|
|
317
|
+
...BaseDocument.entries,
|
|
318
|
+
type: RoleType,
|
|
319
|
+
name: v.string(),
|
|
320
|
+
description: v.nullable(v.string()),
|
|
321
|
+
permissions: v.optional(v.nullable(v.array(v.lazy(() => PermissionDocument)))),
|
|
322
|
+
users: v.optional(v.nullable(v.array(v.lazy(() => UserDocument))))
|
|
323
|
+
});
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region src/entities/up-user/document.ts
|
|
326
|
+
const UserDocument = v.object({
|
|
327
|
+
...BaseDocument.entries,
|
|
328
|
+
username: v.string(),
|
|
329
|
+
email: v.string(),
|
|
330
|
+
provider: v.string(),
|
|
331
|
+
confirmed: v.boolean(),
|
|
332
|
+
blocked: v.boolean(),
|
|
333
|
+
clerk_user_id: v.nullable(v.string()),
|
|
334
|
+
role: v.optional(v.nullable(v.lazy(() => RoleDocument))),
|
|
335
|
+
account: v.optional(v.nullable(v.lazy(() => UserAccountDocument))),
|
|
336
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientUserDocument)))),
|
|
337
|
+
utm_tracking_links: v.optional(v.nullable(v.array(v.lazy(() => UtmTrackingLinkDocument))))
|
|
338
|
+
});
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/entities/utm-tracking-link/document.ts
|
|
341
|
+
const UtmTrackingLinkDocument = v.object({
|
|
342
|
+
...BaseDocument.entries,
|
|
343
|
+
url_destination: v.string(),
|
|
344
|
+
utm_medium: v.string(),
|
|
345
|
+
utm_source: v.string(),
|
|
346
|
+
utm_campaign: v.string(),
|
|
347
|
+
utm_content: v.nullable(v.string()),
|
|
348
|
+
utm_creative_format: v.nullable(v.string()),
|
|
349
|
+
utm_id: v.nullable(v.string()),
|
|
350
|
+
campaign_phase: v.string(),
|
|
351
|
+
campaign_product: v.nullable(v.string()),
|
|
352
|
+
campaign_targeting: v.nullable(v.string()),
|
|
353
|
+
campaign_key: v.nullable(v.string()),
|
|
354
|
+
creative_format: v.nullable(v.string()),
|
|
355
|
+
creative_format_variants: v.nullable(v.string()),
|
|
356
|
+
url: v.string(),
|
|
357
|
+
is_active: v.boolean(),
|
|
358
|
+
notes: v.nullable(v.string()),
|
|
359
|
+
creator: v.optional(v.nullable(v.lazy(() => UserDocument))),
|
|
360
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument)))
|
|
361
|
+
});
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region src/entities/client/document.ts
|
|
364
|
+
const ClientDocument = v.object({
|
|
365
|
+
...BaseDocument.entries,
|
|
366
|
+
title: v.string(),
|
|
367
|
+
is_featured: v.boolean(),
|
|
368
|
+
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
369
|
+
teamwork_id: v.string(),
|
|
370
|
+
teamwork_name: v.string(),
|
|
371
|
+
gainapp_id: v.nullable(v.string()),
|
|
372
|
+
utm_sheet_id: v.string(),
|
|
373
|
+
allow_create_utm_link: v.boolean(),
|
|
374
|
+
is_organic_social: v.boolean(),
|
|
375
|
+
is_paid_media: v.boolean(),
|
|
376
|
+
is_active: v.boolean(),
|
|
377
|
+
is_hidden: v.boolean(),
|
|
378
|
+
classification: v.array(UtmClassificationKey),
|
|
379
|
+
users: v.optional(v.nullable(v.array(v.lazy(() => ClientUserDocument)))),
|
|
380
|
+
product_highlights: v.optional(v.nullable(v.array(v.lazy(() => ProductHighlightDocument)))),
|
|
381
|
+
client_projects: v.optional(v.nullable(v.array(v.lazy(() => ClientProjectDocument)))),
|
|
382
|
+
client_reports: v.optional(v.nullable(v.array(v.lazy(() => ClientReportDocument)))),
|
|
383
|
+
monday_workspaces: v.optional(v.nullable(v.array(v.lazy(() => MondayWorkspaceDocument)))),
|
|
384
|
+
utm_tracking_links: v.optional(v.nullable(v.array(v.lazy(() => UtmTrackingLinkDocument)))),
|
|
385
|
+
styleguides: v.optional(v.nullable(v.array(v.lazy(() => ClientStyleguideDocument)))),
|
|
386
|
+
media_platforms: v.optional(v.nullable(v.array(v.lazy(() => ClientMediaPlatformDocument)))),
|
|
387
|
+
content_pillars: v.optional(v.nullable(v.array(v.lazy(() => ClientContentPillarDocument)))),
|
|
388
|
+
gcflytours: v.optional(v.nullable(v.array(v.lazy(() => GCFlyTourDocument))))
|
|
389
|
+
});
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/entities/content-pillar/document.ts
|
|
392
|
+
const ContentPillarDocument = v.object({
|
|
393
|
+
...BaseDocument.entries,
|
|
394
|
+
title: v.string(),
|
|
395
|
+
slug: v.string(),
|
|
396
|
+
description: v.nullable(v.string()),
|
|
397
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
398
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientContentPillarDocument))))
|
|
399
|
+
});
|
|
400
|
+
//#endregion
|
|
401
|
+
//#region src/entities/client-content-pillar/document.ts
|
|
402
|
+
const ClientContentPillarDocument = v.object({
|
|
403
|
+
...BaseDocument.entries,
|
|
404
|
+
is_active: v.boolean(),
|
|
405
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument))),
|
|
406
|
+
content_pillar: v.optional(v.nullable(v.lazy(() => ContentPillarDocument)))
|
|
407
|
+
});
|
|
408
|
+
//#endregion
|
|
409
|
+
export { CLIENT_PROJECT_STATUS as A, ClientProjectDocument as C, CLIENT_PROJECT_PHASES as D, QuerySortClientProjects as E, MediaMediumDocument as F, MediaContentTypeDocument as I, MediaCreativeFormatDocument as L, LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE as M, ClientMediaPlatformDocument as N, CLIENT_PROJECT_PHASE_VALUES as O, MediaPlatformDocument as P, ClientReportDocument as S, ClientProjectStatus as T, QuerySortClientUsers as _, UserDocument as a, LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT as b, ROLE_TYPES as c, MondayWorkspaceDocument as d, GCFlyTourDocument as f, ClientUserScope as g, ClientUserDocumentStatus as h, UtmTrackingLinkDocument as i, LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE as j, CLIENT_PROJECT_SORT_KEYS as k, PermissionDocument as l, ClientUserDocument as m, ContentPillarDocument as n, RoleDocument as o, GCFlyTourSnapDocument as p, ClientDocument as r, RoleType as s, ClientContentPillarDocument as t, ProductHighlightDocument as u, CLIENT_USER_SORT_KEYS as v, ClientProjectPhase as w, ClientStyleguideDocument as x, LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT as y };
|
|
@@ -7,7 +7,8 @@ const UserAccountDocument = valibot.object({
|
|
|
7
7
|
...require_document.BaseDocument.entries,
|
|
8
8
|
preferred_name: valibot.nullable(valibot.string()),
|
|
9
9
|
first_name: valibot.string(),
|
|
10
|
-
last_name: valibot.string()
|
|
10
|
+
last_name: valibot.string(),
|
|
11
|
+
user: valibot.optional(valibot.unknown())
|
|
11
12
|
});
|
|
12
13
|
//#endregion
|
|
13
14
|
Object.defineProperty(exports, "UserAccountDocument", {
|
|
@@ -5,7 +5,8 @@ const UserAccountDocument = v.object({
|
|
|
5
5
|
...BaseDocument.entries,
|
|
6
6
|
preferred_name: v.nullable(v.string()),
|
|
7
7
|
first_name: v.string(),
|
|
8
|
-
last_name: v.string()
|
|
8
|
+
last_name: v.string(),
|
|
9
|
+
user: v.optional(v.unknown())
|
|
9
10
|
});
|
|
10
11
|
//#endregion
|
|
11
12
|
export { UserAccountDocument as t };
|