@getcommunity/gc-validators 0.0.271-alpha.6 → 0.0.271-alpha.8
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 +2 -3
- package/dist/base/index.d.mts +3 -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-BMxLOdrT.d.cts → document-BVhB_t1g.d.mts} +158 -104
- package/dist/document-BpfE6S21.cjs +728 -0
- package/dist/{document-BPdwRVjm.d.cts → document-CbE38CzE.d.mts} +6 -6
- package/dist/document-CrnqUGRk.cjs +243 -0
- package/dist/document-Cx4Klv8A.mjs +128 -0
- package/dist/{document-Db1-gtyJ.d.mts → document-DtDSYDbn.d.cts} +158 -104
- package/dist/document-dPYjuVEj.mjs +457 -0
- package/dist/{document-DY8Wgy1A.d.mts → document-i-h3Orv7.d.cts} +6 -6
- 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 +9 -66
- 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 -56
- 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 +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-87puatMp.d.cts +940 -0
- package/dist/index-B3VtiObV.d.mts +317 -0
- package/dist/index-BbwsFaWE.d.cts +921 -0
- package/dist/index-CAls2gHf.d.mts +4744 -0
- package/dist/{index-DxyNYBOY.d.mts → index-CJ2_Z1gW.d.mts} +97 -140
- package/dist/index-CQP_vcmO.d.cts +317 -0
- package/dist/index-CRoWUxGV.d.cts +1324 -0
- package/dist/index-D11tQdCv.d.cts +34 -0
- package/dist/{index-D6AuLdB6.d.mts → index-D3KnOYr7.d.mts} +3 -3
- package/dist/index-DJ-0EDJN.d.mts +921 -0
- package/dist/index-DLICmJ_-.d.mts +34 -0
- package/dist/{index-Dcwyodut.d.cts → index-D_YPjLxv.d.cts} +3 -3
- package/dist/index-DnkNzEew.d.mts +940 -0
- package/dist/{index-ZBDWYTfn.d.cts → index-efk0FfOP.d.cts} +96 -139
- package/dist/index-oCLNrzIj.d.mts +1324 -0
- package/dist/index-ygBcXT6p.d.cts +4744 -0
- package/dist/media-upload-D-nP8FR1.d.cts +140 -0
- package/dist/media-upload-DKeA1eD-.d.mts +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/{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-Cww9JKGT.mjs +0 -11
- 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-DnVLqNHr.cjs +0 -18
- 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/query.schema-CItKlb0x.d.cts +0 -41
- package/dist/query.schema-DKllKSKC.d.mts +0 -41
- 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-CiA5ZRzc.d.mts} +0 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import { r as MediaUploadDocument } from "./media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { s as REGEX_UTM_VALUE } from "./regex-BnKGcdS4.mjs";
|
|
4
|
+
import { d as VStringMinMax, f as VStringMinMaxRegex, h as VStringShort, i as VSize, o as VStringEmail, r as VPage } from "./validators-P5E_3qzc.mjs";
|
|
5
|
+
import { r as CLIENT_ENTITY_SCOPES } from "./constants-Htf-MeCA.mjs";
|
|
6
|
+
import { RichTextBlock } from "./components/shared/index.mjs";
|
|
7
|
+
import { BlockBrandLogos, BlockFullscreenContent } from "./components/blocks/index.mjs";
|
|
8
|
+
import { ComponentBrandStyleguideColor, ComponentBrandStyleguideFont } from "./components/brand/index.mjs";
|
|
9
|
+
import { UtmClassificationKey } from "./components/utm/index.mjs";
|
|
10
|
+
import { t as TagDocument } from "./document-c3GNPelp.mjs";
|
|
11
|
+
import { t as ProductDocument } from "./document-D060zybc.mjs";
|
|
12
|
+
import * as v from "valibot";
|
|
13
|
+
//#region src/entities/content-pillar/document.ts
|
|
14
|
+
const ContentPillarDocument = v.object({
|
|
15
|
+
...BaseDocument.entries,
|
|
16
|
+
title: v.string(),
|
|
17
|
+
slug: v.string(),
|
|
18
|
+
description: v.nullable(v.string()),
|
|
19
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
20
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientContentPillarDocument))))
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/entities/client-content-pillar/document.ts
|
|
24
|
+
const ClientContentPillarDocument = v.object({
|
|
25
|
+
...BaseDocument.entries,
|
|
26
|
+
is_active: v.boolean(),
|
|
27
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument))),
|
|
28
|
+
content_pillar: v.optional(v.nullable(v.lazy(() => ContentPillarDocument)))
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/entities/media-creative-format/document.ts
|
|
32
|
+
const MediaCreativeFormatDocument = v.object({
|
|
33
|
+
...BaseDocument.entries,
|
|
34
|
+
title: v.string(),
|
|
35
|
+
slug: v.string(),
|
|
36
|
+
is_active: v.boolean(),
|
|
37
|
+
description: v.nullable(v.string()),
|
|
38
|
+
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument))))
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/entities/media-content-type/document.ts
|
|
42
|
+
const MediaContentTypeDocument = v.object({
|
|
43
|
+
...BaseDocument.entries,
|
|
44
|
+
title: v.string(),
|
|
45
|
+
slug: v.string(),
|
|
46
|
+
is_active: v.boolean(),
|
|
47
|
+
is_organic_social: v.boolean(),
|
|
48
|
+
is_paid_media: v.boolean(),
|
|
49
|
+
description: v.nullable(v.string()),
|
|
50
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
51
|
+
media_platforms: v.optional(v.nullable(v.array(v.lazy(() => MediaPlatformDocument)))),
|
|
52
|
+
media_creative_formats: v.optional(v.nullable(v.array(v.lazy(() => MediaCreativeFormatDocument))))
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/entities/media-medium/document.ts
|
|
56
|
+
const MediaMediumDocument = v.object({
|
|
57
|
+
...BaseDocument.entries,
|
|
58
|
+
title: v.string(),
|
|
59
|
+
slug: v.string(),
|
|
60
|
+
is_active: v.boolean(),
|
|
61
|
+
is_organic_social: v.boolean(),
|
|
62
|
+
is_paid_media: v.boolean(),
|
|
63
|
+
description: v.nullable(v.string()),
|
|
64
|
+
media_platforms: v.optional(v.nullable(v.array(v.lazy(() => MediaPlatformDocument))))
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/entities/media-platform/document.ts
|
|
68
|
+
const MediaPlatformDocument = v.object({
|
|
69
|
+
...BaseDocument.entries,
|
|
70
|
+
title: v.string(),
|
|
71
|
+
slug: v.string(),
|
|
72
|
+
utm_key: v.string(),
|
|
73
|
+
is_active: v.boolean(),
|
|
74
|
+
is_organic_social: v.boolean(),
|
|
75
|
+
is_paid_media: v.boolean(),
|
|
76
|
+
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
77
|
+
description: v.nullable(v.string()),
|
|
78
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
79
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientMediaPlatformDocument)))),
|
|
80
|
+
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument)))),
|
|
81
|
+
media_mediums: v.optional(v.nullable(v.array(v.lazy(() => MediaMediumDocument))))
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/entities/client-media-platform/document.ts
|
|
85
|
+
const ClientMediaPlatformDocument = v.object({
|
|
86
|
+
...BaseDocument.entries,
|
|
87
|
+
url: v.nullable(v.string()),
|
|
88
|
+
is_active: v.boolean(),
|
|
89
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument))),
|
|
90
|
+
media_platform: v.optional(v.nullable(v.lazy(() => MediaPlatformDocument)))
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/entities/client-project/constants.ts
|
|
94
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE = 10;
|
|
95
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE = 100;
|
|
96
|
+
const CLIENT_PROJECT_STATUS = [
|
|
97
|
+
"coming-soon",
|
|
98
|
+
"now-open",
|
|
99
|
+
"for-sale",
|
|
100
|
+
"sold-out",
|
|
101
|
+
"available"
|
|
102
|
+
];
|
|
103
|
+
const CLIENT_PROJECT_PHASES = [
|
|
104
|
+
{
|
|
105
|
+
label: "Brand",
|
|
106
|
+
value: "brand",
|
|
107
|
+
description: "General/Company branded content"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
label: "Phase 1",
|
|
111
|
+
value: "p1",
|
|
112
|
+
description: "Interest list building"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: "Phase 2",
|
|
116
|
+
value: "p2",
|
|
117
|
+
description: "Pre-qualification, pre-sales"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "Phase 3",
|
|
121
|
+
value: "p3",
|
|
122
|
+
description: "Grand opening, now open, available"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: "Phase 4",
|
|
126
|
+
value: "p4",
|
|
127
|
+
description: "For sale, maintenance period"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: "Phase 5",
|
|
131
|
+
value: "p5",
|
|
132
|
+
description: "Final sale"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: "Closed",
|
|
136
|
+
value: "closed",
|
|
137
|
+
description: "Sold out, no longer available"
|
|
138
|
+
}
|
|
139
|
+
];
|
|
140
|
+
const CLIENT_PROJECT_PHASE_VALUES = [
|
|
141
|
+
"brand",
|
|
142
|
+
"p1",
|
|
143
|
+
"p2",
|
|
144
|
+
"p3",
|
|
145
|
+
"p4",
|
|
146
|
+
"p5",
|
|
147
|
+
"closed"
|
|
148
|
+
];
|
|
149
|
+
const CLIENT_PROJECT_SORT_KEYS = [
|
|
150
|
+
"id",
|
|
151
|
+
"title",
|
|
152
|
+
"slug",
|
|
153
|
+
"is_active",
|
|
154
|
+
"is_hidden",
|
|
155
|
+
"project_phase",
|
|
156
|
+
"project_url",
|
|
157
|
+
"project_type",
|
|
158
|
+
"project_pricing",
|
|
159
|
+
"project_address",
|
|
160
|
+
"phone_number",
|
|
161
|
+
"num_of_models",
|
|
162
|
+
"num_of_units_remain",
|
|
163
|
+
"buyer_profile",
|
|
164
|
+
"social_organic_start_date",
|
|
165
|
+
"paid_media_start_date",
|
|
166
|
+
"go_date",
|
|
167
|
+
"createdAt",
|
|
168
|
+
"updatedAt"
|
|
169
|
+
];
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/entities/client-project/fields.ts
|
|
172
|
+
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)));
|
|
173
|
+
const ClientProjectStatus = v.picklist(CLIENT_PROJECT_STATUS);
|
|
174
|
+
const ClientProjectPhase = v.picklist(CLIENT_PROJECT_PHASE_VALUES);
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/entities/client-project/document.ts
|
|
177
|
+
const ClientProjectDocument = v.object({
|
|
178
|
+
...BaseDocument.entries,
|
|
179
|
+
title: v.string(),
|
|
180
|
+
slug: v.string(),
|
|
181
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
182
|
+
is_active: v.boolean(),
|
|
183
|
+
is_hidden: v.boolean(),
|
|
184
|
+
project_status: v.array(ClientProjectStatus),
|
|
185
|
+
project_phase: ClientProjectPhase,
|
|
186
|
+
project_url: v.nullable(v.string()),
|
|
187
|
+
project_type: v.nullable(v.string()),
|
|
188
|
+
project_pricing: v.nullable(v.string()),
|
|
189
|
+
project_address: v.nullable(v.string()),
|
|
190
|
+
phone_number: v.nullable(v.string()),
|
|
191
|
+
num_of_models: v.nullable(v.number()),
|
|
192
|
+
num_of_units_remain: v.nullable(v.number()),
|
|
193
|
+
buyer_profile: v.nullable(v.string()),
|
|
194
|
+
social_organic_start_date: v.nullable(v.string()),
|
|
195
|
+
paid_media_start_date: v.nullable(v.string()),
|
|
196
|
+
go_date: v.nullable(v.string()),
|
|
197
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument))))
|
|
198
|
+
});
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/entities/client-report/document.ts
|
|
201
|
+
const ClientReportDocument = v.object({
|
|
202
|
+
...BaseDocument.entries,
|
|
203
|
+
title: v.string(),
|
|
204
|
+
report_id: v.string(),
|
|
205
|
+
is_active: v.boolean(),
|
|
206
|
+
is_external: v.boolean(),
|
|
207
|
+
is_hidden: v.boolean(),
|
|
208
|
+
scopes: v.array(v.string()),
|
|
209
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument))))
|
|
210
|
+
});
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/entities/client-styleguide/document.ts
|
|
213
|
+
const ClientStyleguideDocument = v.object({
|
|
214
|
+
...BaseDocument.entries,
|
|
215
|
+
title: v.string(),
|
|
216
|
+
is_active: v.boolean(),
|
|
217
|
+
introduction: v.array(RichTextBlock),
|
|
218
|
+
voice: v.array(RichTextBlock),
|
|
219
|
+
communication: v.array(RichTextBlock),
|
|
220
|
+
brand_elements: v.array(RichTextBlock),
|
|
221
|
+
brand_intention: v.array(RichTextBlock),
|
|
222
|
+
mood: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
223
|
+
logos: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
224
|
+
brand_colors: v.optional(v.array(ComponentBrandStyleguideColor)),
|
|
225
|
+
brand_fonts: v.optional(v.array(ComponentBrandStyleguideFont)),
|
|
226
|
+
brand_application: v.optional(v.array(v.lazy(() => MediaUploadDocument))),
|
|
227
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument)))
|
|
228
|
+
});
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/entities/up-user/constants.ts
|
|
231
|
+
const LIMIT_USER_PAGINATION_DEFAULT_SIZE = 10;
|
|
232
|
+
const LIMIT_USER_PAGINATION_MAX_SIZE = 10;
|
|
233
|
+
const USER_SORT_KEYS = [
|
|
234
|
+
"id",
|
|
235
|
+
"username",
|
|
236
|
+
"email",
|
|
237
|
+
"confirmed",
|
|
238
|
+
"blocked",
|
|
239
|
+
"createdAt",
|
|
240
|
+
"updatedAt"
|
|
241
|
+
];
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/entities/up-permission/document.ts
|
|
244
|
+
const PermissionDocument = v.object({
|
|
245
|
+
...BaseDocument.entries,
|
|
246
|
+
action: v.string(),
|
|
247
|
+
role: v.optional(v.nullable(v.lazy(() => RoleDocument)))
|
|
248
|
+
});
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/entities/up-role/constants.ts
|
|
251
|
+
const ROLE_TYPES = [
|
|
252
|
+
"authenticated",
|
|
253
|
+
"public",
|
|
254
|
+
"employee",
|
|
255
|
+
"manager",
|
|
256
|
+
"client"
|
|
257
|
+
];
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/entities/up-role/fields.ts
|
|
260
|
+
const RoleType = v.picklist(ROLE_TYPES);
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/entities/up-role/document.ts
|
|
263
|
+
const RoleDocument = v.object({
|
|
264
|
+
...BaseDocument.entries,
|
|
265
|
+
type: RoleType,
|
|
266
|
+
name: v.string(),
|
|
267
|
+
description: v.nullable(v.string()),
|
|
268
|
+
permissions: v.optional(v.nullable(v.array(v.lazy(() => PermissionDocument)))),
|
|
269
|
+
users: v.optional(v.nullable(v.array(v.lazy(() => UserDocument))))
|
|
270
|
+
});
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/entities/user-account/document.ts
|
|
273
|
+
const UserAccountDocument = v.object({
|
|
274
|
+
...BaseDocument.entries,
|
|
275
|
+
preferred_name: v.nullable(v.string()),
|
|
276
|
+
first_name: v.string(),
|
|
277
|
+
last_name: v.string(),
|
|
278
|
+
user: v.optional(v.lazy(() => UserDocument))
|
|
279
|
+
});
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/entities/utm-tracking-link/document.ts
|
|
282
|
+
const UtmTrackingLinkDocument = v.object({
|
|
283
|
+
...BaseDocument.entries,
|
|
284
|
+
url_destination: v.string(),
|
|
285
|
+
utm_medium: v.string(),
|
|
286
|
+
utm_source: v.string(),
|
|
287
|
+
utm_campaign: v.string(),
|
|
288
|
+
utm_content: v.nullable(v.string()),
|
|
289
|
+
utm_creative_format: v.nullable(v.string()),
|
|
290
|
+
utm_id: v.nullable(v.string()),
|
|
291
|
+
campaign_phase: v.string(),
|
|
292
|
+
campaign_product: v.nullable(v.string()),
|
|
293
|
+
campaign_targeting: v.nullable(v.string()),
|
|
294
|
+
campaign_key: v.nullable(v.string()),
|
|
295
|
+
creative_format: v.nullable(v.string()),
|
|
296
|
+
creative_format_variants: v.nullable(v.string()),
|
|
297
|
+
url: v.string(),
|
|
298
|
+
is_active: v.boolean(),
|
|
299
|
+
notes: v.nullable(v.string()),
|
|
300
|
+
creator: v.optional(v.nullable(v.lazy(() => UserDocument))),
|
|
301
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument)))
|
|
302
|
+
});
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region src/entities/up-user/document.ts
|
|
305
|
+
const UserDocument = v.object({
|
|
306
|
+
...BaseDocument.entries,
|
|
307
|
+
username: v.string(),
|
|
308
|
+
email: v.string(),
|
|
309
|
+
provider: v.string(),
|
|
310
|
+
confirmed: v.boolean(),
|
|
311
|
+
blocked: v.boolean(),
|
|
312
|
+
clerk_user_id: v.nullable(v.string()),
|
|
313
|
+
role: v.optional(v.nullable(v.lazy(() => RoleDocument))),
|
|
314
|
+
account: v.optional(v.nullable(v.lazy(() => UserAccountDocument))),
|
|
315
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientUserDocument)))),
|
|
316
|
+
utm_tracking_links: v.optional(v.nullable(v.array(v.lazy(() => UtmTrackingLinkDocument))))
|
|
317
|
+
});
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region src/entities/up-user/fields.ts
|
|
320
|
+
const QuerySortUsers = v.optional(v.pipe(v.array(v.picklist(USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(USER_SORT_KEYS.length)));
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region src/entities/up-user/mutation.ts
|
|
323
|
+
const CreateUserDocument = v.object({
|
|
324
|
+
username: VStringMinMaxRegex(3, 255, REGEX_UTM_VALUE, "username must be alphanumeric"),
|
|
325
|
+
email: VStringEmail(),
|
|
326
|
+
password: VStringMinMax(8, 255),
|
|
327
|
+
blocked: v.boolean(),
|
|
328
|
+
confirmed: v.boolean(),
|
|
329
|
+
role: v.number()
|
|
330
|
+
});
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/entities/up-user/query.ts
|
|
333
|
+
const QueryStrapiUsers = v.object({
|
|
334
|
+
page: VPage(),
|
|
335
|
+
size: VSize(10),
|
|
336
|
+
sort: QuerySortUsers
|
|
337
|
+
});
|
|
338
|
+
const QueryStrapiUsersByIdentifier = v.object({
|
|
339
|
+
identifier: VStringShort(0),
|
|
340
|
+
page: VPage(),
|
|
341
|
+
size: VSize(10)
|
|
342
|
+
});
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region src/entities/client-user/constants.ts
|
|
345
|
+
const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
|
|
346
|
+
const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
|
|
347
|
+
const CLIENT_USER_SORT_KEYS = [
|
|
348
|
+
"id",
|
|
349
|
+
"client.title",
|
|
350
|
+
"client.teamwork_id",
|
|
351
|
+
"client.teamwork_name",
|
|
352
|
+
"client.is_active",
|
|
353
|
+
"client.allow_create_utm_link",
|
|
354
|
+
"client.is_paid_media",
|
|
355
|
+
"client.is_organic_social",
|
|
356
|
+
"user.username",
|
|
357
|
+
"user.email",
|
|
358
|
+
"user.confirmed",
|
|
359
|
+
"user.blocked",
|
|
360
|
+
"createdAt",
|
|
361
|
+
"updatedAt"
|
|
362
|
+
];
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/entities/client-user/fields.ts
|
|
365
|
+
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)));
|
|
366
|
+
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."));
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region src/entities/client-user/document.ts
|
|
369
|
+
const ClientUserDocument = v.object({
|
|
370
|
+
...BaseDocument.entries,
|
|
371
|
+
scopes: v.array(ClientUserScope),
|
|
372
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument))),
|
|
373
|
+
user: v.optional(v.nullable(v.lazy(() => UserDocument)))
|
|
374
|
+
});
|
|
375
|
+
const ClientUserDocumentStatus = v.object({
|
|
376
|
+
verified: v.boolean(),
|
|
377
|
+
clientUser: v.nullable(v.lazy(() => ClientUserDocument)),
|
|
378
|
+
scopes: ClientUserScope
|
|
379
|
+
});
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/entities/gcflytour-snap/document.ts
|
|
382
|
+
const GCFlyTourSnapDocument = v.object({
|
|
383
|
+
...BaseDocument.entries,
|
|
384
|
+
title: v.string(),
|
|
385
|
+
slug: v.string(),
|
|
386
|
+
description: v.nullable(v.string()),
|
|
387
|
+
is_active: v.boolean(),
|
|
388
|
+
is_hidden: v.boolean(),
|
|
389
|
+
gcflytour: v.optional(v.nullable(v.lazy(() => GCFlyTourDocument)))
|
|
390
|
+
});
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region src/entities/gcflytour/document.ts
|
|
393
|
+
const GCFlyTourDocument = v.object({
|
|
394
|
+
...BaseDocument.entries,
|
|
395
|
+
title: v.string(),
|
|
396
|
+
slug: v.string(),
|
|
397
|
+
description: v.nullable(v.string()),
|
|
398
|
+
is_active: v.boolean(),
|
|
399
|
+
is_hidden: v.boolean(),
|
|
400
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument)))),
|
|
401
|
+
gcflytour_snaps: v.optional(v.nullable(v.array(v.lazy(() => GCFlyTourSnapDocument))))
|
|
402
|
+
});
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region src/entities/monday-workspace/document.ts
|
|
405
|
+
const MondayWorkspaceDocument = v.object({
|
|
406
|
+
...BaseDocument.entries,
|
|
407
|
+
title: v.string(),
|
|
408
|
+
workspace_id: v.string(),
|
|
409
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument))))
|
|
410
|
+
});
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/entities/product-highlight/document.ts
|
|
413
|
+
const ProductHighlightDocument = v.object({
|
|
414
|
+
...BaseDocument.entries,
|
|
415
|
+
title: v.string(),
|
|
416
|
+
title_line_1: v.string(),
|
|
417
|
+
title_line_2: v.string(),
|
|
418
|
+
introduction: v.string(),
|
|
419
|
+
highlight: v.optional(BlockFullscreenContent),
|
|
420
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
421
|
+
background_color: v.string(),
|
|
422
|
+
order: v.number(),
|
|
423
|
+
text_invert: v.boolean(),
|
|
424
|
+
products: v.optional(v.nullable(v.array(v.lazy(() => ProductDocument)))),
|
|
425
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientDocument)))),
|
|
426
|
+
tags: v.optional(v.nullable(v.array(v.lazy(() => TagDocument))))
|
|
427
|
+
});
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/entities/client/document.ts
|
|
430
|
+
const ClientDocument = v.object({
|
|
431
|
+
...BaseDocument.entries,
|
|
432
|
+
title: v.string(),
|
|
433
|
+
is_featured: v.boolean(),
|
|
434
|
+
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
435
|
+
teamwork_id: v.string(),
|
|
436
|
+
teamwork_name: v.string(),
|
|
437
|
+
gainapp_id: v.nullable(v.string()),
|
|
438
|
+
utm_sheet_id: v.string(),
|
|
439
|
+
allow_create_utm_link: v.boolean(),
|
|
440
|
+
is_organic_social: v.boolean(),
|
|
441
|
+
is_paid_media: v.boolean(),
|
|
442
|
+
is_active: v.boolean(),
|
|
443
|
+
is_hidden: v.boolean(),
|
|
444
|
+
classification: v.array(UtmClassificationKey),
|
|
445
|
+
users: v.optional(v.nullable(v.array(v.lazy(() => ClientUserDocument)))),
|
|
446
|
+
product_highlights: v.optional(v.nullable(v.array(v.lazy(() => ProductHighlightDocument)))),
|
|
447
|
+
client_projects: v.optional(v.nullable(v.array(v.lazy(() => ClientProjectDocument)))),
|
|
448
|
+
client_reports: v.optional(v.nullable(v.array(v.lazy(() => ClientReportDocument)))),
|
|
449
|
+
monday_workspaces: v.optional(v.nullable(v.array(v.lazy(() => MondayWorkspaceDocument)))),
|
|
450
|
+
utm_tracking_links: v.optional(v.nullable(v.array(v.lazy(() => UtmTrackingLinkDocument)))),
|
|
451
|
+
styleguides: v.optional(v.nullable(v.array(v.lazy(() => ClientStyleguideDocument)))),
|
|
452
|
+
media_platforms: v.optional(v.nullable(v.array(v.lazy(() => ClientMediaPlatformDocument)))),
|
|
453
|
+
content_pillars: v.optional(v.nullable(v.array(v.lazy(() => ClientContentPillarDocument)))),
|
|
454
|
+
gcflytours: v.optional(v.nullable(v.array(v.lazy(() => GCFlyTourDocument))))
|
|
455
|
+
});
|
|
456
|
+
//#endregion
|
|
457
|
+
export { ClientProjectPhase as A, MediaPlatformDocument as B, PermissionDocument as C, ClientStyleguideDocument as D, USER_SORT_KEYS as E, CLIENT_PROJECT_SORT_KEYS as F, ContentPillarDocument as G, MediaContentTypeDocument as H, CLIENT_PROJECT_STATUS as I, LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE as L, QuerySortClientProjects as M, CLIENT_PROJECT_PHASES as N, ClientReportDocument as O, CLIENT_PROJECT_PHASE_VALUES as P, LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE as R, ROLE_TYPES as S, LIMIT_USER_PAGINATION_MAX_SIZE as T, MediaCreativeFormatDocument as U, MediaMediumDocument as V, ClientContentPillarDocument as W, UserDocument as _, GCFlyTourSnapDocument as a, RoleDocument as b, ClientUserScope as c, LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT as d, LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT as f, QuerySortUsers as g, CreateUserDocument as h, GCFlyTourDocument as i, ClientProjectStatus as j, ClientProjectDocument as k, QuerySortClientUsers as l, QueryStrapiUsersByIdentifier as m, ProductHighlightDocument as n, ClientUserDocument as o, QueryStrapiUsers as p, MondayWorkspaceDocument as r, ClientUserDocumentStatus as s, ClientDocument as t, CLIENT_USER_SORT_KEYS as u, UtmTrackingLinkDocument as v, LIMIT_USER_PAGINATION_DEFAULT_SIZE as w, RoleType as x, UserAccountDocument as y, ClientMediaPlatformDocument as z };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
|
|
3
|
-
//#region src/entities/
|
|
4
|
-
declare const
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
3
|
+
//#region src/entities/tag/document.d.ts
|
|
4
|
+
declare const TagDocument: v.ObjectSchema<{
|
|
5
|
+
readonly label: v.StringSchema<undefined>;
|
|
6
|
+
readonly slug: v.StringSchema<undefined>;
|
|
7
7
|
readonly id: v.NumberSchema<undefined>;
|
|
8
8
|
readonly documentId: v.StringSchema<undefined>;
|
|
9
9
|
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
10
10
|
readonly createdAt: v.StringSchema<undefined>;
|
|
11
11
|
readonly updatedAt: v.StringSchema<undefined>;
|
|
12
12
|
}, undefined>;
|
|
13
|
-
type
|
|
13
|
+
type TagDocument = v.InferOutput<typeof TagDocument>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export {
|
|
15
|
+
export { TagDocument as t };
|
|
@@ -3,7 +3,7 @@ const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
|
3
3
|
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
4
|
const require_json = require("../../json-BgewUW_1.cjs");
|
|
5
5
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
-
const
|
|
6
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/audit-log/constants.ts
|
|
@@ -83,7 +83,7 @@ const UpdateAuditLogDocument = valibot.object({
|
|
|
83
83
|
after: valibot.optional(valibot.nullable(require_json.JsonSchema))
|
|
84
84
|
});
|
|
85
85
|
const UpdateAuditLogDocumentRequest = valibot.object({
|
|
86
|
-
documentId:
|
|
86
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
87
87
|
data: UpdateAuditLogDocument
|
|
88
88
|
});
|
|
89
89
|
//#endregion
|
|
@@ -35,7 +35,7 @@ declare const AuditLogDocument: v.ObjectSchema<{
|
|
|
35
35
|
type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/entities/audit-log/fields.d.ts
|
|
38
|
-
declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "
|
|
38
|
+
declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], 18, undefined>]>, undefined>;
|
|
39
39
|
type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
|
|
40
40
|
declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
41
41
|
type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
|
|
@@ -127,7 +127,7 @@ declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
|
|
|
127
127
|
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
128
128
|
readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
129
|
readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
130
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "
|
|
130
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], 18, undefined>]>, undefined>;
|
|
131
131
|
}, undefined>;
|
|
132
132
|
type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
|
|
133
133
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as JsonData } from "../../json-
|
|
1
|
+
import { t as JsonData } from "../../json-CiA5ZRzc.mjs";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/audit-log/constants.d.ts
|
|
@@ -35,7 +35,7 @@ declare const AuditLogDocument: v.ObjectSchema<{
|
|
|
35
35
|
type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/entities/audit-log/fields.d.ts
|
|
38
|
-
declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "
|
|
38
|
+
declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], 18, undefined>]>, undefined>;
|
|
39
39
|
type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
|
|
40
40
|
declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
41
41
|
type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
|
|
@@ -127,7 +127,7 @@ declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
|
|
|
127
127
|
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
128
128
|
readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
129
|
readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
130
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "
|
|
130
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], 18, undefined>]>, undefined>;
|
|
131
131
|
}, undefined>;
|
|
132
132
|
type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
|
|
133
133
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
2
|
import { t as JsonSchema } from "../../json-CTduX6Ak.mjs";
|
|
3
3
|
import { i as VSize, l as VStringMax, o as VStringEmail, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
-
import { a as SAssociateOneEntity } from "../../
|
|
4
|
+
import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/audit-log/constants.ts
|
|
7
7
|
const LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE = 20;
|
|
@@ -2,10 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
4
4
|
const require_strapi = require("../../strapi-C7POOPEf.cjs");
|
|
5
|
-
const require_document = require("../../document-
|
|
6
|
-
const require_document$1 = require("../../document-mxwQ5HxZ.cjs");
|
|
7
|
-
const require_document$2 = require("../../document-D067FSuD.cjs");
|
|
8
|
-
const require_document$3 = require("../../document-DgG9DIT2.cjs");
|
|
5
|
+
const require_document = require("../../document-CrnqUGRk.cjs");
|
|
9
6
|
let valibot = require("valibot");
|
|
10
7
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
11
8
|
//#region src/entities/blog-post/query.ts
|
|
@@ -24,20 +21,10 @@ const QueryStrapiSearchBlogPostsBySlug = valibot.object({
|
|
|
24
21
|
sort: require_document.QuerySortBlogPosts
|
|
25
22
|
});
|
|
26
23
|
//#endregion
|
|
27
|
-
//#region src/entities/blog-post/relations.ts
|
|
28
|
-
const BlogPostDocumentWithRelations = valibot.object({
|
|
29
|
-
...require_document.BlogPostDocument.entries,
|
|
30
|
-
category: valibot.optional(valibot.nullable(valibot.lazy(() => require_document$1.CategoryDocument))),
|
|
31
|
-
tags: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => require_document$2.TagDocument)))),
|
|
32
|
-
authors: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => require_document$3.TeamMemberDocument)))),
|
|
33
|
-
related_posts: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => require_document.BlogPostDocument))))
|
|
34
|
-
});
|
|
35
|
-
//#endregion
|
|
36
24
|
exports.BLOG_POST_LAYOUT = require_document.BLOG_POST_LAYOUT;
|
|
37
25
|
exports.BLOG_POST_SORT_KEYS = require_document.BLOG_POST_SORT_KEYS;
|
|
38
26
|
exports.BlogPostBlock = require_document.BlogPostBlock;
|
|
39
27
|
exports.BlogPostDocument = require_document.BlogPostDocument;
|
|
40
|
-
exports.BlogPostDocumentWithRelations = BlogPostDocumentWithRelations;
|
|
41
28
|
exports.BlogPostLayout = require_document.BlogPostLayout;
|
|
42
29
|
exports.LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE = require_document.LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE;
|
|
43
30
|
exports.LIMIT_BLOG_POST_PAGINATION_MAX_SIZE = require_document.LIMIT_BLOG_POST_PAGINATION_MAX_SIZE;
|