@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,140 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/base/media-upload.d.ts
|
|
4
|
+
declare const MediaFormat: v.ObjectSchema<{
|
|
5
|
+
readonly ext: v.StringSchema<undefined>;
|
|
6
|
+
readonly url: v.StringSchema<undefined>;
|
|
7
|
+
readonly hash: v.StringSchema<undefined>;
|
|
8
|
+
readonly mime: v.StringSchema<undefined>;
|
|
9
|
+
readonly name: v.StringSchema<undefined>;
|
|
10
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly size: v.NumberSchema<undefined>;
|
|
12
|
+
readonly width: v.NumberSchema<undefined>;
|
|
13
|
+
readonly height: v.NumberSchema<undefined>;
|
|
14
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
type MediaFormat = v.InferOutput<typeof MediaFormat>;
|
|
17
|
+
declare const MediaFormats: v.ObjectSchema<{
|
|
18
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
19
|
+
readonly ext: v.StringSchema<undefined>;
|
|
20
|
+
readonly url: v.StringSchema<undefined>;
|
|
21
|
+
readonly hash: v.StringSchema<undefined>;
|
|
22
|
+
readonly mime: v.StringSchema<undefined>;
|
|
23
|
+
readonly name: v.StringSchema<undefined>;
|
|
24
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly size: v.NumberSchema<undefined>;
|
|
26
|
+
readonly width: v.NumberSchema<undefined>;
|
|
27
|
+
readonly height: v.NumberSchema<undefined>;
|
|
28
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
29
|
+
}, undefined>, undefined>;
|
|
30
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
31
|
+
readonly ext: v.StringSchema<undefined>;
|
|
32
|
+
readonly url: v.StringSchema<undefined>;
|
|
33
|
+
readonly hash: v.StringSchema<undefined>;
|
|
34
|
+
readonly mime: v.StringSchema<undefined>;
|
|
35
|
+
readonly name: v.StringSchema<undefined>;
|
|
36
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly size: v.NumberSchema<undefined>;
|
|
38
|
+
readonly width: v.NumberSchema<undefined>;
|
|
39
|
+
readonly height: v.NumberSchema<undefined>;
|
|
40
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
41
|
+
}, undefined>, undefined>;
|
|
42
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
43
|
+
readonly ext: v.StringSchema<undefined>;
|
|
44
|
+
readonly url: v.StringSchema<undefined>;
|
|
45
|
+
readonly hash: v.StringSchema<undefined>;
|
|
46
|
+
readonly mime: v.StringSchema<undefined>;
|
|
47
|
+
readonly name: v.StringSchema<undefined>;
|
|
48
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly size: v.NumberSchema<undefined>;
|
|
50
|
+
readonly width: v.NumberSchema<undefined>;
|
|
51
|
+
readonly height: v.NumberSchema<undefined>;
|
|
52
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
53
|
+
}, undefined>, undefined>;
|
|
54
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
55
|
+
readonly ext: v.StringSchema<undefined>;
|
|
56
|
+
readonly url: v.StringSchema<undefined>;
|
|
57
|
+
readonly hash: v.StringSchema<undefined>;
|
|
58
|
+
readonly mime: v.StringSchema<undefined>;
|
|
59
|
+
readonly name: v.StringSchema<undefined>;
|
|
60
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly size: v.NumberSchema<undefined>;
|
|
62
|
+
readonly width: v.NumberSchema<undefined>;
|
|
63
|
+
readonly height: v.NumberSchema<undefined>;
|
|
64
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
65
|
+
}, undefined>, undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
type MediaFormats = v.InferOutput<typeof MediaFormats>;
|
|
68
|
+
declare const MediaUploadDocument: v.ObjectSchema<{
|
|
69
|
+
readonly name: v.StringSchema<undefined>;
|
|
70
|
+
readonly alternativeText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly caption: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
72
|
+
readonly width: v.NumberSchema<undefined>;
|
|
73
|
+
readonly height: v.NumberSchema<undefined>;
|
|
74
|
+
readonly formats: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
75
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
76
|
+
readonly ext: v.StringSchema<undefined>;
|
|
77
|
+
readonly url: v.StringSchema<undefined>;
|
|
78
|
+
readonly hash: v.StringSchema<undefined>;
|
|
79
|
+
readonly mime: v.StringSchema<undefined>;
|
|
80
|
+
readonly name: v.StringSchema<undefined>;
|
|
81
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly size: v.NumberSchema<undefined>;
|
|
83
|
+
readonly width: v.NumberSchema<undefined>;
|
|
84
|
+
readonly height: v.NumberSchema<undefined>;
|
|
85
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
86
|
+
}, undefined>, undefined>;
|
|
87
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
88
|
+
readonly ext: v.StringSchema<undefined>;
|
|
89
|
+
readonly url: v.StringSchema<undefined>;
|
|
90
|
+
readonly hash: v.StringSchema<undefined>;
|
|
91
|
+
readonly mime: v.StringSchema<undefined>;
|
|
92
|
+
readonly name: v.StringSchema<undefined>;
|
|
93
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly size: v.NumberSchema<undefined>;
|
|
95
|
+
readonly width: v.NumberSchema<undefined>;
|
|
96
|
+
readonly height: v.NumberSchema<undefined>;
|
|
97
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
98
|
+
}, undefined>, undefined>;
|
|
99
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
100
|
+
readonly ext: v.StringSchema<undefined>;
|
|
101
|
+
readonly url: v.StringSchema<undefined>;
|
|
102
|
+
readonly hash: v.StringSchema<undefined>;
|
|
103
|
+
readonly mime: v.StringSchema<undefined>;
|
|
104
|
+
readonly name: v.StringSchema<undefined>;
|
|
105
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly size: v.NumberSchema<undefined>;
|
|
107
|
+
readonly width: v.NumberSchema<undefined>;
|
|
108
|
+
readonly height: v.NumberSchema<undefined>;
|
|
109
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
110
|
+
}, undefined>, undefined>;
|
|
111
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
112
|
+
readonly ext: v.StringSchema<undefined>;
|
|
113
|
+
readonly url: v.StringSchema<undefined>;
|
|
114
|
+
readonly hash: v.StringSchema<undefined>;
|
|
115
|
+
readonly mime: v.StringSchema<undefined>;
|
|
116
|
+
readonly name: v.StringSchema<undefined>;
|
|
117
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly size: v.NumberSchema<undefined>;
|
|
119
|
+
readonly width: v.NumberSchema<undefined>;
|
|
120
|
+
readonly height: v.NumberSchema<undefined>;
|
|
121
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
122
|
+
}, undefined>, undefined>;
|
|
123
|
+
}, undefined>, undefined>, undefined>;
|
|
124
|
+
readonly hash: v.StringSchema<undefined>;
|
|
125
|
+
readonly ext: v.StringSchema<undefined>;
|
|
126
|
+
readonly mime: v.StringSchema<undefined>;
|
|
127
|
+
readonly size: v.NumberSchema<undefined>;
|
|
128
|
+
readonly url: v.StringSchema<undefined>;
|
|
129
|
+
readonly previewUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly provider: v.StringSchema<undefined>;
|
|
131
|
+
readonly provider_metadata: v.NullSchema<undefined>;
|
|
132
|
+
readonly id: v.NumberSchema<undefined>;
|
|
133
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
134
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
135
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
136
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
type MediaUploadDocument = v.InferOutput<typeof MediaUploadDocument>;
|
|
139
|
+
//#endregion
|
|
140
|
+
export { MediaFormats as n, MediaUploadDocument as r, MediaFormat as t };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/base/media-upload.d.ts
|
|
4
|
+
declare const MediaFormat: v.ObjectSchema<{
|
|
5
|
+
readonly ext: v.StringSchema<undefined>;
|
|
6
|
+
readonly url: v.StringSchema<undefined>;
|
|
7
|
+
readonly hash: v.StringSchema<undefined>;
|
|
8
|
+
readonly mime: v.StringSchema<undefined>;
|
|
9
|
+
readonly name: v.StringSchema<undefined>;
|
|
10
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly size: v.NumberSchema<undefined>;
|
|
12
|
+
readonly width: v.NumberSchema<undefined>;
|
|
13
|
+
readonly height: v.NumberSchema<undefined>;
|
|
14
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
type MediaFormat = v.InferOutput<typeof MediaFormat>;
|
|
17
|
+
declare const MediaFormats: v.ObjectSchema<{
|
|
18
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
19
|
+
readonly ext: v.StringSchema<undefined>;
|
|
20
|
+
readonly url: v.StringSchema<undefined>;
|
|
21
|
+
readonly hash: v.StringSchema<undefined>;
|
|
22
|
+
readonly mime: v.StringSchema<undefined>;
|
|
23
|
+
readonly name: v.StringSchema<undefined>;
|
|
24
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly size: v.NumberSchema<undefined>;
|
|
26
|
+
readonly width: v.NumberSchema<undefined>;
|
|
27
|
+
readonly height: v.NumberSchema<undefined>;
|
|
28
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
29
|
+
}, undefined>, undefined>;
|
|
30
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
31
|
+
readonly ext: v.StringSchema<undefined>;
|
|
32
|
+
readonly url: v.StringSchema<undefined>;
|
|
33
|
+
readonly hash: v.StringSchema<undefined>;
|
|
34
|
+
readonly mime: v.StringSchema<undefined>;
|
|
35
|
+
readonly name: v.StringSchema<undefined>;
|
|
36
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly size: v.NumberSchema<undefined>;
|
|
38
|
+
readonly width: v.NumberSchema<undefined>;
|
|
39
|
+
readonly height: v.NumberSchema<undefined>;
|
|
40
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
41
|
+
}, undefined>, undefined>;
|
|
42
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
43
|
+
readonly ext: v.StringSchema<undefined>;
|
|
44
|
+
readonly url: v.StringSchema<undefined>;
|
|
45
|
+
readonly hash: v.StringSchema<undefined>;
|
|
46
|
+
readonly mime: v.StringSchema<undefined>;
|
|
47
|
+
readonly name: v.StringSchema<undefined>;
|
|
48
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly size: v.NumberSchema<undefined>;
|
|
50
|
+
readonly width: v.NumberSchema<undefined>;
|
|
51
|
+
readonly height: v.NumberSchema<undefined>;
|
|
52
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
53
|
+
}, undefined>, undefined>;
|
|
54
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
55
|
+
readonly ext: v.StringSchema<undefined>;
|
|
56
|
+
readonly url: v.StringSchema<undefined>;
|
|
57
|
+
readonly hash: v.StringSchema<undefined>;
|
|
58
|
+
readonly mime: v.StringSchema<undefined>;
|
|
59
|
+
readonly name: v.StringSchema<undefined>;
|
|
60
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly size: v.NumberSchema<undefined>;
|
|
62
|
+
readonly width: v.NumberSchema<undefined>;
|
|
63
|
+
readonly height: v.NumberSchema<undefined>;
|
|
64
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
65
|
+
}, undefined>, undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
type MediaFormats = v.InferOutput<typeof MediaFormats>;
|
|
68
|
+
declare const MediaUploadDocument: v.ObjectSchema<{
|
|
69
|
+
readonly name: v.StringSchema<undefined>;
|
|
70
|
+
readonly alternativeText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly caption: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
72
|
+
readonly width: v.NumberSchema<undefined>;
|
|
73
|
+
readonly height: v.NumberSchema<undefined>;
|
|
74
|
+
readonly formats: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
75
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
76
|
+
readonly ext: v.StringSchema<undefined>;
|
|
77
|
+
readonly url: v.StringSchema<undefined>;
|
|
78
|
+
readonly hash: v.StringSchema<undefined>;
|
|
79
|
+
readonly mime: v.StringSchema<undefined>;
|
|
80
|
+
readonly name: v.StringSchema<undefined>;
|
|
81
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly size: v.NumberSchema<undefined>;
|
|
83
|
+
readonly width: v.NumberSchema<undefined>;
|
|
84
|
+
readonly height: v.NumberSchema<undefined>;
|
|
85
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
86
|
+
}, undefined>, undefined>;
|
|
87
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
88
|
+
readonly ext: v.StringSchema<undefined>;
|
|
89
|
+
readonly url: v.StringSchema<undefined>;
|
|
90
|
+
readonly hash: v.StringSchema<undefined>;
|
|
91
|
+
readonly mime: v.StringSchema<undefined>;
|
|
92
|
+
readonly name: v.StringSchema<undefined>;
|
|
93
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly size: v.NumberSchema<undefined>;
|
|
95
|
+
readonly width: v.NumberSchema<undefined>;
|
|
96
|
+
readonly height: v.NumberSchema<undefined>;
|
|
97
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
98
|
+
}, undefined>, undefined>;
|
|
99
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
100
|
+
readonly ext: v.StringSchema<undefined>;
|
|
101
|
+
readonly url: v.StringSchema<undefined>;
|
|
102
|
+
readonly hash: v.StringSchema<undefined>;
|
|
103
|
+
readonly mime: v.StringSchema<undefined>;
|
|
104
|
+
readonly name: v.StringSchema<undefined>;
|
|
105
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly size: v.NumberSchema<undefined>;
|
|
107
|
+
readonly width: v.NumberSchema<undefined>;
|
|
108
|
+
readonly height: v.NumberSchema<undefined>;
|
|
109
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
110
|
+
}, undefined>, undefined>;
|
|
111
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
112
|
+
readonly ext: v.StringSchema<undefined>;
|
|
113
|
+
readonly url: v.StringSchema<undefined>;
|
|
114
|
+
readonly hash: v.StringSchema<undefined>;
|
|
115
|
+
readonly mime: v.StringSchema<undefined>;
|
|
116
|
+
readonly name: v.StringSchema<undefined>;
|
|
117
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly size: v.NumberSchema<undefined>;
|
|
119
|
+
readonly width: v.NumberSchema<undefined>;
|
|
120
|
+
readonly height: v.NumberSchema<undefined>;
|
|
121
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
122
|
+
}, undefined>, undefined>;
|
|
123
|
+
}, undefined>, undefined>, undefined>;
|
|
124
|
+
readonly hash: v.StringSchema<undefined>;
|
|
125
|
+
readonly ext: v.StringSchema<undefined>;
|
|
126
|
+
readonly mime: v.StringSchema<undefined>;
|
|
127
|
+
readonly size: v.NumberSchema<undefined>;
|
|
128
|
+
readonly url: v.StringSchema<undefined>;
|
|
129
|
+
readonly previewUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly provider: v.StringSchema<undefined>;
|
|
131
|
+
readonly provider_metadata: v.NullSchema<undefined>;
|
|
132
|
+
readonly id: v.NumberSchema<undefined>;
|
|
133
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
134
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
135
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
136
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
type MediaUploadDocument = v.InferOutput<typeof MediaUploadDocument>;
|
|
139
|
+
//#endregion
|
|
140
|
+
export { MediaFormats as n, MediaUploadDocument as r, MediaFormat as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sn as ClientEntityScope, _n as CLIENT_ENTITY_KEYS, bn as ClientEntityActions, d as Permissions, f as RolesWithPermissions, p as ROLE_PERMISSIONS, u as LCRUDActions, vn as CLIENT_ENTITY_PERMISSIONS, xn as ClientEntityKey, yn as CLIENT_ENTITY_SCOPES } from "../index-ygBcXT6p.cjs";
|
|
2
2
|
export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, ROLE_PERMISSIONS, RolesWithPermissions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sn as ClientEntityScope, _n as CLIENT_ENTITY_KEYS, bn as ClientEntityActions, d as Permissions, f as RolesWithPermissions, p as ROLE_PERMISSIONS, u as LCRUDActions, vn as CLIENT_ENTITY_PERMISSIONS, xn as ClientEntityKey, yn as CLIENT_ENTITY_SCOPES } from "../index-CAls2gHf.mjs";
|
|
2
2
|
export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, ROLE_PERMISSIONS, RolesWithPermissions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
2
|
const require_pagination = require("./pagination-4pZafglS.cjs");
|
|
3
3
|
const require_validators = require("./validators-Bc9Is5Sr.cjs");
|
|
4
|
-
const
|
|
4
|
+
const require_relationships = require("./relationships-CWVJebkQ.cjs");
|
|
5
5
|
let valibot = require("valibot");
|
|
6
6
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
7
|
//#region src/base/sort.ts
|
|
@@ -19,9 +19,9 @@ const QueryStrapiPaginated = valibot.object({
|
|
|
19
19
|
sort: QuerySortEntities
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region src/base/query.
|
|
22
|
+
//#region src/base/query.ts
|
|
23
23
|
const QueryStrapiById = valibot.object({ id: valibot.number() });
|
|
24
|
-
const QueryStrapiByDocumentId = valibot.object({ documentId:
|
|
24
|
+
const QueryStrapiByDocumentId = valibot.object({ documentId: require_relationships.SAssociateOneEntity });
|
|
25
25
|
const QueryStrapiBySlug = valibot.object({
|
|
26
26
|
slug: require_validators.VStringShort(),
|
|
27
27
|
...QueryStrapiPaginated.entries
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as LIMIT_PAGINATION_MAX_SIZE } from "./pagination-owwfYJS6.mjs";
|
|
2
2
|
import { h as VStringShort, i as VSize, o as VStringEmail, p as VStringPhone, r as VPage } from "./validators-P5E_3qzc.mjs";
|
|
3
|
-
import { a as SAssociateOneEntity } from "./
|
|
3
|
+
import { a as SAssociateOneEntity } from "./relationships-BosK0kyG.mjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/base/sort.ts
|
|
6
6
|
const ENTITY_SORT_KEYS = [
|
|
@@ -17,7 +17,7 @@ const QueryStrapiPaginated = v.object({
|
|
|
17
17
|
sort: QuerySortEntities
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region src/base/query.
|
|
20
|
+
//#region src/base/query.ts
|
|
21
21
|
const QueryStrapiById = v.object({ id: v.number() });
|
|
22
22
|
const QueryStrapiByDocumentId = v.object({ documentId: SAssociateOneEntity });
|
|
23
23
|
const QueryStrapiBySlug = v.object({
|
|
@@ -2,7 +2,7 @@ import "./regex-BnKGcdS4.mjs";
|
|
|
2
2
|
import { d as VStringMinMax, h as VStringShort } from "./validators-P5E_3qzc.mjs";
|
|
3
3
|
import { n as ValidStrapiCollectionEntity } from "./strapi-C0DtxJLD.mjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
|
-
//#region src/base/
|
|
5
|
+
//#region src/base/relationships.ts
|
|
6
6
|
const SAssociateOneEntity = VStringMinMax(1, 255);
|
|
7
7
|
const SAssociateManyEntities = v.pipe(v.array(SAssociateOneEntity), v.maxLength(100));
|
|
8
8
|
const SQueryManyEntities = v.pipe(v.array(VStringMinMax(1, 255)));
|
|
@@ -4,7 +4,7 @@ const require_validators = require("./validators-Bc9Is5Sr.cjs");
|
|
|
4
4
|
const require_strapi = require("./strapi-C7POOPEf.cjs");
|
|
5
5
|
let valibot = require("valibot");
|
|
6
6
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
|
-
//#region src/base/
|
|
7
|
+
//#region src/base/relationships.ts
|
|
8
8
|
const SAssociateOneEntity = require_validators.VStringMinMax(1, 255);
|
|
9
9
|
const SAssociateManyEntities = valibot.pipe(valibot.array(SAssociateOneEntity), valibot.maxLength(100));
|
|
10
10
|
const SQueryManyEntities = valibot.pipe(valibot.array(require_validators.VStringMinMax(1, 255)));
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as Permissions, n as ClientUserDocumentStatus } from "../document-CLNQhWUt.cjs";
|
|
4
|
-
import { t as RoleType } from "../fields-ByZAYnAi.cjs";
|
|
1
|
+
import { J as StrapiErrorResponse, K as StrapiAttributeErrorResponse } from "../index-efk0FfOP.cjs";
|
|
2
|
+
import { En as AuthorizedUserDocument, d as Permissions, kn as RoleType, l as ClientUserDocumentStatus } from "../index-ygBcXT6p.cjs";
|
|
5
3
|
import * as v from "valibot";
|
|
6
4
|
|
|
7
5
|
//#region src/utilities/permissions.d.ts
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as Permissions, n as ClientUserDocumentStatus } from "../document-BqfLH_0k.mjs";
|
|
4
|
-
import { t as RoleType } from "../fields-BuP0NSFS.mjs";
|
|
1
|
+
import { J as StrapiErrorResponse, K as StrapiAttributeErrorResponse } from "../index-CJ2_Z1gW.mjs";
|
|
2
|
+
import { En as AuthorizedUserDocument, d as Permissions, kn as RoleType, l as ClientUserDocumentStatus } from "../index-CAls2gHf.mjs";
|
|
5
3
|
import * as v from "valibot";
|
|
6
4
|
|
|
7
5
|
//#region src/utilities/permissions.d.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getcommunity/gc-validators",
|
|
3
3
|
"description": "Schema Validator for GetCommunity web-stack types",
|
|
4
|
-
"version": "0.0.271-alpha.
|
|
4
|
+
"version": "0.0.271-alpha.8",
|
|
5
5
|
"author": "Joey Grable <joey@getcommunity.com> (https://joeygrable.com)",
|
|
6
6
|
"contributors": [],
|
|
7
7
|
"type": "module",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
//#region src/entities/gcflytour-snap/document.ts
|
|
4
|
-
const GCFlyTourSnapDocument = v.object({
|
|
5
|
-
...BaseDocument.entries,
|
|
6
|
-
title: v.string(),
|
|
7
|
-
slug: v.string(),
|
|
8
|
-
description: v.nullable(v.string()),
|
|
9
|
-
is_active: v.boolean(),
|
|
10
|
-
is_hidden: v.boolean()
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { GCFlyTourSnapDocument as t };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import * as v from "valibot";
|
|
2
|
-
|
|
3
|
-
//#region src/entities/client-project/document.d.ts
|
|
4
|
-
declare const ClientProjectDocument: v.ObjectSchema<{
|
|
5
|
-
readonly title: v.StringSchema<undefined>;
|
|
6
|
-
readonly slug: v.StringSchema<undefined>;
|
|
7
|
-
readonly featured_image: v.OptionalSchema<v.NullableSchema<v.LazySchema<v.ObjectSchema<{
|
|
8
|
-
readonly name: v.StringSchema<undefined>;
|
|
9
|
-
readonly alternativeText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly caption: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly width: v.NumberSchema<undefined>;
|
|
12
|
-
readonly height: v.NumberSchema<undefined>;
|
|
13
|
-
readonly formats: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
14
|
-
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
15
|
-
readonly ext: v.StringSchema<undefined>;
|
|
16
|
-
readonly url: v.StringSchema<undefined>;
|
|
17
|
-
readonly hash: v.StringSchema<undefined>;
|
|
18
|
-
readonly mime: v.StringSchema<undefined>;
|
|
19
|
-
readonly name: v.StringSchema<undefined>;
|
|
20
|
-
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
21
|
-
readonly size: v.NumberSchema<undefined>;
|
|
22
|
-
readonly width: v.NumberSchema<undefined>;
|
|
23
|
-
readonly height: v.NumberSchema<undefined>;
|
|
24
|
-
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
25
|
-
}, undefined>, undefined>;
|
|
26
|
-
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
27
|
-
readonly ext: v.StringSchema<undefined>;
|
|
28
|
-
readonly url: v.StringSchema<undefined>;
|
|
29
|
-
readonly hash: v.StringSchema<undefined>;
|
|
30
|
-
readonly mime: v.StringSchema<undefined>;
|
|
31
|
-
readonly name: v.StringSchema<undefined>;
|
|
32
|
-
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
-
readonly size: v.NumberSchema<undefined>;
|
|
34
|
-
readonly width: v.NumberSchema<undefined>;
|
|
35
|
-
readonly height: v.NumberSchema<undefined>;
|
|
36
|
-
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
37
|
-
}, undefined>, undefined>;
|
|
38
|
-
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
39
|
-
readonly ext: v.StringSchema<undefined>;
|
|
40
|
-
readonly url: v.StringSchema<undefined>;
|
|
41
|
-
readonly hash: v.StringSchema<undefined>;
|
|
42
|
-
readonly mime: v.StringSchema<undefined>;
|
|
43
|
-
readonly name: v.StringSchema<undefined>;
|
|
44
|
-
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
-
readonly size: v.NumberSchema<undefined>;
|
|
46
|
-
readonly width: v.NumberSchema<undefined>;
|
|
47
|
-
readonly height: v.NumberSchema<undefined>;
|
|
48
|
-
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
49
|
-
}, undefined>, undefined>;
|
|
50
|
-
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
51
|
-
readonly ext: v.StringSchema<undefined>;
|
|
52
|
-
readonly url: v.StringSchema<undefined>;
|
|
53
|
-
readonly hash: v.StringSchema<undefined>;
|
|
54
|
-
readonly mime: v.StringSchema<undefined>;
|
|
55
|
-
readonly name: v.StringSchema<undefined>;
|
|
56
|
-
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
-
readonly size: v.NumberSchema<undefined>;
|
|
58
|
-
readonly width: v.NumberSchema<undefined>;
|
|
59
|
-
readonly height: v.NumberSchema<undefined>;
|
|
60
|
-
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
61
|
-
}, undefined>, undefined>;
|
|
62
|
-
}, undefined>, undefined>, undefined>;
|
|
63
|
-
readonly hash: v.StringSchema<undefined>;
|
|
64
|
-
readonly ext: v.StringSchema<undefined>;
|
|
65
|
-
readonly mime: v.StringSchema<undefined>;
|
|
66
|
-
readonly size: v.NumberSchema<undefined>;
|
|
67
|
-
readonly url: v.StringSchema<undefined>;
|
|
68
|
-
readonly previewUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
-
readonly provider: v.StringSchema<undefined>;
|
|
70
|
-
readonly provider_metadata: v.NullSchema<undefined>;
|
|
71
|
-
readonly id: v.NumberSchema<undefined>;
|
|
72
|
-
readonly documentId: v.StringSchema<undefined>;
|
|
73
|
-
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
74
|
-
readonly createdAt: v.StringSchema<undefined>;
|
|
75
|
-
readonly updatedAt: v.StringSchema<undefined>;
|
|
76
|
-
}, undefined>>, undefined>, undefined>;
|
|
77
|
-
readonly is_active: v.BooleanSchema<undefined>;
|
|
78
|
-
readonly is_hidden: v.BooleanSchema<undefined>;
|
|
79
|
-
readonly project_status: v.ArraySchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], undefined>, undefined>;
|
|
80
|
-
readonly project_phase: v.PicklistSchema<readonly ["brand", "p1", "p2", "p3", "p4", "p5", "closed"], undefined>;
|
|
81
|
-
readonly project_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
-
readonly project_type: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
-
readonly project_pricing: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
84
|
-
readonly project_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
85
|
-
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
-
readonly num_of_models: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
87
|
-
readonly num_of_units_remain: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
88
|
-
readonly buyer_profile: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
89
|
-
readonly social_organic_start_date: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
90
|
-
readonly paid_media_start_date: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
91
|
-
readonly go_date: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
92
|
-
readonly id: v.NumberSchema<undefined>;
|
|
93
|
-
readonly documentId: v.StringSchema<undefined>;
|
|
94
|
-
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
95
|
-
readonly createdAt: v.StringSchema<undefined>;
|
|
96
|
-
readonly updatedAt: v.StringSchema<undefined>;
|
|
97
|
-
}, undefined>;
|
|
98
|
-
type ClientProjectDocument = v.InferOutput<typeof ClientProjectDocument>;
|
|
99
|
-
//#endregion
|
|
100
|
-
export { ClientProjectDocument as t };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
-
let valibot = require("valibot");
|
|
4
|
-
valibot = require_chunk.__toESM(valibot, 1);
|
|
5
|
-
//#region src/entities/media-medium/document.ts
|
|
6
|
-
const MediaMediumDocument = valibot.object({
|
|
7
|
-
...require_document.BaseDocument.entries,
|
|
8
|
-
title: valibot.string(),
|
|
9
|
-
slug: valibot.string(),
|
|
10
|
-
is_active: valibot.boolean(),
|
|
11
|
-
is_organic_social: valibot.boolean(),
|
|
12
|
-
is_paid_media: valibot.boolean(),
|
|
13
|
-
description: valibot.nullable(valibot.string())
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
Object.defineProperty(exports, "MediaMediumDocument", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function() {
|
|
19
|
-
return MediaMediumDocument;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
-
const require_media_upload = require("./media-upload-B6aQYeRM.cjs");
|
|
4
|
-
const require_components_shared_index = require("./components/shared/index.cjs");
|
|
5
|
-
const require_components_blocks_index = require("./components/blocks/index.cjs");
|
|
6
|
-
const require_components_forms_index = require("./components/forms/index.cjs");
|
|
7
|
-
const require_components_slideshow_index = require("./components/slideshow/index.cjs");
|
|
8
|
-
let valibot = require("valibot");
|
|
9
|
-
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
|
-
//#region src/entities/blog-post/constants.ts
|
|
11
|
-
const LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE = 6;
|
|
12
|
-
const LIMIT_BLOG_POST_PAGINATION_MAX_SIZE = 20;
|
|
13
|
-
const BLOG_POST_SORT_KEYS = [
|
|
14
|
-
"id",
|
|
15
|
-
"title",
|
|
16
|
-
"slug",
|
|
17
|
-
"is_live",
|
|
18
|
-
"is_featured",
|
|
19
|
-
"is_public",
|
|
20
|
-
"published",
|
|
21
|
-
"createdAt",
|
|
22
|
-
"updatedAt"
|
|
23
|
-
];
|
|
24
|
-
const BLOG_POST_LAYOUT = ["main-aside", "center-column"];
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/entities/blog-post/fields.ts
|
|
27
|
-
const QuerySortBlogPosts = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(BLOG_POST_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(BLOG_POST_SORT_KEYS.length)));
|
|
28
|
-
const BlogPostLayout = valibot.picklist(BLOG_POST_LAYOUT);
|
|
29
|
-
const BlogPostBlock = valibot.union([
|
|
30
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockSectionTitle),
|
|
31
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockGraphicImage),
|
|
32
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockPullQuote),
|
|
33
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockVideo),
|
|
34
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockFaq),
|
|
35
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockContact),
|
|
36
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockButtonGroup),
|
|
37
|
-
valibot.lazy(() => require_components_blocks_index.ComponentBlockFullscreenContent),
|
|
38
|
-
valibot.lazy(() => require_components_forms_index.ComponentFormSelect),
|
|
39
|
-
valibot.lazy(() => require_components_slideshow_index.ComponentSlideshow),
|
|
40
|
-
valibot.lazy(() => require_components_shared_index.ComponentSharedRichTextBlock)
|
|
41
|
-
]);
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/entities/blog-post/document.ts
|
|
44
|
-
const BlogPostDocument = valibot.object({
|
|
45
|
-
...require_document.BaseDocument.entries,
|
|
46
|
-
title: valibot.string(),
|
|
47
|
-
slug: valibot.string(),
|
|
48
|
-
excerpt: valibot.string(),
|
|
49
|
-
published: valibot.string(),
|
|
50
|
-
is_live: valibot.boolean(),
|
|
51
|
-
is_featured: valibot.boolean(),
|
|
52
|
-
is_public: valibot.boolean(),
|
|
53
|
-
seo: valibot.optional(valibot.nullable(require_components_shared_index.SeoMeta)),
|
|
54
|
-
layout: valibot.nullable(BlogPostLayout),
|
|
55
|
-
featured_image: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
|
|
56
|
-
blocks: valibot.optional(valibot.array(valibot.lazy(() => BlogPostBlock)))
|
|
57
|
-
});
|
|
58
|
-
//#endregion
|
|
59
|
-
Object.defineProperty(exports, "BLOG_POST_LAYOUT", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function() {
|
|
62
|
-
return BLOG_POST_LAYOUT;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "BLOG_POST_SORT_KEYS", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function() {
|
|
68
|
-
return BLOG_POST_SORT_KEYS;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(exports, "BlogPostBlock", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function() {
|
|
74
|
-
return BlogPostBlock;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "BlogPostDocument", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function() {
|
|
80
|
-
return BlogPostDocument;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(exports, "BlogPostLayout", {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function() {
|
|
86
|
-
return BlogPostLayout;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(exports, "LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function() {
|
|
92
|
-
return LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "LIMIT_BLOG_POST_PAGINATION_MAX_SIZE", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function() {
|
|
98
|
-
return LIMIT_BLOG_POST_PAGINATION_MAX_SIZE;
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(exports, "QuerySortBlogPosts", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function() {
|
|
104
|
-
return QuerySortBlogPosts;
|
|
105
|
-
}
|
|
106
|
-
});
|