@getcommunity/gc-validators 0.0.271-alpha.5 → 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-Bpr9mbCs.d.mts → document-CH1Od98-.d.mts} +6 -6
- package/dist/document-Ccvtwgy_.cjs +26 -0
- package/dist/{document-Gx2Vrg_w.d.mts → document-CnKWB70Z.d.cts} +158 -104
- package/dist/{document-hEBlSep8.d.cts → document-CpsxYzbB.d.cts} +6 -6
- package/dist/document-CrnqUGRk.cjs +243 -0
- package/dist/document-Cx4Klv8A.mjs +128 -0
- package/dist/document-D060zybc.mjs +19 -0
- package/dist/document-DUHPXtbm.mjs +409 -0
- package/dist/document-DaICHS9G.cjs +17 -0
- package/dist/document-DamlTVm7.cjs +19 -0
- package/dist/document-DnA3Nwgh.mjs +12 -0
- package/dist/{document-BMxLOdrT.d.cts → document-Dr5-pbqu.d.mts} +158 -104
- package/dist/document-GovGVYRl.d.mts +17 -0
- package/dist/document-c3GNPelp.mjs +10 -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 +11 -65
- package/dist/entities/blog-post/index.d.cts +1 -1620
- package/dist/entities/blog-post/index.d.mts +1 -1620
- package/dist/entities/blog-post/index.mjs +1 -55
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.cjs +4 -11
- package/dist/entities/category/index.d.cts +3 -14
- package/dist/entities/category/index.d.mts +3 -14
- package/dist/entities/category/index.mjs +2 -9
- package/dist/entities/client/index.cjs +3 -3
- package/dist/entities/client/index.d.cts +1 -84
- package/dist/entities/client/index.d.mts +1 -84
- package/dist/entities/client/index.mjs +2 -2
- package/dist/entities/client-content-pillar/index.cjs +10 -20
- 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 -12
- package/dist/entities/client-media-platform/index.cjs +10 -17
- package/dist/entities/client-media-platform/index.d.cts +1 -52
- package/dist/entities/client-media-platform/index.d.mts +1 -52
- package/dist/entities/client-media-platform/index.mjs +2 -9
- package/dist/entities/client-project/index.cjs +22 -129
- package/dist/entities/client-project/index.d.cts +1 -146
- package/dist/entities/client-project/index.d.mts +1 -146
- package/dist/entities/client-project/index.mjs +2 -109
- package/dist/entities/client-report/index.cjs +7 -18
- package/dist/entities/client-report/index.d.cts +1 -62
- package/dist/entities/client-report/index.d.mts +1 -62
- package/dist/entities/client-report/index.mjs +2 -13
- package/dist/entities/client-styleguide/index.cjs +7 -27
- package/dist/entities/client-styleguide/index.d.cts +1 -47
- package/dist/entities/client-styleguide/index.d.mts +1 -47
- package/dist/entities/client-styleguide/index.mjs +2 -22
- package/dist/entities/client-user/index.cjs +17 -53
- package/dist/entities/client-user/index.d.cts +1 -46
- package/dist/entities/client-user/index.d.mts +1 -46
- package/dist/entities/client-user/index.mjs +2 -38
- package/dist/entities/comment/index.d.cts +1 -1
- package/dist/entities/content-pillar/index.cjs +5 -5
- package/dist/entities/content-pillar/index.d.cts +1 -49
- package/dist/entities/content-pillar/index.d.mts +1 -49
- package/dist/entities/content-pillar/index.mjs +2 -2
- 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 +1 -60
- package/dist/entities/gcflytour/index.d.mts +1 -60
- package/dist/entities/gcflytour/index.mjs +2 -12
- package/dist/entities/gcflytour-snap/index.cjs +7 -17
- package/dist/entities/gcflytour-snap/index.d.cts +1 -58
- package/dist/entities/gcflytour-snap/index.d.mts +1 -58
- package/dist/entities/gcflytour-snap/index.mjs +2 -12
- 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 -23
- package/dist/entities/media-content-type/index.d.cts +3 -3
- package/dist/entities/media-content-type/index.d.mts +3 -3
- package/dist/entities/media-content-type/index.mjs +2 -15
- package/dist/entities/media-creative-format/index.cjs +7 -16
- package/dist/entities/media-creative-format/index.d.cts +3 -3
- package/dist/entities/media-creative-format/index.d.mts +3 -3
- package/dist/entities/media-creative-format/index.mjs +2 -11
- package/dist/entities/media-medium/index.cjs +7 -18
- package/dist/entities/media-medium/index.d.cts +3 -18
- package/dist/entities/media-medium/index.d.mts +3 -18
- package/dist/entities/media-medium/index.mjs +2 -13
- package/dist/entities/media-platform/index.cjs +13 -29
- package/dist/entities/media-platform/index.d.cts +1 -73
- package/dist/entities/media-platform/index.d.mts +1 -73
- package/dist/entities/media-platform/index.mjs +2 -18
- package/dist/entities/monday-workspace/index.cjs +7 -14
- package/dist/entities/monday-workspace/index.d.cts +1 -46
- package/dist/entities/monday-workspace/index.d.mts +1 -46
- package/dist/entities/monday-workspace/index.mjs +2 -9
- 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 +2 -21
- 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 -18
- package/dist/entities/product-highlight/index.cjs +2 -21
- package/dist/entities/product-highlight/index.d.cts +1 -244
- package/dist/entities/product-highlight/index.d.mts +1 -244
- package/dist/entities/product-highlight/index.mjs +1 -18
- package/dist/entities/resume/index.cjs +2 -2
- package/dist/entities/resume/index.mjs +1 -1
- package/dist/entities/tag/index.cjs +4 -11
- 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 -9
- package/dist/entities/team-member/index.cjs +1 -1
- package/dist/entities/team-member/index.d.cts +1 -209
- package/dist/entities/team-member/index.d.mts +1 -209
- package/dist/entities/team-member/index.mjs +1 -1
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/trend/index.cjs +4 -18
- 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 -16
- 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 +2 -11
- package/dist/entities/up-permission/index.d.cts +1 -13
- package/dist/entities/up-permission/index.d.mts +1 -13
- package/dist/entities/up-permission/index.mjs +1 -8
- package/dist/entities/up-role/index.cjs +4 -27
- package/dist/entities/up-role/index.d.cts +1 -2
- package/dist/entities/up-role/index.d.mts +1 -2
- package/dist/entities/up-role/index.mjs +1 -22
- package/dist/entities/up-user/index.cjs +2 -13
- package/dist/entities/up-user/index.d.cts +1 -37
- package/dist/entities/up-user/index.d.mts +1 -37
- package/dist/entities/up-user/index.mjs +1 -12
- package/dist/entities/url-redirect/index.d.cts +2 -2
- package/dist/entities/url-redirect/index.d.mts +2 -2
- package/dist/entities/user-account/index.cjs +10 -18
- package/dist/entities/user-account/index.d.cts +2 -2
- package/dist/entities/user-account/index.d.mts +2 -2
- package/dist/entities/user-account/index.mjs +3 -11
- 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 -28
- package/dist/entities/utm-tracking-link/index.d.cts +1 -234
- package/dist/entities/utm-tracking-link/index.d.mts +1 -234
- package/dist/entities/utm-tracking-link/index.mjs +2 -23
- package/dist/index-22laZYwt.d.mts +34 -0
- package/dist/{index-Bht1Jd5l.d.mts → index-B-CQQO_E.d.mts} +59 -140
- package/dist/index-BCvKbd4C.d.cts +940 -0
- package/dist/index-BQ_nheAt.d.mts +1324 -0
- 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-BOn5Kk_p.d.mts → query-Cyv28Ggi.d.cts} +1 -1
- package/dist/{query.schema-CItKlb0x.d.cts → 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-AkydjorI.d.cts +0 -12219
- package/dist/document-BAzLIprH.d.mts +0 -100
- package/dist/document-BK1ASowb.d.cts +0 -17
- package/dist/document-BNoXPGwF.d.mts +0 -27
- package/dist/document-B_pJW777.d.mts +0 -30
- package/dist/document-Bd2AyLs8.d.mts +0 -16
- package/dist/document-BezYxNmb.d.cts +0 -16
- package/dist/document-Bj7SRTOn.d.cts +0 -18
- package/dist/document-Bo869pZx.d.mts +0 -18
- package/dist/document-Bs8c1mok.d.cts +0 -15
- package/dist/document-C0c7azOe.d.mts +0 -434
- package/dist/document-CTTDXzOF.mjs +0 -13
- package/dist/document-CUl_Ys6-.mjs +0 -23
- package/dist/document-CWYzG60q.d.cts +0 -19
- package/dist/document-Ccszj8lR.cjs +0 -20
- package/dist/document-CjNHI7Eb.d.cts +0 -27
- package/dist/document-Cu_HUDC5.mjs +0 -51
- package/dist/document-D-KvyEb5.d.cts +0 -238
- package/dist/document-D2nLVGig.d.mts +0 -238
- package/dist/document-D5yDIDIx.d.mts +0 -15
- package/dist/document-D73dqRle.d.cts +0 -19
- package/dist/document-DA6YVZz-.d.cts +0 -100
- package/dist/document-DJ0YiVte.d.cts +0 -30
- package/dist/document-DMHIUE3J.d.mts +0 -17
- package/dist/document-DN3g0EFx.d.cts +0 -434
- package/dist/document-DYzRVV1C.d.mts +0 -16
- package/dist/document-D_ZMbzn6.d.cts +0 -18
- package/dist/document-DeoRGh7p.d.mts +0 -19
- package/dist/document-DsIPBTG8.cjs +0 -30
- package/dist/document-DsSaMVGb.cjs +0 -106
- package/dist/document-DsT_qkhs.d.mts +0 -12219
- package/dist/document-IIJpsOIO.d.cts +0 -16
- package/dist/document-WHS8GHY5.d.mts +0 -18
- package/dist/document-dqrWptdY.d.cts +0 -244
- package/dist/document-si7GYS5g.d.mts +0 -19
- package/dist/document-vq-7rcU5.d.mts +0 -244
- package/dist/fields-BQHSYj70.d.cts +0 -7
- package/dist/fields-qx-5saY5.d.mts +0 -7
- package/dist/index-BI8tN-QZ.d.mts +0 -99
- package/dist/index-DpYYzY_9.d.cts +0 -99
- package/dist/response-C-7nyNVD.d.mts +0 -57
- package/dist/response-c6SgLvi9.d.cts +0 -57
- /package/dist/{index-D4Mm4D2d.d.cts → index-COCNx5sv.d.cts} +0 -0
- /package/dist/{json-CqAaKeHA.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,19 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import { r as MediaUploadDocument } from "./media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { SeoMeta } from "./components/shared/index.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
//#region src/entities/product/document.ts
|
|
6
|
+
const ProductDocument = v.object({
|
|
7
|
+
...BaseDocument.entries,
|
|
8
|
+
seo: v.optional(SeoMeta),
|
|
9
|
+
title: v.string(),
|
|
10
|
+
slug: v.string(),
|
|
11
|
+
introduction: v.string(),
|
|
12
|
+
flyer_link: v.nullable(v.string()),
|
|
13
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
14
|
+
cta_text: v.string(),
|
|
15
|
+
cta_form_caption: v.string(),
|
|
16
|
+
order: v.number()
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ProductDocument as t };
|
|
@@ -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 };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
+
let valibot = require("valibot");
|
|
4
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
5
|
+
//#region src/entities/tag/document.ts
|
|
6
|
+
const TagDocument = valibot.object({
|
|
7
|
+
...require_document.BaseDocument.entries,
|
|
8
|
+
label: valibot.string(),
|
|
9
|
+
slug: valibot.string()
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, "TagDocument", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return TagDocument;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
+
let valibot = require("valibot");
|
|
4
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
5
|
+
//#region src/entities/user-account/document.ts
|
|
6
|
+
const UserAccountDocument = valibot.object({
|
|
7
|
+
...require_document.BaseDocument.entries,
|
|
8
|
+
preferred_name: valibot.nullable(valibot.string()),
|
|
9
|
+
first_name: valibot.string(),
|
|
10
|
+
last_name: valibot.string(),
|
|
11
|
+
user: valibot.optional(valibot.unknown())
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
Object.defineProperty(exports, "UserAccountDocument", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return UserAccountDocument;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
//#region src/entities/user-account/document.ts
|
|
4
|
+
const UserAccountDocument = v.object({
|
|
5
|
+
...BaseDocument.entries,
|
|
6
|
+
preferred_name: v.nullable(v.string()),
|
|
7
|
+
first_name: v.string(),
|
|
8
|
+
last_name: v.string(),
|
|
9
|
+
user: v.optional(v.unknown())
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { UserAccountDocument as t };
|