@getcommunity/gc-validators 0.0.271-alpha.24 → 0.0.271-alpha.26

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.
Files changed (276) hide show
  1. package/dist/base/index.cjs +9 -27
  2. package/dist/base/index.d.cts +2 -2
  3. package/dist/base/index.d.mts +4 -4
  4. package/dist/base/index.mjs +5 -5
  5. package/dist/components/blocks/index.cjs +5 -4
  6. package/dist/components/blocks/index.d.cts +1 -1
  7. package/dist/components/blocks/index.d.mts +1 -1
  8. package/dist/components/blocks/index.mjs +5 -4
  9. package/dist/components/brand/index.cjs +3 -2
  10. package/dist/components/brand/index.d.cts +1 -1
  11. package/dist/components/brand/index.d.mts +1 -1
  12. package/dist/components/brand/index.mjs +3 -2
  13. package/dist/components/forms/index.cjs +2 -1
  14. package/dist/components/forms/index.d.cts +280 -280
  15. package/dist/components/forms/index.d.mts +280 -280
  16. package/dist/components/forms/index.mjs +2 -1
  17. package/dist/components/shared/index.cjs +5 -4
  18. package/dist/components/shared/index.d.cts +1 -1
  19. package/dist/components/shared/index.d.mts +1 -1
  20. package/dist/components/shared/index.mjs +5 -4
  21. package/dist/components/slideshow/index.d.cts +280 -280
  22. package/dist/components/slideshow/index.d.mts +280 -280
  23. package/dist/components/utm/index.d.mts +1 -1
  24. package/dist/constants/index.cjs +45 -43
  25. package/dist/constants/index.d.cts +2 -2
  26. package/dist/constants/index.d.mts +2 -2
  27. package/dist/constants/index.mjs +4 -2
  28. package/dist/{document-TlMeVEGy.d.cts → document-3h6g5Qqr.d.cts} +1 -1
  29. package/dist/{document-DR6GQUE8.cjs → document-AqtoEbX8.cjs} +18 -23
  30. package/dist/{document-exUYRsta.mjs → document-BCbxKqGE.mjs} +19 -18
  31. package/dist/{document-CvbEUabx.mjs → document-BWso8VC7.mjs} +117 -111
  32. package/dist/{document-CwIvc2p7.cjs → document-DJJFS5o8.cjs} +2 -1
  33. package/dist/{document-CDavjuJ-.mjs → document-DRyRy2Mw.mjs} +2 -1
  34. package/dist/{document-CAkRm1Y_.d.mts → document-DqE9ISOk.d.mts} +2 -2
  35. package/dist/{document-B7c1AF6r.cjs → document-DwkycUz9.cjs} +129 -117
  36. package/dist/email-ByTEdUjg.cjs +13 -0
  37. package/dist/email-Cnyi5Neo.mjs +6 -0
  38. package/dist/entities/audit-log/index.cjs +44 -41
  39. package/dist/entities/audit-log/index.d.cts +3 -2
  40. package/dist/entities/audit-log/index.d.mts +4 -3
  41. package/dist/entities/audit-log/index.mjs +6 -3
  42. package/dist/entities/blog-page/index.d.cts +1 -1
  43. package/dist/entities/blog-page/index.d.mts +1 -1
  44. package/dist/entities/blog-post/index.cjs +10 -9
  45. package/dist/entities/blog-post/index.d.cts +1 -1
  46. package/dist/entities/blog-post/index.d.mts +1 -1
  47. package/dist/entities/blog-post/index.mjs +4 -3
  48. package/dist/entities/careers-page/index.d.cts +1 -1
  49. package/dist/entities/careers-page/index.d.mts +1 -1
  50. package/dist/entities/category/index.cjs +15 -13
  51. package/dist/entities/category/index.d.cts +7 -6
  52. package/dist/entities/category/index.d.mts +7 -6
  53. package/dist/entities/category/index.mjs +11 -9
  54. package/dist/entities/client/index.cjs +23 -22
  55. package/dist/entities/client/index.d.cts +1 -1
  56. package/dist/entities/client/index.d.mts +1 -1
  57. package/dist/entities/client/index.mjs +16 -15
  58. package/dist/entities/client-content-pillar/index.cjs +14 -13
  59. package/dist/entities/client-content-pillar/index.d.cts +1 -1
  60. package/dist/entities/client-content-pillar/index.d.mts +1 -1
  61. package/dist/entities/client-content-pillar/index.mjs +12 -11
  62. package/dist/entities/client-media-platform/index.cjs +18 -16
  63. package/dist/entities/client-media-platform/index.d.cts +1 -1
  64. package/dist/entities/client-media-platform/index.d.mts +1 -1
  65. package/dist/entities/client-media-platform/index.mjs +13 -11
  66. package/dist/entities/client-project/index.cjs +47 -41
  67. package/dist/entities/client-project/index.d.cts +1 -1
  68. package/dist/entities/client-project/index.d.mts +1 -1
  69. package/dist/entities/client-project/index.mjs +11 -5
  70. package/dist/entities/client-report/index.cjs +18 -16
  71. package/dist/entities/client-report/index.d.cts +1 -1
  72. package/dist/entities/client-report/index.d.mts +1 -1
  73. package/dist/entities/client-report/index.mjs +14 -12
  74. package/dist/entities/client-styleguide/index.cjs +14 -13
  75. package/dist/entities/client-styleguide/index.d.cts +1 -1
  76. package/dist/entities/client-styleguide/index.d.mts +1 -1
  77. package/dist/entities/client-styleguide/index.mjs +11 -10
  78. package/dist/entities/client-user/index.cjs +7 -7
  79. package/dist/entities/client-user/index.d.cts +1 -1
  80. package/dist/entities/client-user/index.d.mts +1 -1
  81. package/dist/entities/client-user/index.mjs +5 -5
  82. package/dist/entities/comment/index.cjs +18 -16
  83. package/dist/entities/comment/index.d.cts +1 -1
  84. package/dist/entities/comment/index.d.mts +1 -1
  85. package/dist/entities/comment/index.mjs +12 -10
  86. package/dist/entities/content-pillar/index.cjs +20 -18
  87. package/dist/entities/content-pillar/index.d.cts +1 -1
  88. package/dist/entities/content-pillar/index.d.mts +1 -1
  89. package/dist/entities/content-pillar/index.mjs +15 -13
  90. package/dist/entities/faq-page/index.cjs +2 -1
  91. package/dist/entities/faq-page/index.d.cts +2 -2
  92. package/dist/entities/faq-page/index.d.mts +3 -3
  93. package/dist/entities/faq-page/index.mjs +2 -1
  94. package/dist/entities/formatter/index.d.cts +5 -5
  95. package/dist/entities/formatter/index.d.mts +5 -5
  96. package/dist/entities/gcflytour/index.cjs +21 -19
  97. package/dist/entities/gcflytour/index.d.cts +1 -1
  98. package/dist/entities/gcflytour/index.d.mts +1 -1
  99. package/dist/entities/gcflytour/index.mjs +17 -15
  100. package/dist/entities/gcflytour-snap/index.cjs +20 -18
  101. package/dist/entities/gcflytour-snap/index.d.cts +1 -1
  102. package/dist/entities/gcflytour-snap/index.d.mts +1 -1
  103. package/dist/entities/gcflytour-snap/index.mjs +16 -14
  104. package/dist/entities/landing-page/index.d.cts +2 -2
  105. package/dist/entities/landing-page/index.d.mts +3 -3
  106. package/dist/entities/lead/index.cjs +25 -23
  107. package/dist/entities/lead/index.mjs +15 -13
  108. package/dist/entities/media-content-type/index.cjs +21 -19
  109. package/dist/entities/media-content-type/index.d.cts +7 -6
  110. package/dist/entities/media-content-type/index.d.mts +7 -6
  111. package/dist/entities/media-content-type/index.mjs +17 -15
  112. package/dist/entities/media-creative-format/index.cjs +19 -17
  113. package/dist/entities/media-creative-format/index.d.cts +7 -6
  114. package/dist/entities/media-creative-format/index.d.mts +7 -6
  115. package/dist/entities/media-creative-format/index.mjs +15 -13
  116. package/dist/entities/media-medium/index.cjs +19 -17
  117. package/dist/entities/media-medium/index.d.cts +7 -6
  118. package/dist/entities/media-medium/index.d.mts +7 -6
  119. package/dist/entities/media-medium/index.mjs +15 -13
  120. package/dist/entities/media-platform/index.cjs +27 -24
  121. package/dist/entities/media-platform/index.d.cts +1 -1
  122. package/dist/entities/media-platform/index.d.mts +1 -1
  123. package/dist/entities/media-platform/index.mjs +23 -20
  124. package/dist/entities/monday-workspace/index.cjs +17 -15
  125. package/dist/entities/monday-workspace/index.d.cts +1 -1
  126. package/dist/entities/monday-workspace/index.d.mts +1 -1
  127. package/dist/entities/monday-workspace/index.mjs +11 -9
  128. package/dist/entities/newsletter-signup/index.cjs +25 -23
  129. package/dist/entities/newsletter-signup/index.mjs +13 -11
  130. package/dist/entities/policy-page/index.cjs +2 -1
  131. package/dist/entities/policy-page/index.d.cts +1 -1
  132. package/dist/entities/policy-page/index.d.mts +2 -2
  133. package/dist/entities/policy-page/index.mjs +2 -1
  134. package/dist/entities/product/index.cjs +1 -1
  135. package/dist/entities/product/index.d.cts +1 -1
  136. package/dist/entities/product/index.d.mts +1 -1
  137. package/dist/entities/product/index.mjs +1 -1
  138. package/dist/entities/product-highlight/index.cjs +1 -1
  139. package/dist/entities/product-highlight/index.d.cts +1 -1
  140. package/dist/entities/product-highlight/index.d.mts +1 -1
  141. package/dist/entities/product-highlight/index.mjs +1 -1
  142. package/dist/entities/resume/index.cjs +43 -40
  143. package/dist/entities/resume/index.mjs +16 -13
  144. package/dist/entities/sharpspring/index.cjs +9 -8
  145. package/dist/entities/sharpspring/index.mjs +6 -5
  146. package/dist/entities/tag/index.cjs +15 -13
  147. package/dist/entities/tag/index.d.cts +6 -5
  148. package/dist/entities/tag/index.d.mts +7 -6
  149. package/dist/entities/tag/index.mjs +11 -9
  150. package/dist/entities/team-member/index.cjs +11 -9
  151. package/dist/entities/team-member/index.d.cts +2 -2
  152. package/dist/entities/team-member/index.d.mts +2 -2
  153. package/dist/entities/team-member/index.mjs +7 -4
  154. package/dist/entities/team-page/index.d.cts +1 -1
  155. package/dist/entities/team-page/index.d.mts +1 -1
  156. package/dist/entities/teamwork/index.cjs +12 -11
  157. package/dist/entities/teamwork/index.d.mts +1 -1
  158. package/dist/entities/teamwork/index.mjs +7 -6
  159. package/dist/entities/trend/index.cjs +2 -2
  160. package/dist/entities/trend/index.d.cts +1 -1
  161. package/dist/entities/trend/index.d.mts +1 -1
  162. package/dist/entities/trend/index.mjs +2 -2
  163. package/dist/entities/up-auth/index.cjs +18 -15
  164. package/dist/entities/up-auth/index.d.cts +1 -1
  165. package/dist/entities/up-auth/index.d.mts +1 -1
  166. package/dist/entities/up-auth/index.mjs +6 -3
  167. package/dist/entities/up-permission/index.cjs +1 -1
  168. package/dist/entities/up-permission/index.d.cts +1 -1
  169. package/dist/entities/up-permission/index.d.mts +1 -1
  170. package/dist/entities/up-permission/index.mjs +1 -1
  171. package/dist/entities/up-role/index.cjs +1 -1
  172. package/dist/entities/up-role/index.d.cts +1 -1
  173. package/dist/entities/up-role/index.d.mts +1 -1
  174. package/dist/entities/up-role/index.mjs +1 -1
  175. package/dist/entities/up-user/index.cjs +2 -1
  176. package/dist/entities/up-user/index.d.cts +2 -2
  177. package/dist/entities/up-user/index.d.mts +2 -2
  178. package/dist/entities/up-user/index.mjs +2 -2
  179. package/dist/entities/upload/index.cjs +11 -11
  180. package/dist/entities/upload/index.mjs +7 -7
  181. package/dist/entities/url-redirect/index.cjs +5 -4
  182. package/dist/entities/url-redirect/index.d.cts +3 -2
  183. package/dist/entities/url-redirect/index.d.mts +3 -2
  184. package/dist/entities/url-redirect/index.mjs +4 -3
  185. package/dist/entities/user-account/index.cjs +10 -11
  186. package/dist/entities/user-account/index.d.cts +2 -2
  187. package/dist/entities/user-account/index.d.mts +2 -2
  188. package/dist/entities/user-account/index.mjs +10 -11
  189. package/dist/entities/utm-link-builder/index.cjs +30 -36
  190. package/dist/entities/utm-link-builder/index.d.cts +6 -6
  191. package/dist/entities/utm-link-builder/index.d.mts +6 -6
  192. package/dist/entities/utm-link-builder/index.mjs +22 -28
  193. package/dist/entities/utm-tracking-link/index.cjs +110 -104
  194. package/dist/entities/utm-tracking-link/index.d.cts +2 -2
  195. package/dist/entities/utm-tracking-link/index.d.mts +2 -2
  196. package/dist/entities/utm-tracking-link/index.mjs +68 -68
  197. package/dist/error-messages-9ZhRqNGW.mjs +10 -0
  198. package/dist/error-messages-C0I1kOur.cjs +51 -0
  199. package/dist/index-BOxQLeAK.d.cts +317 -0
  200. package/dist/index-BSYaAtme.d.mts +486 -0
  201. package/dist/index-BT8Pa9XY.d.mts +317 -0
  202. package/dist/index-Bd8ZGWzA.d.mts +944 -0
  203. package/dist/{index-DXo7B4ng.d.mts → index-Bjjp-2Sa.d.mts} +20 -99
  204. package/dist/{index-D3KnOYr7.d.mts → index-C9Hbvjc8.d.mts} +4 -3
  205. package/dist/index-COpLbpQC.d.cts +486 -0
  206. package/dist/{index-BvNVm4x7.d.cts → index-CTc84rze.d.cts} +91 -76
  207. package/dist/index-D5VpzV4T.d.cts +944 -0
  208. package/dist/{index-B_L_83Q2.d.cts → index-D7QXaSOY.d.cts} +19 -98
  209. package/dist/index-DG_Lwaa7.d.cts +1324 -0
  210. package/dist/{index-D_YPjLxv.d.cts → index-Dm8G_OXX.d.cts} +4 -3
  211. package/dist/{index-DfIDrcFz.d.mts → index-DpOKOSqT.d.mts} +94 -79
  212. package/dist/index-Dvu63a8_.d.mts +1324 -0
  213. package/dist/limits-CKGuEuKA.mjs +37 -0
  214. package/dist/{regex-Cl5goNwp.cjs → limits-CW6iJ7kB.cjs} +0 -102
  215. package/dist/number-Bt4nZKCU.cjs +19 -0
  216. package/dist/number-OMFRufFt.mjs +6 -0
  217. package/dist/pagination-D5l_UjyM.mjs +7 -0
  218. package/dist/pagination-DWZDPzR4.cjs +20 -0
  219. package/dist/permissions/index.cjs +2 -2
  220. package/dist/permissions/index.d.cts +1 -1
  221. package/dist/permissions/index.d.mts +1 -1
  222. package/dist/permissions/index.mjs +2 -2
  223. package/dist/phone-C9TNVDm_.mjs +8 -0
  224. package/dist/phone-D_ZLG1Qv.cjs +21 -0
  225. package/dist/{query-CuUCmubx.mjs → query-BR5Ze6T2.mjs} +7 -11
  226. package/dist/{query-Cz8yY3Dq.cjs → query-qQ_HLlxx.cjs} +13 -29
  227. package/dist/regex-BEFTMiHO.cjs +51 -0
  228. package/dist/regex-pSdcbWzV.mjs +10 -0
  229. package/dist/relation-Bd-xUcj8.cjs +33 -0
  230. package/dist/relation-DMhLjp7K.mjs +8 -0
  231. package/dist/{relationships-SzSI7Ln9.cjs → relationships-DjHwYd4r.cjs} +23 -9
  232. package/dist/{relationships-IcOcZWI-.mjs → relationships-yPO5SILR.mjs} +7 -5
  233. package/dist/slug-BUtm1t-B.mjs +7 -0
  234. package/dist/slug-cWXTZEIT.cjs +14 -0
  235. package/dist/sort-CI87SH1y.cjs +33 -0
  236. package/dist/sort-D3WwshqQ.mjs +14 -0
  237. package/dist/{strapi-C7xCz8i2.mjs → strapi-B2cNPAao.mjs} +1 -1
  238. package/dist/{strapi-D3y3Nx_M.mjs → strapi-CE9bz7Kc.mjs} +2 -2
  239. package/dist/{strapi-CmJNl690.cjs → strapi-D8C1C0D7.cjs} +2 -2
  240. package/dist/{strapi-C3g4Q1Dv.cjs → strapi-RlhF30B7.cjs} +1 -1
  241. package/dist/string-BHHnD2Qu.mjs +42 -0
  242. package/dist/string-Yn-6xiAZ.cjs +97 -0
  243. package/dist/urls-UOvhCu0z.mjs +14 -0
  244. package/dist/urls-og5upHgL.cjs +27 -0
  245. package/dist/utilities/index.cjs +1 -1
  246. package/dist/utilities/index.d.cts +6 -6
  247. package/dist/utilities/index.d.mts +6 -6
  248. package/dist/utilities/index.mjs +1 -1
  249. package/dist/utm-BqkYlpua.cjs +47 -0
  250. package/dist/utm-ZUwmBoR2.mjs +28 -0
  251. package/dist/validators/index.cjs +36 -0
  252. package/dist/validators/index.d.cts +94 -0
  253. package/dist/validators/index.d.mts +94 -0
  254. package/dist/validators/index.mjs +10 -0
  255. package/package.json +11 -1
  256. package/dist/index-B3VtiObV.d.mts +0 -317
  257. package/dist/index-B5HBNPsF.d.cts +0 -945
  258. package/dist/index-B8kMariL.d.mts +0 -945
  259. package/dist/index-BxEBUjx2.d.mts +0 -486
  260. package/dist/index-CQP_vcmO.d.cts +0 -317
  261. package/dist/index-CRoWUxGV.d.cts +0 -1324
  262. package/dist/index-auU0DaW5.d.cts +0 -486
  263. package/dist/index-oCLNrzIj.d.mts +0 -1324
  264. package/dist/regex-BnKGcdS4.mjs +0 -55
  265. package/dist/validators-Bc9Is5Sr.cjs +0 -222
  266. package/dist/validators-P5E_3qzc.mjs +0 -95
  267. /package/dist/{abac-DPd9oLKR.mjs → abac-BPxkvVVy.mjs} +0 -0
  268. /package/dist/{abac-BeKQtxIF.cjs → abac-YYI2Ckwv.cjs} +0 -0
  269. /package/dist/{constants-Htf-MeCA.mjs → constants-C4cy6LoY.mjs} +0 -0
  270. /package/dist/{constants-f1GP2eiq.cjs → constants-D6DsS_A0.cjs} +0 -0
  271. /package/dist/{document-DaICHS9G.cjs → document-B4FY2KXQ.cjs} +0 -0
  272. /package/dist/{document-c3GNPelp.mjs → document-De-prPhc.mjs} +0 -0
  273. /package/dist/{document-CbE38CzE.d.mts → document-DxjJgk8X.d.mts} +0 -0
  274. /package/dist/{index-DLICmJ_-.d.mts → index-BSEaV9wd.d.mts} +0 -0
  275. /package/dist/{json-BrVkpLbC.d.mts → json--oetJLQY.d.mts} +0 -0
  276. /package/dist/{media-upload-DKeA1eD-.d.mts → media-upload-DBG7YyU4.d.mts} +0 -0
