@getcommunity/gc-validators 0.0.271-alpha.2 → 0.0.271-alpha.21
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/abac-BeKQtxIF.cjs +648 -0
- package/dist/abac-DPd9oLKR.mjs +643 -0
- package/dist/base/index.cjs +20 -20
- package/dist/base/index.d.cts +3 -4
- package/dist/base/index.d.mts +3 -4
- package/dist/base/index.mjs +3 -3
- 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 +13 -2
- package/dist/components/shared/index.d.cts +1 -916
- package/dist/components/shared/index.d.mts +1 -916
- package/dist/components/shared/index.mjs +13 -2
- 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 +7 -5
- package/dist/components/utm/index.d.cts +2 -32
- package/dist/components/utm/index.d.mts +2 -32
- package/dist/components/utm/index.mjs +7 -5
- package/dist/constants/index.cjs +5 -3
- package/dist/constants/index.d.cts +417 -3
- package/dist/constants/index.d.mts +417 -3
- package/dist/constants/index.mjs +2 -2
- package/dist/document-CAkRm1Y_.d.mts +24 -0
- package/dist/document-CDavjuJ-.mjs +19 -0
- package/dist/{document-Bpr9mbCs.d.mts → document-CbE38CzE.d.mts} +6 -6
- package/dist/document-CwIvc2p7.cjs +26 -0
- package/dist/document-DOVZwQRq.cjs +728 -0
- package/dist/document-DR6GQUE8.cjs +243 -0
- package/dist/document-DaICHS9G.cjs +17 -0
- package/dist/document-TlMeVEGy.d.cts +24 -0
- package/dist/document-c3GNPelp.mjs +10 -0
- package/dist/document-exUYRsta.mjs +128 -0
- package/dist/{document-hEBlSep8.d.cts → document-i-h3Orv7.d.cts} +6 -6
- package/dist/document-kvIqz0p6.mjs +457 -0
- package/dist/entities/audit-log/index.cjs +2 -2
- package/dist/entities/audit-log/index.d.cts +3 -3
- 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.cjs +1 -1
- package/dist/entities/blog-page/index.d.cts +12 -251
- package/dist/entities/blog-page/index.d.mts +12 -251
- package/dist/entities/blog-page/index.mjs +1 -1
- package/dist/entities/blog-post/index.cjs +2 -2
- package/dist/entities/blog-post/index.d.cts +1 -916
- package/dist/entities/blog-post/index.d.mts +1 -916
- package/dist/entities/blog-post/index.mjs +2 -2
- package/dist/entities/careers-page/index.cjs +1 -1
- package/dist/entities/careers-page/index.d.cts +12 -251
- package/dist/entities/careers-page/index.d.mts +12 -251
- package/dist/entities/careers-page/index.mjs +1 -1
- package/dist/entities/category/index.cjs +4 -13
- package/dist/entities/category/index.d.cts +3 -260
- package/dist/entities/category/index.d.mts +3 -260
- package/dist/entities/category/index.mjs +2 -11
- 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 +2 -47
- package/dist/entities/client-user/index.d.mts +2 -47
- package/dist/entities/client-user/index.mjs +5 -41
- 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 -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.cjs +1 -1
- package/dist/entities/faq-page/index.d.cts +13 -329
- package/dist/entities/faq-page/index.d.mts +13 -329
- package/dist/entities/faq-page/index.mjs +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.cjs +2 -2
- package/dist/entities/landing-page/index.d.cts +25 -474
- package/dist/entities/landing-page/index.d.mts +25 -474
- package/dist/entities/landing-page/index.mjs +2 -2
- 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.cjs +2 -2
- package/dist/entities/policy-page/index.d.cts +15 -321
- package/dist/entities/policy-page/index.d.mts +15 -321
- package/dist/entities/policy-page/index.mjs +2 -2
- 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 +8 -3
- package/dist/entities/team-member/index.d.cts +2 -210
- package/dist/entities/team-member/index.d.mts +2 -210
- package/dist/entities/team-member/index.mjs +7 -3
- package/dist/entities/team-page/index.cjs +1 -1
- package/dist/entities/team-page/index.d.cts +12 -251
- package/dist/entities/team-page/index.d.mts +12 -251
- package/dist/entities/team-page/index.mjs +1 -1
- package/dist/entities/teamwork/index.d.cts +5 -6
- package/dist/entities/teamwork/index.d.mts +5 -6
- 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 +9 -63
- 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 -53
- 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 +9 -8
- package/dist/entities/utm-link-builder/index.d.cts +2 -3
- package/dist/entities/utm-link-builder/index.d.mts +2 -3
- package/dist/entities/utm-link-builder/index.mjs +6 -4
- package/dist/entities/utm-meta/index.d.cts +7 -7
- package/dist/entities/utm-meta/index.d.mts +7 -7
- 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-B3VtiObV.d.mts +317 -0
- package/dist/index-B7kzXrHG.d.mts +4746 -0
- package/dist/index-Bo7Y0_IX.d.mts +945 -0
- package/dist/index-BqCOvpbq.d.cts +945 -0
- package/dist/{document-C0c7azOe.d.mts → index-BxEBUjx2.d.mts} +236 -184
- package/dist/index-CQP_vcmO.d.cts +317 -0
- package/dist/index-CRoWUxGV.d.cts +1324 -0
- package/dist/index-CnZGEWjN.d.cts +4746 -0
- package/dist/index-D11tQdCv.d.cts +34 -0
- package/dist/{index-DYPjS1qh.d.mts → index-D3KnOYr7.d.mts} +3 -3
- package/dist/index-DLICmJ_-.d.mts +34 -0
- package/dist/{index-BLE_fX1Q.d.cts → index-D_YPjLxv.d.cts} +3 -3
- package/dist/{index-Bht1Jd5l.d.mts → index-HC5SDR9c.d.mts} +111 -154
- package/dist/{index-ZBDWYTfn.d.cts → index-VMlL6p9e.d.cts} +111 -154
- package/dist/{document-DN3g0EFx.d.cts → index-auU0DaW5.d.cts} +236 -184
- package/dist/index-oCLNrzIj.d.mts +1324 -0
- package/dist/{json-CqAaKeHA.d.mts → json-BrVkpLbC.d.mts} +1 -0
- package/dist/{json-BJ8GyrtC.d.cts → json-Cm6HECXA.d.cts} +1 -0
- package/dist/media-upload-D-nP8FR1.d.cts +140 -0
- package/dist/media-upload-DKeA1eD-.d.mts +140 -0
- package/dist/permissions/index.cjs +3 -663
- package/dist/permissions/index.d.cts +2 -2
- package/dist/permissions/index.d.mts +2 -2
- package/dist/permissions/index.mjs +3 -661
- package/dist/{query.schema-DHTf6rTw.cjs → query-BOZj3jek.cjs} +3 -3
- package/dist/{query.schema-YKoOuBnk.mjs → query-Dpy-S8bA.mjs} +2 -2
- package/dist/{relations-CGu18hfT.cjs → relationships-B0sgMFZA.cjs} +2 -2
- package/dist/{relations-C04F46xL.mjs → relationships-D1Kp-Gfe.mjs} +2 -2
- package/dist/{strapi-C7POOPEf.cjs → strapi-B0f98T3D.cjs} +3 -3
- package/dist/strapi-BZGtE-mE.cjs +455 -0
- package/dist/{strapi-C0DtxJLD.mjs → strapi-CcyhoATG.mjs} +3 -3
- package/dist/strapi-JZZXwngw.mjs +420 -0
- package/dist/utilities/index.cjs +20 -0
- package/dist/utilities/index.d.cts +11 -2
- package/dist/utilities/index.d.mts +11 -2
- package/dist/utilities/index.mjs +19 -1
- package/package.json +1 -1
- package/dist/document-BAzLIprH.d.mts +0 -100
- package/dist/document-BFukanLe.mjs +0 -54
- package/dist/document-BK1ASowb.d.cts +0 -17
- package/dist/document-BMxLOdrT.d.cts +0 -267
- 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-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-D4fJt3zX.d.cts +0 -12223
- 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-DYzRVV1C.d.mts +0 -16
- package/dist/document-D_ZMbzn6.d.cts +0 -18
- package/dist/document-DdRo9TdG.d.mts +0 -12223
- 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-Gx2Vrg_w.d.mts +0 -267
- 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-rbMXLGxt.cjs +0 -103
- 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/query.schema-BOn5Kk_p.d.mts +0 -41
- package/dist/query.schema-CItKlb0x.d.cts +0 -41
- package/dist/response-C-7nyNVD.d.mts +0 -57
- package/dist/response-c6SgLvi9.d.cts +0 -57
- package/dist/strapi-COeswSwJ.mjs +0 -49
- package/dist/strapi-DmhV7ODq.cjs +0 -72
- /package/dist/{constants-L2goO7Eg.mjs → constants-Htf-MeCA.mjs} +0 -0
- /package/dist/{constants-PBZKggHL.cjs → constants-f1GP2eiq.cjs} +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-CDavjuJ-.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 ClientUserScopes = 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: ClientUserScopes,
|
|
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: ClientUserScopes
|
|
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, ClientUserScopes 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 };
|
|
@@ -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-B0sgMFZA.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as JsonData } from "../../json-
|
|
1
|
+
import { t as JsonData } from "../../json-Cm6HECXA.cjs";
|
|
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" | "
|
|
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" | "
|
|
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-BrVkpLbC.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" | "
|
|
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" | "
|
|
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-D1Kp-Gfe.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;
|
|
@@ -7,7 +7,7 @@ valibot = require_chunk.__toESM(valibot, 1);
|
|
|
7
7
|
//#region src/entities/blog-page/document.ts
|
|
8
8
|
const BlogPageDocument = valibot.object({
|
|
9
9
|
...require_document.BaseDocument.entries,
|
|
10
|
-
seo: valibot.nullable(require_components_shared_index.SeoMeta),
|
|
10
|
+
seo: valibot.nullable(valibot.lazy(() => require_components_shared_index.SeoMeta)),
|
|
11
11
|
title: valibot.string(),
|
|
12
12
|
subtitle: valibot.nullable(valibot.string()),
|
|
13
13
|
introduction: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock))
|