@@ -1,15 +1,20 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
2
  const require_document = require("./document-BAro2Mrj.cjs");
3
3
  const require_media_upload = require("./media-upload-B6aQYeRM.cjs");
4
- const require_regex = require("./regex-Cl5goNwp.cjs");
5
- const require_validators = require("./validators-Bc9Is5Sr.cjs");
6
- const require_constants = require("./constants-f1GP2eiq.cjs");
4
+ require("./limits-CW6iJ7kB.cjs");
5
+ const require_pagination = require("./pagination-DWZDPzR4.cjs");
6
+ const require_sort = require("./sort-CI87SH1y.cjs");
7
+ const require_email = require("./email-ByTEdUjg.cjs");
8
+ const require_regex = require("./regex-BEFTMiHO.cjs");
9
+ const require_string = require("./string-Yn-6xiAZ.cjs");
10
+ const require_constants = require("./constants-D6DsS_A0.cjs");
11
+ const require_relation = require("./relation-Bd-xUcj8.cjs");
7
12
  const require_components_shared_index = require("./components/shared/index.cjs");
8
13
  const require_components_blocks_index = require("./components/blocks/index.cjs");
9
14
  const require_components_brand_index = require("./components/brand/index.cjs");
10
15
  const require_components_utm_index = require("./components/utm/index.cjs");
11
- const require_document$1 = require("./document-DaICHS9G.cjs");
12
- const require_document$2 = require("./document-CwIvc2p7.cjs");
16
+ const require_document$1 = require("./document-B4FY2KXQ.cjs");
17
+ const require_document$2 = require("./document-DJJFS5o8.cjs");
13
18
  let valibot = require("valibot");
14
19
  valibot = require_chunk.__toESM(valibot, 1);
15
20
  //#region src/entities/content-pillar/document.ts
@@ -19,15 +24,77 @@ const ContentPillarDocument = valibot.object({
19
24
  slug: valibot.string(),
20
25
  description: valibot.nullable(valibot.string()),
21
26
  information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
22
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientContentPillarDocument))))
27
+ clients: require_relation.VDocumentRelationMany(() => ClientContentPillarDocument)
23
28
  });
24
29
  //#endregion
25
30
  //#region src/entities/client-content-pillar/document.ts
26
31
  const ClientContentPillarDocument = valibot.object({
27
32
  ...require_document.BaseDocument.entries,
28
33
  is_active: valibot.boolean(),
29
- client: valibot.optional(valibot.nullable(valibot.lazy(() => ClientDocument))),
30
- content_pillar: valibot.optional(valibot.nullable(valibot.lazy(() => ContentPillarDocument)))
34
+ client: require_relation.VDocumentRelationOne(() => ClientDocument),
35
+ content_pillar: require_relation.VDocumentRelationOne(() => ContentPillarDocument)
36
+ });
37
+ //#endregion
38
+ //#region src/entities/media-creative-format/document.ts
39
+ const MediaCreativeFormatDocument = valibot.object({
40
+ ...require_document.BaseDocument.entries,
41
+ title: valibot.string(),
42
+ slug: valibot.string(),
43
+ is_active: valibot.boolean(),
44
+ description: valibot.nullable(valibot.string()),
45
+ media_content_types: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaContentTypeDocument))))
46
+ });
47
+ //#endregion
48
+ //#region src/entities/media-content-type/document.ts
49
+ const MediaContentTypeDocument = valibot.object({
50
+ ...require_document.BaseDocument.entries,
51
+ title: valibot.string(),
52
+ slug: valibot.string(),
53
+ is_active: valibot.boolean(),
54
+ is_organic_social: valibot.boolean(),
55
+ is_paid_media: valibot.boolean(),
56
+ description: valibot.nullable(valibot.string()),
57
+ information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
58
+ media_platforms: require_relation.VDocumentRelationMany(() => MediaPlatformDocument),
59
+ media_creative_formats: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaCreativeFormatDocument))))
60
+ });
61
+ //#endregion
62
+ //#region src/entities/media-medium/document.ts
63
+ const MediaMediumDocument = valibot.object({
64
+ ...require_document.BaseDocument.entries,
65
+ title: valibot.string(),
66
+ slug: valibot.string(),
67
+ is_active: valibot.boolean(),
68
+ is_organic_social: valibot.boolean(),
69
+ is_paid_media: valibot.boolean(),
70
+ description: valibot.nullable(valibot.string()),
71
+ media_platforms: require_relation.VDocumentRelationMany(() => MediaPlatformDocument)
72
+ });
73
+ //#endregion
74
+ //#region src/entities/media-platform/document.ts
75
+ const MediaPlatformDocument = valibot.object({
76
+ ...require_document.BaseDocument.entries,
77
+ title: valibot.string(),
78
+ slug: valibot.string(),
79
+ utm_key: valibot.string(),
80
+ is_active: valibot.boolean(),
81
+ is_organic_social: valibot.boolean(),
82
+ is_paid_media: valibot.boolean(),
83
+ logos: valibot.optional(valibot.nullable(require_components_blocks_index.BlockBrandLogos)),
84
+ description: valibot.nullable(valibot.string()),
85
+ information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
86
+ clients: require_relation.VDocumentRelationMany(() => ClientMediaPlatformDocument),
87
+ media_content_types: require_relation.VDocumentRelationMany(() => MediaContentTypeDocument),
88
+ media_mediums: require_relation.VDocumentRelationMany(() => MediaMediumDocument)
89
+ });
90
+ //#endregion
91
+ //#region src/entities/client-media-platform/document.ts
92
+ const ClientMediaPlatformDocument = valibot.object({
93
+ ...require_document.BaseDocument.entries,
94
+ url: valibot.nullable(valibot.string()),
95
+ is_active: valibot.boolean(),
96
+ client: require_relation.VDocumentRelationOne(() => ClientDocument),
97
+ media_platform: require_relation.VDocumentRelationOne(() => MediaPlatformDocument)
31
98
  });
32
99
  //#endregion
33
100
  //#region src/entities/client-project/constants.ts
@@ -109,7 +176,7 @@ const CLIENT_PROJECT_SORT_KEYS = [
109
176
  ];
110
177
  //#endregion
111
178
  //#region src/entities/client-project/fields.ts
112
- const QuerySortClientProjects = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_PROJECT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_PROJECT_SORT_KEYS.length)));
179
+ const QuerySortClientProjects = require_sort.createQuerySort(CLIENT_PROJECT_SORT_KEYS);
113
180
  const ClientProjectStatus = valibot.picklist(CLIENT_PROJECT_STATUS);
114
181
  const ClientProjectPhase = valibot.picklist(CLIENT_PROJECT_PHASE_VALUES);
115
182
  //#endregion
@@ -118,7 +185,7 @@ const ClientProjectDocument = valibot.object({
118
185
  ...require_document.BaseDocument.entries,
119
186
  title: valibot.string(),
120
187
  slug: valibot.string(),
121
- featured_image: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
188
+ featured_image: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
122
189
  is_active: valibot.boolean(),
123
190
  is_hidden: valibot.boolean(),
124
191
  project_status: valibot.array(ClientProjectStatus),
@@ -134,7 +201,7 @@ const ClientProjectDocument = valibot.object({
134
201
  social_organic_start_date: valibot.nullable(valibot.string()),
135
202
  paid_media_start_date: valibot.nullable(valibot.string()),
136
203
  go_date: valibot.nullable(valibot.string()),
137
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientDocument))))
204
+ clients: require_relation.VDocumentRelationMany(() => ClientDocument)
138
205
  });
139
206
  //#endregion
140
207
  //#region src/entities/client-report/document.ts
@@ -146,7 +213,7 @@ const ClientReportDocument = valibot.object({
146
213
  is_external: valibot.boolean(),
147
214
  is_hidden: valibot.boolean(),
148
215
  scopes: valibot.array(valibot.string()),
149
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientDocument))))
216
+ clients: require_relation.VDocumentRelationMany(() => ClientDocument)
150
217
  });
151
218
  //#endregion
152
219
  //#region src/entities/client-styleguide/document.ts
@@ -159,12 +226,12 @@ const ClientStyleguideDocument = valibot.object({
159
226
  communication: valibot.array(require_components_shared_index.RichTextBlock),
160
227
  brand_elements: valibot.array(require_components_shared_index.RichTextBlock),
161
228
  brand_intention: valibot.array(require_components_shared_index.RichTextBlock),
162
- mood: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
163
- logos: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
229
+ mood: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
230
+ logos: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
164
231
  brand_colors: valibot.optional(valibot.array(require_components_brand_index.ComponentBrandStyleguideColor)),
165
232
  brand_fonts: valibot.optional(valibot.array(require_components_brand_index.ComponentBrandStyleguideFont)),
166
- brand_application: valibot.optional(valibot.array(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
167
- client: valibot.optional(valibot.nullable(valibot.lazy(() => ClientDocument)))
233
+ brand_application: require_relation.VDocumentRelationManyRequired(() => require_media_upload.MediaUploadDocument),
234
+ client: require_relation.VDocumentRelationOne(() => ClientDocument)
168
235
  });
169
236
  //#endregion
170
237
  //#region src/entities/up-user/constants.ts
@@ -184,7 +251,7 @@ const USER_SORT_KEYS = [
184
251
  const PermissionDocument = valibot.object({
185
252
  ...require_document.BaseDocument.entries,
186
253
  action: valibot.string(),
187
- role: valibot.optional(valibot.nullable(valibot.lazy(() => RoleDocument)))
254
+ role: require_relation.VDocumentRelationOne(() => RoleDocument)
188
255
  });
189
256
  //#endregion
190
257
  //#region src/entities/up-role/constants.ts
@@ -205,8 +272,8 @@ const RoleDocument = valibot.object({
205
272
  type: RoleType,
206
273
  name: valibot.string(),
207
274
  description: valibot.nullable(valibot.string()),
208
- permissions: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => PermissionDocument)))),
209
- users: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => UserDocument))))
275
+ permissions: require_relation.VDocumentRelationMany(() => PermissionDocument),
276
+ users: require_relation.VDocumentRelationMany(() => UserDocument)
210
277
  });
211
278
  //#endregion
212
279
  //#region src/entities/user-account/document.ts
@@ -237,8 +304,8 @@ const UtmTrackingLinkDocument = valibot.object({
237
304
  url: valibot.string(),
238
305
  is_active: valibot.boolean(),
239
306
  notes: valibot.nullable(valibot.string()),
240
- creator: valibot.optional(valibot.nullable(valibot.lazy(() => UserDocument))),
241
- client: valibot.optional(valibot.nullable(valibot.lazy(() => ClientDocument)))
307
+ creator: require_relation.VDocumentRelationOne(() => UserDocument),
308
+ client: require_relation.VDocumentRelationOne(() => ClientDocument)
242
309
  });
243
310
  //#endregion
244
311
  //#region src/entities/up-user/document.ts
@@ -250,20 +317,21 @@ const UserDocument = valibot.object({
250
317
  confirmed: valibot.boolean(),
251
318
  blocked: valibot.boolean(),
252
319
  clerk_user_id: valibot.nullable(valibot.string()),
253
- role: valibot.optional(valibot.nullable(valibot.lazy(() => RoleDocument))),
254
- account: valibot.optional(valibot.nullable(valibot.lazy(() => UserAccountDocument))),
255
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientUserDocument)))),
256
- utm_tracking_links: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => UtmTrackingLinkDocument))))
320
+ role: require_relation.VDocumentRelationOne(() => RoleDocument),
321
+ account: require_relation.VDocumentRelationOne(() => UserAccountDocument),
322
+ clients: require_relation.VDocumentRelationMany(() => ClientUserDocument),
323
+ utm_tracking_links: require_relation.VDocumentRelationMany(() => UtmTrackingLinkDocument)
257
324
  });
258
325
  //#endregion
259
326
  //#region src/entities/up-user/fields.ts
260
- const QuerySortUsers = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(USER_SORT_KEYS.length)));
327
+ const QuerySortUsers = require_sort.createQuerySort(USER_SORT_KEYS);
328
+ const ValidUsername = require_string.VStringMinMaxRegex(3, 255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE);
261
329
  //#endregion
262
330
  //#region src/entities/up-user/mutation.ts
263
331
  const CreateUserDocument = valibot.object({
264
- username: require_validators.VStringMinMaxRegex(3, 255, require_regex.REGEX_UTM_VALUE, "username must be alphanumeric"),
265
- email: require_validators.VStringEmail(),
266
- password: require_validators.VStringMinMax(8, 255),
332
+ username: ValidUsername,
333
+ email: require_email.VStringEmail(),
334
+ password: require_string.VStringMinMax(8, 255),
267
335
  blocked: valibot.boolean(),
268
336
  confirmed: valibot.boolean(),
269
337
  role: valibot.number()
@@ -271,14 +339,14 @@ const CreateUserDocument = valibot.object({
271
339
  //#endregion
272
340
  //#region src/entities/up-user/query.ts
273
341
  const QueryStrapiUsers = valibot.object({
274
- page: require_validators.VPage(),
275
- size: require_validators.VSize(10),
342
+ page: require_pagination.VPage(),
343
+ size: require_pagination.VSize(10),
276
344
  sort: QuerySortUsers
277
345
  });
278
346
  const QueryStrapiUsersByIdentifier = valibot.object({
279
- identifier: require_validators.VStringShort(0),
280
- page: require_validators.VPage(),
281
- size: require_validators.VSize(10)
347
+ identifier: require_string.VStringShort(0),
348
+ page: require_pagination.VPage(),
349
+ size: require_pagination.VSize(10)
282
350
  });
283
351
  //#endregion
284
352
  //#region src/entities/client-user/constants.ts
@@ -302,15 +370,15 @@ const CLIENT_USER_SORT_KEYS = [
302
370
  ];
303
371
  //#endregion
304
372
  //#region src/entities/client-user/fields.ts
305
- const QuerySortClientUsers = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_USER_SORT_KEYS.length)));
373
+ const QuerySortClientUsers = require_sort.createQuerySort(CLIENT_USER_SORT_KEYS);
306
374
  const ClientUserScopes = valibot.pipe(valibot.array(valibot.picklist(require_constants.CLIENT_ENTITY_SCOPES), "Please provide a valid list of scopes."), valibot.maxLength(require_constants.CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."));
307
375
  //#endregion
308
376
  //#region src/entities/client-user/document.ts
309
377
  const ClientUserDocument = valibot.object({
310
378
  ...require_document.BaseDocument.entries,
311
379
  scopes: ClientUserScopes,
312
- client: valibot.optional(valibot.nullable(valibot.lazy(() => ClientDocument))),
313
- user: valibot.optional(valibot.nullable(valibot.lazy(() => UserDocument)))
380
+ client: require_relation.VDocumentRelationOne(() => ClientDocument),
381
+ user: require_relation.VDocumentRelationOne(() => UserDocument)
314
382
  });
315
383
  const ClientUserDocumentStatus = valibot.object({
316
384
  verified: valibot.boolean(),
@@ -326,7 +394,7 @@ const GCFlyTourSnapDocument = valibot.object({
326
394
  description: valibot.nullable(valibot.string()),
327
395
  is_active: valibot.boolean(),
328
396
  is_hidden: valibot.boolean(),
329
- gcflytour: valibot.optional(valibot.nullable(valibot.lazy(() => GCFlyTourDocument)))
397
+ gcflytour: require_relation.VDocumentRelationOne(() => GCFlyTourDocument)
330
398
  });
331
399
  //#endregion
332
400
  //#region src/entities/gcflytour/document.ts
@@ -337,8 +405,8 @@ const GCFlyTourDocument = valibot.object({
337
405
  description: valibot.nullable(valibot.string()),
338
406
  is_active: valibot.boolean(),
339
407
  is_hidden: valibot.boolean(),
340
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientDocument)))),
341
- gcflytour_snaps: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => GCFlyTourSnapDocument))))
408
+ clients: require_relation.VDocumentRelationMany(() => ClientDocument),
409
+ gcflytour_snaps: require_relation.VDocumentRelationMany(() => GCFlyTourSnapDocument)
342
410
  });
343
411
  //#endregion
344
412
  //#region src/entities/monday-workspace/document.ts
@@ -346,7 +414,7 @@ const MondayWorkspaceDocument = valibot.object({
346
414
  ...require_document.BaseDocument.entries,
347
415
  title: valibot.string(),
348
416
  workspace_id: valibot.string(),
349
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientDocument))))
417
+ clients: require_relation.VDocumentRelationMany(() => ClientDocument)
350
418
  });
351
419
  //#endregion
352
420
  //#region src/entities/product-highlight/document.ts
@@ -357,13 +425,13 @@ const ProductHighlightDocument = valibot.object({
357
425
  title_line_2: valibot.string(),
358
426
  introduction: valibot.string(),
359
427
  highlight: valibot.optional(require_components_blocks_index.BlockFullscreenContent),
360
- featured_image: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
428
+ featured_image: require_relation.VDocumentRelationOne(() => require_media_upload.MediaUploadDocument),
361
429
  background_color: valibot.string(),
362
430
  order: valibot.number(),
363
431
  text_invert: valibot.boolean(),
364
- products: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => require_document$2.ProductDocument)))),
365
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientDocument)))),
366
- tags: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => require_document$1.TagDocument))))
432
+ products: require_relation.VDocumentRelationMany(() => require_document$2.ProductDocument),
433
+ clients: require_relation.VDocumentRelationMany(() => ClientDocument),
434
+ tags: require_relation.VDocumentRelationMany(() => require_document$1.TagDocument)
367
435
  });
368
436
  //#endregion
369
437
  //#region src/entities/client/document.ts
@@ -382,78 +450,16 @@ const ClientDocument = valibot.object({
382
450
  is_active: valibot.boolean(),
383
451
  is_hidden: valibot.boolean(),
384
452
  classification: valibot.array(require_components_utm_index.UtmClassificationKey),
385
- users: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientUserDocument)))),
386
- product_highlights: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ProductHighlightDocument)))),
387
- client_projects: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientProjectDocument)))),
388
- client_reports: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientReportDocument)))),
389
- monday_workspaces: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MondayWorkspaceDocument)))),
390
- utm_tracking_links: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => UtmTrackingLinkDocument)))),
391
- styleguides: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientStyleguideDocument)))),
392
- media_platforms: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientMediaPlatformDocument)))),
393
- content_pillars: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientContentPillarDocument)))),
394
- gcflytours: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => GCFlyTourDocument))))
395
- });
396
- //#endregion
397
- //#region src/entities/media-creative-format/document.ts
398
- const MediaCreativeFormatDocument = valibot.object({
399
- ...require_document.BaseDocument.entries,
400
- title: valibot.string(),
401
- slug: valibot.string(),
402
- is_active: valibot.boolean(),
403
- description: valibot.nullable(valibot.string()),
404
- media_content_types: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaContentTypeDocument))))
405
- });
406
- //#endregion
407
- //#region src/entities/media-content-type/document.ts
408
- const MediaContentTypeDocument = valibot.object({
409
- ...require_document.BaseDocument.entries,
410
- title: valibot.string(),
411
- slug: valibot.string(),
412
- is_active: valibot.boolean(),
413
- is_organic_social: valibot.boolean(),
414
- is_paid_media: valibot.boolean(),
415
- description: valibot.nullable(valibot.string()),
416
- information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
417
- media_platforms: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaPlatformDocument)))),
418
- media_creative_formats: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaCreativeFormatDocument))))
419
- });
420
- //#endregion
421
- //#region src/entities/media-medium/document.ts
422
- const MediaMediumDocument = valibot.object({
423
- ...require_document.BaseDocument.entries,
424
- title: valibot.string(),
425
- slug: valibot.string(),
426
- is_active: valibot.boolean(),
427
- is_organic_social: valibot.boolean(),
428
- is_paid_media: valibot.boolean(),
429
- description: valibot.nullable(valibot.string()),
430
- media_platforms: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaPlatformDocument))))
431
- });
432
- //#endregion
433
- //#region src/entities/media-platform/document.ts
434
- const MediaPlatformDocument = valibot.object({
435
- ...require_document.BaseDocument.entries,
436
- title: valibot.string(),
437
- slug: valibot.string(),
438
- utm_key: valibot.string(),
439
- is_active: valibot.boolean(),
440
- is_organic_social: valibot.boolean(),
441
- is_paid_media: valibot.boolean(),
442
- logos: valibot.optional(valibot.nullable(require_components_blocks_index.BlockBrandLogos)),
443
- description: valibot.nullable(valibot.string()),
444
- information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock)),
445
- clients: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => ClientMediaPlatformDocument)))),
446
- media_content_types: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaContentTypeDocument)))),
447
- media_mediums: valibot.optional(valibot.nullable(valibot.array(valibot.lazy(() => MediaMediumDocument))))
448
- });
449
- //#endregion
450
- //#region src/entities/client-media-platform/document.ts
451
- const ClientMediaPlatformDocument = valibot.object({
452
- ...require_document.BaseDocument.entries,
453
- url: valibot.nullable(valibot.string()),
454
- is_active: valibot.boolean(),
455
- client: valibot.optional(valibot.nullable(valibot.lazy(() => ClientDocument))),
456
- media_platform: valibot.optional(valibot.nullable(valibot.lazy(() => MediaPlatformDocument)))
453
+ users: require_relation.VDocumentRelationMany(() => ClientUserDocument),
454
+ product_highlights: require_relation.VDocumentRelationMany(() => ProductHighlightDocument),
455
+ client_projects: require_relation.VDocumentRelationMany(() => ClientProjectDocument),
456
+ client_reports: require_relation.VDocumentRelationMany(() => ClientReportDocument),
457
+ monday_workspaces: require_relation.VDocumentRelationMany(() => MondayWorkspaceDocument),
458
+ utm_tracking_links: require_relation.VDocumentRelationMany(() => UtmTrackingLinkDocument),
459
+ styleguides: require_relation.VDocumentRelationMany(() => ClientStyleguideDocument),
460
+ media_platforms: require_relation.VDocumentRelationMany(() => ClientMediaPlatformDocument),
461
+ content_pillars: require_relation.VDocumentRelationMany(() => ClientContentPillarDocument),
462
+ gcflytours: require_relation.VDocumentRelationMany(() => GCFlyTourDocument)
457
463
  });
458
464
  //#endregion
459
465
  Object.defineProperty(exports, "CLIENT_PROJECT_PHASES", {
@@ -726,3 +732,9 @@ Object.defineProperty(exports, "UtmTrackingLinkDocument", {
726
732
  return UtmTrackingLinkDocument;
727
733
  }
728
734
  });
735
+ Object.defineProperty(exports, "ValidUsername", {
736
+ enumerable: true,
737
+ get: function() {
738
+ return ValidUsername;
739
+ }
740
+ });
@@ -0,0 +1,13 @@
1
+ const require_chunk = require("./chunk-CKQMccvm.cjs");
2
+ require("./limits-CW6iJ7kB.cjs");
3
+ let valibot = require("valibot");
4
+ valibot = require_chunk.__toESM(valibot, 1);
5
+ //#region src/validators/email.ts
6
+ const VStringEmail = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(5), valibot.maxLength(255), valibot.email());
7
+ //#endregion
8
+ Object.defineProperty(exports, "VStringEmail", {
9
+ enumerable: true,
10
+ get: function() {
11
+ return VStringEmail;
12
+ }
13
+ });
@@ -0,0 +1,6 @@
1
+ import "./limits-CKGuEuKA.mjs";
2
+ import * as v from "valibot";
3
+ //#region src/validators/email.ts
4
+ const VStringEmail = () => v.pipe(v.string(), v.trim(), v.minLength(5), v.maxLength(255), v.email());
5
+ //#endregion
6
+ export { VStringEmail as t };
@@ -2,8 +2,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  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
- const require_validators = require("../../validators-Bc9Is5Sr.cjs");
6
- const require_relationships = require("../../relationships-SzSI7Ln9.cjs");
5
+ const require_pagination = require("../../pagination-DWZDPzR4.cjs");
6
+ const require_sort = require("../../sort-CI87SH1y.cjs");
7
+ const require_email = require("../../email-ByTEdUjg.cjs");
8
+ const require_string = require("../../string-Yn-6xiAZ.cjs");
9
+ const require_relationships = require("../../relationships-DjHwYd4r.cjs");
7
10
  let valibot = require("valibot");
8
11
  valibot = require_chunk.__toESM(valibot, 1);
9
12
  //#region src/entities/audit-log/constants.ts
@@ -38,7 +41,7 @@ const AUDIT_LOG_METHODS = [
38
41
  ];
39
42
  //#endregion
40
43
  //#region src/entities/audit-log/fields.ts
41
- const QuerySortAuditLogs = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(AUDIT_LOG_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(AUDIT_LOG_SORT_KEYS.length)));
44
+ const QuerySortAuditLogs = require_sort.createQuerySort(AUDIT_LOG_SORT_KEYS);
42
45
  const AuditLogMethod = valibot.picklist(AUDIT_LOG_METHODS);
43
46
  //#endregion
44
47
  //#region src/entities/audit-log/mutation.ts
@@ -46,18 +49,18 @@ const CreateAuditLogDocument = valibot.object({
46
49
  method: AuditLogMethod,
47
50
  url: valibot.string(),
48
51
  path: valibot.string(),
49
- request_id: valibot.nullable(require_validators.VStringMax()),
50
- ipaddress: valibot.nullable(require_validators.VStringMax(64)),
51
- user_agent: valibot.nullable(require_validators.VStringMax()),
52
- route_path: valibot.nullable(require_validators.VStringMax()),
53
- route_handler: valibot.nullable(require_validators.VStringMax()),
54
- actor_type: require_validators.VStringMax(),
55
- actor_id: valibot.nullable(require_validators.VStringMax()),
56
- actor_email: valibot.nullable(require_validators.VStringEmail()),
57
- entity_action: require_validators.VStringMax(),
58
- entity_content_type: require_validators.VStringMax(),
59
- entity_id: valibot.nullable(require_validators.VStringMax()),
60
- entity_label: valibot.nullable(require_validators.VStringMax()),
52
+ request_id: valibot.nullable(require_string.VStringMax()),
53
+ ipaddress: valibot.nullable(require_string.VStringMax(64)),
54
+ user_agent: valibot.nullable(require_string.VStringMax()),
55
+ route_path: valibot.nullable(require_string.VStringMax()),
56
+ route_handler: valibot.nullable(require_string.VStringMax()),
57
+ actor_type: require_string.VStringMax(),
58
+ actor_id: valibot.nullable(require_string.VStringMax()),
59
+ actor_email: valibot.nullable(require_email.VStringEmail()),
60
+ entity_action: require_string.VStringMax(),
61
+ entity_content_type: require_string.VStringMax(),
62
+ entity_id: valibot.nullable(require_string.VStringMax()),
63
+ entity_label: valibot.nullable(require_string.VStringMax()),
61
64
  request_data: valibot.optional(valibot.nullable(require_json.JsonSchema)),
62
65
  before: valibot.optional(valibot.nullable(require_json.JsonSchema)),
63
66
  after: valibot.optional(valibot.nullable(require_json.JsonSchema))
@@ -66,18 +69,18 @@ const UpdateAuditLogDocument = valibot.object({
66
69
  method: valibot.optional(AuditLogMethod),
67
70
  url: valibot.optional(valibot.string()),
68
71
  path: valibot.optional(valibot.string()),
69
- request_id: valibot.optional(valibot.nullable(require_validators.VStringMax())),
70
- ipaddress: valibot.optional(valibot.nullable(require_validators.VStringMax(64))),
71
- user_agent: valibot.optional(valibot.nullable(require_validators.VStringMax())),
72
- route_path: valibot.optional(valibot.nullable(require_validators.VStringMax())),
73
- route_handler: valibot.optional(valibot.nullable(require_validators.VStringMax())),
74
- actor_type: valibot.optional(require_validators.VStringMax()),
75
- actor_id: valibot.optional(valibot.nullable(require_validators.VStringMax())),
76
- actor_email: valibot.optional(valibot.nullable(require_validators.VStringEmail())),
77
- entity_action: valibot.optional(require_validators.VStringMax()),
78
- entity_content_type: valibot.optional(require_validators.VStringMax()),
79
- entity_id: valibot.optional(valibot.nullable(require_validators.VStringMax())),
80
- entity_label: valibot.optional(valibot.nullable(require_validators.VStringMax())),
72
+ request_id: valibot.optional(valibot.nullable(require_string.VStringMax())),
73
+ ipaddress: valibot.optional(valibot.nullable(require_string.VStringMax(64))),
74
+ user_agent: valibot.optional(valibot.nullable(require_string.VStringMax())),
75
+ route_path: valibot.optional(valibot.nullable(require_string.VStringMax())),
76
+ route_handler: valibot.optional(valibot.nullable(require_string.VStringMax())),
77
+ actor_type: valibot.optional(require_string.VStringMax()),
78
+ actor_id: valibot.optional(valibot.nullable(require_string.VStringMax())),
79
+ actor_email: valibot.optional(valibot.nullable(require_email.VStringEmail())),
80
+ entity_action: valibot.optional(require_string.VStringMax()),
81
+ entity_content_type: valibot.optional(require_string.VStringMax()),
82
+ entity_id: valibot.optional(valibot.nullable(require_string.VStringMax())),
83
+ entity_label: valibot.optional(valibot.nullable(require_string.VStringMax())),
81
84
  request_data: valibot.optional(valibot.nullable(require_json.JsonSchema)),
82
85
  before: valibot.optional(valibot.nullable(require_json.JsonSchema)),
83
86
  after: valibot.optional(valibot.nullable(require_json.JsonSchema))
@@ -95,23 +98,23 @@ const AuditLogDocument = valibot.object({
95
98
  //#endregion
96
99
  //#region src/entities/audit-log/query.ts
97
100
  const QueryStrapiSearchAuditLogs = valibot.object({
98
- page: require_validators.VPage(),
99
- size: require_validators.VSize(20),
101
+ page: require_pagination.VPage(),
102
+ size: require_pagination.VSize(20),
100
103
  method: valibot.optional(AuditLogMethod),
101
104
  url: valibot.optional(valibot.string()),
102
105
  path: valibot.optional(valibot.string()),
103
- request_id: valibot.optional(require_validators.VStringMax()),
104
- ipaddress: valibot.optional(require_validators.VStringMax(64)),
105
- user_agent: valibot.optional(require_validators.VStringMax()),
106
- route_path: valibot.optional(require_validators.VStringMax()),
107
- route_handler: valibot.optional(require_validators.VStringMax()),
108
- actor_type: valibot.optional(require_validators.VStringMax()),
109
- actor_id: valibot.optional(require_validators.VStringMax()),
110
- actor_email: valibot.optional(require_validators.VStringEmail()),
111
- entity_action: valibot.optional(require_validators.VStringMax()),
112
- entity_content_type: valibot.optional(require_validators.VStringMax()),
113
- entity_id: valibot.optional(require_validators.VStringMax()),
114
- entity_label: valibot.optional(require_validators.VStringMax()),
106
+ request_id: valibot.optional(require_string.VStringMax()),
107
+ ipaddress: valibot.optional(require_string.VStringMax(64)),
108
+ user_agent: valibot.optional(require_string.VStringMax()),
109
+ route_path: valibot.optional(require_string.VStringMax()),
110
+ route_handler: valibot.optional(require_string.VStringMax()),
111
+ actor_type: valibot.optional(require_string.VStringMax()),
112
+ actor_id: valibot.optional(require_string.VStringMax()),
113
+ actor_email: valibot.optional(require_email.VStringEmail()),
114
+ entity_action: valibot.optional(require_string.VStringMax()),
115
+ entity_content_type: valibot.optional(require_string.VStringMax()),
116
+ entity_id: valibot.optional(require_string.VStringMax()),
117
+ entity_label: valibot.optional(require_string.VStringMax()),
115
118
  sort: QuerySortAuditLogs
116
119
  });
117
120
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { Z as QuerySortOutput } from "../../index-D7QXaSOY.cjs";
1
2
  import { t as JsonData } from "../../json-Cm6HECXA.cjs";
2
3
  import * as v from "valibot";
3
4
 
@@ -35,7 +36,7 @@ declare const AuditLogDocument: v.ObjectSchema<{
35
36
  type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
36
37
  //#endregion
37
38
  //#region src/entities/audit-log/fields.d.ts
38
- declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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
+ declare const QuerySortAuditLogs: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
39
40
  type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
40
41
  declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
41
42
  type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
@@ -127,7 +128,7 @@ declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
127
128
  readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
128
129
  readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
129
130
  readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
130
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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
+ readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
131
132
  }, undefined>;
132
133
  type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
133
134
  //#endregion
@@ -1,4 +1,5 @@
1
- import { t as JsonData } from "../../json-BrVkpLbC.mjs";
1
+ import { Z as QuerySortOutput } from "../../index-Bjjp-2Sa.mjs";
2
+ import { t as JsonData } from "../../json--oetJLQY.mjs";
2
3
  import * as v from "valibot";
3
4
 
4
5
  //#region src/entities/audit-log/constants.d.ts
@@ -35,7 +36,7 @@ declare const AuditLogDocument: v.ObjectSchema<{
35
36
  type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
36
37
  //#endregion
37
38
  //#region src/entities/audit-log/fields.d.ts
38
- declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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
+ declare const QuerySortAuditLogs: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
39
40
  type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
40
41
  declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
41
42
  type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
@@ -127,7 +128,7 @@ declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
127
128
  readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
128
129
  readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
129
130
  readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
130
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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
+ readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "path" | "url" | "method" | "request_id" | "ipaddress" | "user_agent" | "route_path" | "route_handler" | "actor_type" | "actor_id" | "actor_email" | "entity_action" | "entity_content_type" | "entity_id" | "entity_label">>;
131
132
  }, undefined>;
132
133
  type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
133
134
  //#endregion