@getcommunity/gc-validators 0.0.269 → 0.0.271-alpha.0

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 (334) hide show
  1. package/README.md +2 -40
  2. package/dist/base/index.cjs +106 -0
  3. package/dist/base/index.d.cts +5 -0
  4. package/dist/base/index.d.mts +5 -0
  5. package/dist/base/index.mjs +21 -0
  6. package/dist/component-BPHZTfVY.mjs +6 -0
  7. package/dist/component-DLjTD_qK.cjs +19 -0
  8. package/dist/components/blocks/index.cjs +207 -0
  9. package/dist/components/blocks/index.d.cts +1322 -0
  10. package/dist/components/blocks/index.d.mts +1322 -0
  11. package/dist/components/blocks/index.mjs +175 -0
  12. package/dist/components/brand/index.cjs +37 -0
  13. package/dist/components/brand/index.d.cts +315 -0
  14. package/dist/components/brand/index.d.mts +315 -0
  15. package/dist/components/brand/index.mjs +31 -0
  16. package/dist/components/forms/index.cjs +70 -0
  17. package/dist/components/forms/index.d.cts +333 -0
  18. package/dist/components/forms/index.d.mts +333 -0
  19. package/dist/components/forms/index.mjs +58 -0
  20. package/dist/components/shared/index.cjs +127 -0
  21. package/dist/components/shared/index.d.cts +917 -0
  22. package/dist/components/shared/index.d.mts +917 -0
  23. package/dist/components/shared/index.mjs +107 -0
  24. package/dist/components/slideshow/index.cjs +129 -0
  25. package/dist/components/slideshow/index.d.cts +742 -0
  26. package/dist/components/slideshow/index.d.mts +742 -0
  27. package/dist/components/slideshow/index.mjs +106 -0
  28. package/dist/components/utm/index.cjs +55 -0
  29. package/dist/components/utm/index.d.cts +32 -0
  30. package/dist/components/utm/index.d.mts +32 -0
  31. package/dist/components/utm/index.mjs +47 -0
  32. package/dist/constants/index.cjs +243 -0
  33. package/dist/constants/index.d.cts +197 -0
  34. package/dist/constants/index.d.mts +197 -0
  35. package/dist/constants/index.mjs +182 -0
  36. package/dist/constants-L2goO7Eg.mjs +85 -0
  37. package/dist/constants-PBZKggHL.cjs +102 -0
  38. package/dist/document-BAro2Mrj.cjs +18 -0
  39. package/dist/document-BAzLIprH.d.mts +100 -0
  40. package/dist/document-BFukanLe.mjs +54 -0
  41. package/dist/document-BK1ASowb.d.cts +17 -0
  42. package/dist/document-BMxLOdrT.d.cts +267 -0
  43. package/dist/document-BNoXPGwF.d.mts +27 -0
  44. package/dist/document-B_pJW777.d.mts +30 -0
  45. package/dist/document-Bd2AyLs8.d.mts +16 -0
  46. package/dist/document-BezYxNmb.d.cts +16 -0
  47. package/dist/document-Bj7SRTOn.d.cts +18 -0
  48. package/dist/document-Bo869pZx.d.mts +18 -0
  49. package/dist/document-Bpr9mbCs.d.mts +15 -0
  50. package/dist/document-Bqoi1MdT.mjs +11 -0
  51. package/dist/document-Bs8c1mok.d.cts +15 -0
  52. package/dist/document-C0c7azOe.d.mts +434 -0
  53. package/dist/document-CTTDXzOF.mjs +13 -0
  54. package/dist/document-CUl_Ys6-.mjs +23 -0
  55. package/dist/document-CWYzG60q.d.cts +19 -0
  56. package/dist/document-Ccszj8lR.cjs +20 -0
  57. package/dist/document-CjNHI7Eb.d.cts +27 -0
  58. package/dist/document-Cu_HUDC5.mjs +51 -0
  59. package/dist/document-D-KvyEb5.d.cts +238 -0
  60. package/dist/document-D2nLVGig.d.mts +238 -0
  61. package/dist/document-D5yDIDIx.d.mts +15 -0
  62. package/dist/document-D73dqRle.d.cts +19 -0
  63. package/dist/document-DA6YVZz-.d.cts +100 -0
  64. package/dist/document-DJ0YiVte.d.cts +30 -0
  65. package/dist/document-DMHIUE3J.d.mts +17 -0
  66. package/dist/document-DN3g0EFx.d.cts +434 -0
  67. package/dist/document-DWapIF7V.d.cts +12223 -0
  68. package/dist/document-DYzRVV1C.d.mts +16 -0
  69. package/dist/document-D_ZMbzn6.d.cts +18 -0
  70. package/dist/document-DeoRGh7p.d.mts +19 -0
  71. package/dist/document-DsIPBTG8.cjs +30 -0
  72. package/dist/document-DsSaMVGb.cjs +106 -0
  73. package/dist/document-Gx2Vrg_w.d.mts +267 -0
  74. package/dist/document-IIJpsOIO.d.cts +16 -0
  75. package/dist/document-WHS8GHY5.d.mts +18 -0
  76. package/dist/document-dqrWptdY.d.cts +244 -0
  77. package/dist/document-hEBlSep8.d.cts +15 -0
  78. package/dist/document-qcC-10Nd.d.mts +12223 -0
  79. package/dist/document-rbMXLGxt.cjs +103 -0
  80. package/dist/document-si7GYS5g.d.mts +19 -0
  81. package/dist/document-vq-7rcU5.d.mts +244 -0
  82. package/dist/entities/audit-log/index.cjs +127 -0
  83. package/dist/entities/audit-log/index.d.cts +134 -0
  84. package/dist/entities/audit-log/index.d.mts +134 -0
  85. package/dist/entities/audit-log/index.mjs +115 -0
  86. package/dist/entities/blog-page/index.cjs +16 -0
  87. package/dist/entities/blog-page/index.d.cts +257 -0
  88. package/dist/entities/blog-page/index.d.mts +257 -0
  89. package/dist/entities/blog-page/index.mjs +13 -0
  90. package/dist/entities/blog-post/index.cjs +33 -0
  91. package/dist/entities/blog-post/index.d.cts +917 -0
  92. package/dist/entities/blog-post/index.d.mts +917 -0
  93. package/dist/entities/blog-post/index.mjs +21 -0
  94. package/dist/entities/careers-page/index.cjs +16 -0
  95. package/dist/entities/careers-page/index.d.cts +257 -0
  96. package/dist/entities/careers-page/index.d.mts +257 -0
  97. package/dist/entities/careers-page/index.mjs +13 -0
  98. package/dist/entities/category/index.cjs +63 -0
  99. package/dist/entities/category/index.d.cts +300 -0
  100. package/dist/entities/category/index.d.mts +300 -0
  101. package/dist/entities/category/index.mjs +52 -0
  102. package/dist/entities/client/index.cjs +96 -0
  103. package/dist/entities/client/index.d.cts +85 -0
  104. package/dist/entities/client/index.d.mts +85 -0
  105. package/dist/entities/client/index.mjs +83 -0
  106. package/dist/entities/client-content-pillar/index.cjs +70 -0
  107. package/dist/entities/client-content-pillar/index.d.cts +49 -0
  108. package/dist/entities/client-content-pillar/index.d.mts +49 -0
  109. package/dist/entities/client-content-pillar/index.mjs +59 -0
  110. package/dist/entities/client-media-platform/index.cjs +74 -0
  111. package/dist/entities/client-media-platform/index.d.cts +53 -0
  112. package/dist/entities/client-media-platform/index.d.mts +53 -0
  113. package/dist/entities/client-media-platform/index.mjs +63 -0
  114. package/dist/entities/client-project/index.cjs +205 -0
  115. package/dist/entities/client-project/index.d.cts +147 -0
  116. package/dist/entities/client-project/index.d.mts +147 -0
  117. package/dist/entities/client-project/index.mjs +188 -0
  118. package/dist/entities/client-report/index.cjs +82 -0
  119. package/dist/entities/client-report/index.d.cts +63 -0
  120. package/dist/entities/client-report/index.d.mts +63 -0
  121. package/dist/entities/client-report/index.mjs +71 -0
  122. package/dist/entities/client-styleguide/index.cjs +77 -0
  123. package/dist/entities/client-styleguide/index.d.cts +48 -0
  124. package/dist/entities/client-styleguide/index.d.mts +48 -0
  125. package/dist/entities/client-styleguide/index.mjs +66 -0
  126. package/dist/entities/client-user/index.cjs +78 -0
  127. package/dist/entities/client-user/index.d.cts +47 -0
  128. package/dist/entities/client-user/index.d.mts +47 -0
  129. package/dist/entities/client-user/index.mjs +64 -0
  130. package/dist/entities/comment/index.cjs +137 -0
  131. package/dist/entities/comment/index.d.cts +2 -0
  132. package/dist/entities/comment/index.d.mts +2 -0
  133. package/dist/entities/comment/index.mjs +116 -0
  134. package/dist/entities/content-pillar/index.cjs +59 -0
  135. package/dist/entities/content-pillar/index.d.cts +50 -0
  136. package/dist/entities/content-pillar/index.d.mts +50 -0
  137. package/dist/entities/content-pillar/index.mjs +48 -0
  138. package/dist/entities/faq-page/index.cjs +17 -0
  139. package/dist/entities/faq-page/index.d.cts +335 -0
  140. package/dist/entities/faq-page/index.d.mts +335 -0
  141. package/dist/entities/faq-page/index.mjs +14 -0
  142. package/dist/entities/formatter/index.cjs +258 -0
  143. package/dist/entities/formatter/index.d.cts +121 -0
  144. package/dist/entities/formatter/index.d.mts +121 -0
  145. package/dist/entities/formatter/index.mjs +233 -0
  146. package/dist/entities/gcflytour/index.cjs +79 -0
  147. package/dist/entities/gcflytour/index.d.cts +61 -0
  148. package/dist/entities/gcflytour/index.d.mts +61 -0
  149. package/dist/entities/gcflytour/index.mjs +68 -0
  150. package/dist/entities/gcflytour-snap/index.cjs +78 -0
  151. package/dist/entities/gcflytour-snap/index.d.cts +59 -0
  152. package/dist/entities/gcflytour-snap/index.d.mts +59 -0
  153. package/dist/entities/gcflytour-snap/index.mjs +67 -0
  154. package/dist/entities/landing-page/index.cjs +28 -0
  155. package/dist/entities/landing-page/index.d.cts +479 -0
  156. package/dist/entities/landing-page/index.d.mts +479 -0
  157. package/dist/entities/landing-page/index.mjs +25 -0
  158. package/dist/entities/lead/index.cjs +63 -0
  159. package/dist/entities/lead/index.d.cts +75 -0
  160. package/dist/entities/lead/index.d.mts +75 -0
  161. package/dist/entities/lead/index.mjs +57 -0
  162. package/dist/entities/media-content-type/index.cjs +100 -0
  163. package/dist/entities/media-content-type/index.d.cts +66 -0
  164. package/dist/entities/media-content-type/index.d.mts +66 -0
  165. package/dist/entities/media-content-type/index.mjs +89 -0
  166. package/dist/entities/media-creative-format/index.cjs +79 -0
  167. package/dist/entities/media-creative-format/index.d.cts +54 -0
  168. package/dist/entities/media-creative-format/index.d.mts +54 -0
  169. package/dist/entities/media-creative-format/index.mjs +68 -0
  170. package/dist/entities/media-medium/index.cjs +90 -0
  171. package/dist/entities/media-medium/index.d.cts +77 -0
  172. package/dist/entities/media-medium/index.d.mts +77 -0
  173. package/dist/entities/media-medium/index.mjs +79 -0
  174. package/dist/entities/media-platform/index.cjs +118 -0
  175. package/dist/entities/media-platform/index.d.cts +74 -0
  176. package/dist/entities/media-platform/index.d.mts +74 -0
  177. package/dist/entities/media-platform/index.mjs +107 -0
  178. package/dist/entities/monday-workspace/index.cjs +66 -0
  179. package/dist/entities/monday-workspace/index.d.cts +47 -0
  180. package/dist/entities/monday-workspace/index.d.mts +47 -0
  181. package/dist/entities/monday-workspace/index.mjs +55 -0
  182. package/dist/entities/newsletter-signup/index.cjs +67 -0
  183. package/dist/entities/newsletter-signup/index.d.cts +76 -0
  184. package/dist/entities/newsletter-signup/index.d.mts +76 -0
  185. package/dist/entities/newsletter-signup/index.mjs +60 -0
  186. package/dist/entities/policy-page/index.cjs +23 -0
  187. package/dist/entities/policy-page/index.d.cts +331 -0
  188. package/dist/entities/policy-page/index.d.mts +331 -0
  189. package/dist/entities/policy-page/index.mjs +20 -0
  190. package/dist/entities/product/index.cjs +28 -0
  191. package/dist/entities/product/index.d.cts +325 -0
  192. package/dist/entities/product/index.d.mts +325 -0
  193. package/dist/entities/product/index.mjs +23 -0
  194. package/dist/entities/product-highlight/index.cjs +28 -0
  195. package/dist/entities/product-highlight/index.d.cts +245 -0
  196. package/dist/entities/product-highlight/index.d.mts +245 -0
  197. package/dist/entities/product-highlight/index.mjs +23 -0
  198. package/dist/entities/resume/index.cjs +129 -0
  199. package/dist/entities/resume/index.d.cts +198 -0
  200. package/dist/entities/resume/index.d.mts +198 -0
  201. package/dist/entities/resume/index.mjs +119 -0
  202. package/dist/entities/sharpspring/index.cjs +19 -0
  203. package/dist/entities/sharpspring/index.d.cts +16 -0
  204. package/dist/entities/sharpspring/index.d.mts +16 -0
  205. package/dist/entities/sharpspring/index.mjs +16 -0
  206. package/dist/entities/tag/index.cjs +61 -0
  207. package/dist/entities/tag/index.d.cts +54 -0
  208. package/dist/entities/tag/index.d.mts +54 -0
  209. package/dist/entities/tag/index.mjs +50 -0
  210. package/dist/entities/team-member/index.cjs +29 -0
  211. package/dist/entities/team-member/index.d.cts +210 -0
  212. package/dist/entities/team-member/index.d.mts +210 -0
  213. package/dist/entities/team-member/index.mjs +17 -0
  214. package/dist/entities/team-page/index.cjs +16 -0
  215. package/dist/entities/team-page/index.d.cts +257 -0
  216. package/dist/entities/team-page/index.d.mts +257 -0
  217. package/dist/entities/team-page/index.mjs +13 -0
  218. package/dist/entities/teamwork/index.cjs +74 -0
  219. package/dist/entities/teamwork/index.d.cts +512 -0
  220. package/dist/entities/teamwork/index.d.mts +512 -0
  221. package/dist/entities/teamwork/index.mjs +68 -0
  222. package/dist/entities/trend/index.cjs +34 -0
  223. package/dist/entities/trend/index.d.cts +347 -0
  224. package/dist/entities/trend/index.d.mts +347 -0
  225. package/dist/entities/trend/index.mjs +28 -0
  226. package/dist/entities/up-auth/index.cjs +56 -0
  227. package/dist/entities/up-auth/index.d.cts +2 -0
  228. package/dist/entities/up-auth/index.d.mts +2 -0
  229. package/dist/entities/up-auth/index.mjs +44 -0
  230. package/dist/entities/up-permission/index.cjs +12 -0
  231. package/dist/entities/up-permission/index.d.cts +14 -0
  232. package/dist/entities/up-permission/index.d.mts +14 -0
  233. package/dist/entities/up-permission/index.mjs +9 -0
  234. package/dist/entities/up-role/index.cjs +28 -0
  235. package/dist/entities/up-role/index.d.cts +7 -0
  236. package/dist/entities/up-role/index.d.mts +7 -0
  237. package/dist/entities/up-role/index.mjs +23 -0
  238. package/dist/entities/up-user/index.cjs +64 -0
  239. package/dist/entities/up-user/index.d.cts +38 -0
  240. package/dist/entities/up-user/index.d.mts +38 -0
  241. package/dist/entities/up-user/index.mjs +54 -0
  242. package/dist/entities/upload/index.cjs +35 -0
  243. package/dist/entities/upload/index.d.cts +31 -0
  244. package/dist/entities/upload/index.d.mts +31 -0
  245. package/dist/entities/upload/index.mjs +29 -0
  246. package/dist/entities/url-redirect/index.cjs +67 -0
  247. package/dist/entities/url-redirect/index.d.cts +45 -0
  248. package/dist/entities/url-redirect/index.d.mts +45 -0
  249. package/dist/entities/url-redirect/index.mjs +54 -0
  250. package/dist/entities/user-account/index.cjs +48 -0
  251. package/dist/entities/user-account/index.d.cts +39 -0
  252. package/dist/entities/user-account/index.d.mts +39 -0
  253. package/dist/entities/user-account/index.mjs +39 -0
  254. package/dist/entities/utm-link-builder/index.cjs +84 -0
  255. package/dist/entities/utm-link-builder/index.d.cts +191 -0
  256. package/dist/entities/utm-link-builder/index.d.mts +191 -0
  257. package/dist/entities/utm-link-builder/index.mjs +76 -0
  258. package/dist/entities/utm-meta/index.cjs +19 -0
  259. package/dist/entities/utm-meta/index.d.cts +83 -0
  260. package/dist/entities/utm-meta/index.d.mts +83 -0
  261. package/dist/entities/utm-meta/index.mjs +16 -0
  262. package/dist/entities/utm-tracking-link/index.cjs +199 -0
  263. package/dist/entities/utm-tracking-link/index.d.cts +235 -0
  264. package/dist/entities/utm-tracking-link/index.d.mts +235 -0
  265. package/dist/entities/utm-tracking-link/index.mjs +184 -0
  266. package/dist/fields-BQHSYj70.d.cts +7 -0
  267. package/dist/fields-qx-5saY5.d.mts +7 -0
  268. package/dist/fonts-CGSHKgp0.cjs +125 -0
  269. package/dist/fonts-tMy55UFs.mjs +58 -0
  270. package/dist/index-CPUGB8lZ.d.mts +95 -0
  271. package/dist/index-DDYmaYSm.d.mts +200 -0
  272. package/dist/index-Dl6KBLdT.d.mts +422 -0
  273. package/dist/index-DmLVZdb3.d.cts +200 -0
  274. package/dist/index-Dv9bgrpo.d.cts +422 -0
  275. package/dist/index-H4RC0v4h.d.cts +95 -0
  276. package/dist/json-BJ8GyrtC.d.cts +9 -0
  277. package/dist/json-BgewUW_1.cjs +19 -0
  278. package/dist/json-CTduX6Ak.mjs +12 -0
  279. package/dist/json-CqAaKeHA.d.mts +9 -0
  280. package/dist/media-upload-B6aQYeRM.cjs +59 -0
  281. package/dist/media-upload-DiRJksSU.mjs +40 -0
  282. package/dist/pagination-4pZafglS.cjs +23 -0
  283. package/dist/pagination-owwfYJS6.mjs +6 -0
  284. package/dist/{permissions.cjs → permissions/index.cjs} +6 -89
  285. package/dist/permissions/index.d.cts +2 -0
  286. package/dist/permissions/index.d.mts +2 -0
  287. package/dist/{permissions.mjs → permissions/index.mjs} +3 -86
  288. package/dist/query.schema-BOn5Kk_p.d.mts +41 -0
  289. package/dist/query.schema-CItKlb0x.d.cts +41 -0
  290. package/dist/query.schema-DHTf6rTw.cjs +95 -0
  291. package/dist/query.schema-YKoOuBnk.mjs +40 -0
  292. package/dist/regex-BnKGcdS4.mjs +55 -0
  293. package/dist/regex-Cl5goNwp.cjs +342 -0
  294. package/dist/relations-C04F46xL.mjs +41 -0
  295. package/dist/relations-CGu18hfT.cjs +90 -0
  296. package/dist/response-C-7nyNVD.d.mts +57 -0
  297. package/dist/response-c6SgLvi9.d.cts +57 -0
  298. package/dist/strapi-C0DtxJLD.mjs +9 -0
  299. package/dist/strapi-C7POOPEf.cjs +34 -0
  300. package/dist/strapi-COeswSwJ.mjs +49 -0
  301. package/dist/strapi-DmhV7ODq.cjs +72 -0
  302. package/dist/theme-Ba9vW4PA.cjs +230 -0
  303. package/dist/theme-BhQd4eMI.mjs +97 -0
  304. package/dist/{utilities.cjs → utilities/index.cjs} +9 -28
  305. package/dist/utilities/index.d.cts +24 -0
  306. package/dist/utilities/index.d.mts +24 -0
  307. package/dist/{utilities.mjs → utilities/index.mjs} +9 -25
  308. package/dist/validators-Bc9Is5Sr.cjs +222 -0
  309. package/dist/validators-P5E_3qzc.mjs +95 -0
  310. package/package.json +64 -40
  311. package/dist/constants.cjs +0 -461
  312. package/dist/constants.d.cts +0 -2
  313. package/dist/constants.d.mts +0 -2
  314. package/dist/constants.mjs +0 -353
  315. package/dist/index-CiWVYf_f.d.cts +0 -291
  316. package/dist/index-CnH0p5DO.d.mts +0 -4509
  317. package/dist/index-Cs4i8IvA.d.cts +0 -4509
  318. package/dist/index-DOR_It7I.d.mts +0 -291
  319. package/dist/index.cjs +0 -384
  320. package/dist/index.d.cts +0 -3
  321. package/dist/index.d.mts +0 -3
  322. package/dist/index.mjs +0 -6
  323. package/dist/permissions.d.cts +0 -2
  324. package/dist/permissions.d.mts +0 -2
  325. package/dist/schemas.cjs +0 -2326
  326. package/dist/schemas.d.cts +0 -2
  327. package/dist/schemas.d.mts +0 -2
  328. package/dist/schemas.mjs +0 -2068
  329. package/dist/types.cjs +0 -0
  330. package/dist/types.d.cts +0 -2
  331. package/dist/types.d.mts +0 -2
  332. package/dist/types.mjs +0 -1
  333. package/dist/utilities.d.cts +0 -2
  334. package/dist/utilities.d.mts +0 -2
@@ -0,0 +1,47 @@
1
+ import { m as ClientEntityScope, n as ClientUserDocumentStatus, t as ClientUserDocument } from "../../document-qcC-10Nd.mjs";
2
+ import * as v from "valibot";
3
+
4
+ //#region src/entities/client-user/constants.d.ts
5
+ declare const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
6
+ declare const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
7
+ declare const CLIENT_USER_SORT_KEYS: readonly ["id", "client.title", "client.teamwork_id", "client.teamwork_name", "client.is_active", "client.allow_create_utm_link", "client.is_paid_media", "client.is_organic_social", "user.username", "user.email", "user.confirmed", "user.blocked", "createdAt", "updatedAt"];
8
+ //#endregion
9
+ //#region src/entities/client-user/fields.d.ts
10
+ declare const QuerySortClientUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "client.title:ASC" | "client.teamwork_id:ASC" | "client.teamwork_name:ASC" | "client.is_active:ASC" | "client.allow_create_utm_link:ASC" | "client.is_paid_media:ASC" | "client.is_organic_social:ASC" | "user.username:ASC" | "user.email:ASC" | "user.confirmed:ASC" | "user.blocked:ASC" | "client.title:DESC" | "client.teamwork_id:DESC" | "client.teamwork_name:DESC" | "client.is_active:DESC" | "client.allow_create_utm_link:DESC" | "client.is_paid_media:DESC" | "client.is_organic_social:DESC" | "user.username:DESC" | "user.email:DESC" | "user.confirmed:DESC" | "user.blocked:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "client.title:ASC" | "client.teamwork_id:ASC" | "client.teamwork_name:ASC" | "client.is_active:ASC" | "client.allow_create_utm_link:ASC" | "client.is_paid_media:ASC" | "client.is_organic_social:ASC" | "user.username:ASC" | "user.email:ASC" | "user.confirmed:ASC" | "user.blocked:ASC" | "client.title:DESC" | "client.teamwork_id:DESC" | "client.teamwork_name:DESC" | "client.is_active:DESC" | "client.allow_create_utm_link:DESC" | "client.is_paid_media:DESC" | "client.is_organic_social:DESC" | "user.username:DESC" | "user.email:DESC" | "user.confirmed:DESC" | "user.blocked:DESC")[], 14, undefined>]>, undefined>;
11
+ type QuerySortClientUsers = v.InferOutput<typeof QuerySortClientUsers>;
12
+ declare const ClientUserScope: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<ClientEntityScope[], undefined>]>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>;
13
+ type ClientUserScope = v.InferOutput<typeof ClientUserScope>;
14
+ //#endregion
15
+ //#region src/entities/client-user/mutation.d.ts
16
+ declare const CreateClientUserDocument: v.ObjectSchema<{
17
+ readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
18
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<ClientEntityScope[], undefined>]>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>;
20
+ }, undefined>;
21
+ type CreateClientUserDocument = v.InferOutput<typeof CreateClientUserDocument>;
22
+ declare const UpdateClientUserDocument: v.ObjectSchema<{
23
+ readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<ClientEntityScope[], undefined>]>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>;
24
+ }, undefined>;
25
+ type UpdateClientUserDocument = v.InferOutput<typeof UpdateClientUserDocument>;
26
+ declare const UpdateClientUserDocumentRequest: v.ObjectSchema<{
27
+ readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
28
+ readonly data: v.ObjectSchema<{
29
+ readonly scopes: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<ClientEntityScope[], undefined>]>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>;
30
+ }, undefined>;
31
+ }, undefined>;
32
+ type UpdateClientUserDocumentRequest = v.InferOutput<typeof UpdateClientUserDocumentRequest>;
33
+ declare const SVerifyClientUserDocument: v.ObjectSchema<{
34
+ readonly client: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
35
+ readonly user: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
36
+ }, undefined>;
37
+ type SVerifyClientUserDocument = v.InferOutput<typeof SVerifyClientUserDocument>;
38
+ //#endregion
39
+ //#region src/entities/client-user/query.d.ts
40
+ declare const SQueryListClientUserDocuments: v.ObjectSchema<{
41
+ readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
42
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
43
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
44
+ }, undefined>;
45
+ type SQueryListClientUserDocuments = v.InferOutput<typeof SQueryListClientUserDocuments>;
46
+ //#endregion
47
+ export { CLIENT_USER_SORT_KEYS, ClientUserDocument, ClientUserDocumentStatus, ClientUserScope, CreateClientUserDocument, LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT, LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, QuerySortClientUsers, SQueryListClientUserDocuments, SVerifyClientUserDocument, UpdateClientUserDocument, UpdateClientUserDocumentRequest };
@@ -0,0 +1,64 @@
1
+ import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
2
+ import { i as VSize, r as VPage } from "../../validators-P5E_3qzc.mjs";
3
+ import { a as SAssociateOneEntity } from "../../relations-C04F46xL.mjs";
4
+ import { r as CLIENT_ENTITY_SCOPES } from "../../constants-L2goO7Eg.mjs";
5
+ import * as v from "valibot";
6
+ //#region src/entities/client-user/constants.ts
7
+ const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
8
+ const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
9
+ const CLIENT_USER_SORT_KEYS = [
10
+ "id",
11
+ "client.title",
12
+ "client.teamwork_id",
13
+ "client.teamwork_name",
14
+ "client.is_active",
15
+ "client.allow_create_utm_link",
16
+ "client.is_paid_media",
17
+ "client.is_organic_social",
18
+ "user.username",
19
+ "user.email",
20
+ "user.confirmed",
21
+ "user.blocked",
22
+ "createdAt",
23
+ "updatedAt"
24
+ ];
25
+ //#endregion
26
+ //#region src/entities/client-user/fields.ts
27
+ const QuerySortClientUsers = v.optional(v.pipe(v.array(v.picklist(CLIENT_USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CLIENT_USER_SORT_KEYS.length)));
28
+ const ClientUserScope = v.pipe(v.array(v.pipe(v.string(), v.picklist(CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), v.maxLength(CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."));
29
+ //#endregion
30
+ //#region src/entities/client-user/document.ts
31
+ const ClientUserDocument = v.object({
32
+ ...BaseDocument.entries,
33
+ scopes: v.array(ClientUserScope)
34
+ });
35
+ const ClientUserDocumentStatus = v.object({
36
+ verified: v.boolean(),
37
+ clientUser: v.nullable(v.lazy(() => ClientUserDocument)),
38
+ scopes: ClientUserScope
39
+ });
40
+ //#endregion
41
+ //#region src/entities/client-user/mutation.ts
42
+ const CreateClientUserDocument = v.object({
43
+ client: v.optional(SAssociateOneEntity),
44
+ user: v.optional(SAssociateOneEntity),
45
+ scopes: ClientUserScope
46
+ });
47
+ const UpdateClientUserDocument = v.object({ scopes: ClientUserScope });
48
+ const UpdateClientUserDocumentRequest = v.object({
49
+ documentId: SAssociateOneEntity,
50
+ data: UpdateClientUserDocument
51
+ });
52
+ const SVerifyClientUserDocument = v.object({
53
+ client: SAssociateOneEntity,
54
+ user: SAssociateOneEntity
55
+ });
56
+ //#endregion
57
+ //#region src/entities/client-user/query.ts
58
+ const SQueryListClientUserDocuments = v.object({
59
+ documentId: SAssociateOneEntity,
60
+ page: VPage(),
61
+ size: VSize(100)
62
+ });
63
+ //#endregion
64
+ export { CLIENT_USER_SORT_KEYS, ClientUserDocument, ClientUserDocumentStatus, ClientUserScope, CreateClientUserDocument, LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT, LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, QuerySortClientUsers, SQueryListClientUserDocuments, SVerifyClientUserDocument, UpdateClientUserDocument, UpdateClientUserDocumentRequest };
@@ -0,0 +1,137 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
+ const require_document = require("../../document-BAro2Mrj.cjs");
4
+ const require_pagination = require("../../pagination-4pZafglS.cjs");
5
+ const require_regex = require("../../regex-Cl5goNwp.cjs");
6
+ const require_validators = require("../../validators-Bc9Is5Sr.cjs");
7
+ let valibot = require("valibot");
8
+ valibot = require_chunk.__toESM(valibot, 1);
9
+ //#region src/entities/comment/constants.ts
10
+ const REPORT_COMMENT_REASON = {
11
+ BAD_LANGUAGE: "BAD_LANGUAGE",
12
+ DISCRIMINATION: "DISCRIMINATION",
13
+ OTHER: "OTHER"
14
+ };
15
+ const REPORT_COMMENT_REASON_OPTIONS = Object.values(REPORT_COMMENT_REASON);
16
+ const COMMENT_APPROVAL_STATUS = {
17
+ PENDING: "PENDING",
18
+ APPROVED: "APPROVED",
19
+ REJECTED: "REJECTED"
20
+ };
21
+ const COMMENT_APPROVAL_STATUS_VALUES = Object.values(COMMENT_APPROVAL_STATUS);
22
+ const STRAPI_COMMENT_SORT_KEYS = [
23
+ "id",
24
+ "content",
25
+ "blocked",
26
+ "blockedThread",
27
+ "approvalStatus",
28
+ "createdAt",
29
+ "updatedAt"
30
+ ];
31
+ //#endregion
32
+ //#region src/entities/comment/fields.ts
33
+ const CommentApprovalStatus = valibot.picklist(COMMENT_APPROVAL_STATUS_VALUES);
34
+ const ReportCommentReason = valibot.picklist(REPORT_COMMENT_REASON_OPTIONS);
35
+ const QuerySortStrapiComments = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(STRAPI_COMMENT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(STRAPI_COMMENT_SORT_KEYS.length)));
36
+ //#endregion
37
+ //#region src/entities/comment/document.ts
38
+ const CommentAuthor = valibot.object({
39
+ id: valibot.string(),
40
+ name: valibot.string()
41
+ });
42
+ const CommentThread = valibot.object({ id: valibot.string() });
43
+ const CommentDocument = valibot.object({
44
+ id: valibot.string(),
45
+ documentId: valibot.string(),
46
+ createdAt: valibot.string(),
47
+ updatedAt: valibot.string(),
48
+ content: valibot.string(),
49
+ blocked: valibot.nullable(valibot.boolean()),
50
+ blockedThread: valibot.nullable(valibot.boolean()),
51
+ removed: valibot.nullable(valibot.boolean()),
52
+ approvalStatus: valibot.nullable(CommentApprovalStatus),
53
+ author: valibot.nullable(CommentAuthor),
54
+ threadOf: valibot.nullable(CommentThread),
55
+ children: valibot.nullable(valibot.array(valibot.lazy(() => CommentDocument)))
56
+ });
57
+ const CommentReportDocument = valibot.object({
58
+ ...require_document.BaseDocument.entries,
59
+ content: valibot.string(),
60
+ reason: valibot.nullable(ReportCommentReason),
61
+ related: valibot.nullable(valibot.array(valibot.lazy(() => CommentDocument))),
62
+ resolved: valibot.optional(valibot.nullable(valibot.boolean()))
63
+ });
64
+ //#endregion
65
+ //#region src/entities/comment/mutation.ts
66
+ const CreateCommentDocument = valibot.object({
67
+ relation: require_validators.VStringMinMax(1, 255),
68
+ content: require_validators.VStringMinMax(1, require_regex.LIMIT_LONG_STRING_MAX_LENGTH),
69
+ author: valibot.object({
70
+ id: valibot.number(),
71
+ name: require_validators.VStringMinMax(1, 255)
72
+ }),
73
+ threadOf: valibot.optional(valibot.number())
74
+ });
75
+ const UpdateCommentDocument = valibot.object({
76
+ relation: require_validators.VStringMinMax(1, 255),
77
+ id: valibot.number(),
78
+ content: require_validators.VStringMinMax(1, require_regex.LIMIT_LONG_STRING_MAX_LENGTH),
79
+ author: valibot.object({ id: valibot.number() })
80
+ });
81
+ const SDeleteCommentDocument = valibot.object({
82
+ relation: require_validators.VStringMinMax(1, 255),
83
+ id: valibot.number(),
84
+ author: valibot.object({ id: valibot.number() })
85
+ });
86
+ const SReportCommentDocument = valibot.object({
87
+ relation: require_validators.VStringMinMax(1, 255),
88
+ commentId: valibot.number(),
89
+ content: require_validators.VStringMinMax(1, require_regex.LIMIT_LONG_STRING_MAX_LENGTH),
90
+ reason: valibot.picklist(REPORT_COMMENT_REASON_OPTIONS, "You must select a valid reason for reporting this comment.")
91
+ });
92
+ //#endregion
93
+ //#region src/entities/comment/query.ts
94
+ const QueryFilterStrapiComments = valibot.object({
95
+ approvalStatus: valibot.optional(valibot.object({ eq: valibot.picklist(COMMENT_APPROVAL_STATUS_VALUES) })),
96
+ authorName: valibot.optional(valibot.object({ containsi: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)) })),
97
+ authorEmail: valibot.optional(valibot.object({ containsi: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)) })),
98
+ blocked: valibot.optional(valibot.object({ eq: valibot.boolean() })),
99
+ blockedThread: valibot.optional(valibot.object({ eq: valibot.boolean() })),
100
+ content: valibot.optional(valibot.object({ containsi: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)) })),
101
+ removed: valibot.optional(valibot.object({ eq: valibot.boolean() }))
102
+ });
103
+ const QueryStrapiCommentsInHeirarchy = valibot.object({
104
+ relation: require_validators.VStringMinMax(1, 255),
105
+ sort: QuerySortStrapiComments,
106
+ filters: valibot.optional(QueryFilterStrapiComments),
107
+ nested_levels: valibot.optional(require_validators.VPage())
108
+ });
109
+ const QueryStrapiCommentsFlat = valibot.object({
110
+ relation: require_validators.VStringMinMax(1, 255),
111
+ filters: valibot.optional(QueryFilterStrapiComments),
112
+ pagination: valibot.optional(valibot.object({
113
+ page: require_validators.VPage(),
114
+ pageSize: valibot.optional(require_validators.VSize(require_pagination.LIMIT_PAGINATION_MAX_SIZE))
115
+ })),
116
+ sort: QuerySortStrapiComments
117
+ });
118
+ //#endregion
119
+ exports.COMMENT_APPROVAL_STATUS = COMMENT_APPROVAL_STATUS;
120
+ exports.COMMENT_APPROVAL_STATUS_VALUES = COMMENT_APPROVAL_STATUS_VALUES;
121
+ exports.CommentApprovalStatus = CommentApprovalStatus;
122
+ exports.CommentAuthor = CommentAuthor;
123
+ exports.CommentDocument = CommentDocument;
124
+ exports.CommentReportDocument = CommentReportDocument;
125
+ exports.CommentThread = CommentThread;
126
+ exports.CreateCommentDocument = CreateCommentDocument;
127
+ exports.QueryFilterStrapiComments = QueryFilterStrapiComments;
128
+ exports.QuerySortStrapiComments = QuerySortStrapiComments;
129
+ exports.QueryStrapiCommentsFlat = QueryStrapiCommentsFlat;
130
+ exports.QueryStrapiCommentsInHeirarchy = QueryStrapiCommentsInHeirarchy;
131
+ exports.REPORT_COMMENT_REASON = REPORT_COMMENT_REASON;
132
+ exports.REPORT_COMMENT_REASON_OPTIONS = REPORT_COMMENT_REASON_OPTIONS;
133
+ exports.ReportCommentReason = ReportCommentReason;
134
+ exports.SDeleteCommentDocument = SDeleteCommentDocument;
135
+ exports.SReportCommentDocument = SReportCommentDocument;
136
+ exports.STRAPI_COMMENT_SORT_KEYS = STRAPI_COMMENT_SORT_KEYS;
137
+ exports.UpdateCommentDocument = UpdateCommentDocument;
@@ -0,0 +1,2 @@
1
+ import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-DmLVZdb3.cjs";
2
+ export { COMMENT_APPROVAL_STATUS, COMMENT_APPROVAL_STATUS_VALUES, CommentApprovalStatus, CommentAuthor, CommentDocument, CommentReportDocument, CommentThread, CreateCommentDocument, QueryFilterStrapiComments, QuerySortStrapiComments, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, REPORT_COMMENT_REASON, REPORT_COMMENT_REASON_OPTIONS, ReportCommentReason, SDeleteCommentDocument, SReportCommentDocument, STRAPI_COMMENT_SORT_KEYS, UpdateCommentDocument };
@@ -0,0 +1,2 @@
1
+ import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-DDYmaYSm.mjs";
2
+ export { COMMENT_APPROVAL_STATUS, COMMENT_APPROVAL_STATUS_VALUES, CommentApprovalStatus, CommentAuthor, CommentDocument, CommentReportDocument, CommentThread, CreateCommentDocument, QueryFilterStrapiComments, QuerySortStrapiComments, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, REPORT_COMMENT_REASON, REPORT_COMMENT_REASON_OPTIONS, ReportCommentReason, SDeleteCommentDocument, SReportCommentDocument, STRAPI_COMMENT_SORT_KEYS, UpdateCommentDocument };
@@ -0,0 +1,116 @@
1
+ import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
2
+ import { n as LIMIT_PAGINATION_MAX_SIZE } from "../../pagination-owwfYJS6.mjs";
3
+ import { c as LIMIT_LONG_STRING_MAX_LENGTH } from "../../regex-BnKGcdS4.mjs";
4
+ import { d as VStringMinMax, i as VSize, r as VPage } from "../../validators-P5E_3qzc.mjs";
5
+ import * as v from "valibot";
6
+ //#region src/entities/comment/constants.ts
7
+ const REPORT_COMMENT_REASON = {
8
+ BAD_LANGUAGE: "BAD_LANGUAGE",
9
+ DISCRIMINATION: "DISCRIMINATION",
10
+ OTHER: "OTHER"
11
+ };
12
+ const REPORT_COMMENT_REASON_OPTIONS = Object.values(REPORT_COMMENT_REASON);
13
+ const COMMENT_APPROVAL_STATUS = {
14
+ PENDING: "PENDING",
15
+ APPROVED: "APPROVED",
16
+ REJECTED: "REJECTED"
17
+ };
18
+ const COMMENT_APPROVAL_STATUS_VALUES = Object.values(COMMENT_APPROVAL_STATUS);
19
+ const STRAPI_COMMENT_SORT_KEYS = [
20
+ "id",
21
+ "content",
22
+ "blocked",
23
+ "blockedThread",
24
+ "approvalStatus",
25
+ "createdAt",
26
+ "updatedAt"
27
+ ];
28
+ //#endregion
29
+ //#region src/entities/comment/fields.ts
30
+ const CommentApprovalStatus = v.picklist(COMMENT_APPROVAL_STATUS_VALUES);
31
+ const ReportCommentReason = v.picklist(REPORT_COMMENT_REASON_OPTIONS);
32
+ const QuerySortStrapiComments = v.optional(v.pipe(v.array(v.picklist(STRAPI_COMMENT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(STRAPI_COMMENT_SORT_KEYS.length)));
33
+ //#endregion
34
+ //#region src/entities/comment/document.ts
35
+ const CommentAuthor = v.object({
36
+ id: v.string(),
37
+ name: v.string()
38
+ });
39
+ const CommentThread = v.object({ id: v.string() });
40
+ const CommentDocument = v.object({
41
+ id: v.string(),
42
+ documentId: v.string(),
43
+ createdAt: v.string(),
44
+ updatedAt: v.string(),
45
+ content: v.string(),
46
+ blocked: v.nullable(v.boolean()),
47
+ blockedThread: v.nullable(v.boolean()),
48
+ removed: v.nullable(v.boolean()),
49
+ approvalStatus: v.nullable(CommentApprovalStatus),
50
+ author: v.nullable(CommentAuthor),
51
+ threadOf: v.nullable(CommentThread),
52
+ children: v.nullable(v.array(v.lazy(() => CommentDocument)))
53
+ });
54
+ const CommentReportDocument = v.object({
55
+ ...BaseDocument.entries,
56
+ content: v.string(),
57
+ reason: v.nullable(ReportCommentReason),
58
+ related: v.nullable(v.array(v.lazy(() => CommentDocument))),
59
+ resolved: v.optional(v.nullable(v.boolean()))
60
+ });
61
+ //#endregion
62
+ //#region src/entities/comment/mutation.ts
63
+ const CreateCommentDocument = v.object({
64
+ relation: VStringMinMax(1, 255),
65
+ content: VStringMinMax(1, LIMIT_LONG_STRING_MAX_LENGTH),
66
+ author: v.object({
67
+ id: v.number(),
68
+ name: VStringMinMax(1, 255)
69
+ }),
70
+ threadOf: v.optional(v.number())
71
+ });
72
+ const UpdateCommentDocument = v.object({
73
+ relation: VStringMinMax(1, 255),
74
+ id: v.number(),
75
+ content: VStringMinMax(1, LIMIT_LONG_STRING_MAX_LENGTH),
76
+ author: v.object({ id: v.number() })
77
+ });
78
+ const SDeleteCommentDocument = v.object({
79
+ relation: VStringMinMax(1, 255),
80
+ id: v.number(),
81
+ author: v.object({ id: v.number() })
82
+ });
83
+ const SReportCommentDocument = v.object({
84
+ relation: VStringMinMax(1, 255),
85
+ commentId: v.number(),
86
+ content: VStringMinMax(1, LIMIT_LONG_STRING_MAX_LENGTH),
87
+ reason: v.picklist(REPORT_COMMENT_REASON_OPTIONS, "You must select a valid reason for reporting this comment.")
88
+ });
89
+ //#endregion
90
+ //#region src/entities/comment/query.ts
91
+ const QueryFilterStrapiComments = v.object({
92
+ approvalStatus: v.optional(v.object({ eq: v.picklist(COMMENT_APPROVAL_STATUS_VALUES) })),
93
+ authorName: v.optional(v.object({ containsi: v.pipe(v.string(), v.trim(), v.maxLength(255)) })),
94
+ authorEmail: v.optional(v.object({ containsi: v.pipe(v.string(), v.trim(), v.maxLength(255)) })),
95
+ blocked: v.optional(v.object({ eq: v.boolean() })),
96
+ blockedThread: v.optional(v.object({ eq: v.boolean() })),
97
+ content: v.optional(v.object({ containsi: v.pipe(v.string(), v.trim(), v.maxLength(255)) })),
98
+ removed: v.optional(v.object({ eq: v.boolean() }))
99
+ });
100
+ const QueryStrapiCommentsInHeirarchy = v.object({
101
+ relation: VStringMinMax(1, 255),
102
+ sort: QuerySortStrapiComments,
103
+ filters: v.optional(QueryFilterStrapiComments),
104
+ nested_levels: v.optional(VPage())
105
+ });
106
+ const QueryStrapiCommentsFlat = v.object({
107
+ relation: VStringMinMax(1, 255),
108
+ filters: v.optional(QueryFilterStrapiComments),
109
+ pagination: v.optional(v.object({
110
+ page: VPage(),
111
+ pageSize: v.optional(VSize(LIMIT_PAGINATION_MAX_SIZE))
112
+ })),
113
+ sort: QuerySortStrapiComments
114
+ });
115
+ //#endregion
116
+ export { COMMENT_APPROVAL_STATUS, COMMENT_APPROVAL_STATUS_VALUES, CommentApprovalStatus, CommentAuthor, CommentDocument, CommentReportDocument, CommentThread, CreateCommentDocument, QueryFilterStrapiComments, QuerySortStrapiComments, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, REPORT_COMMENT_REASON, REPORT_COMMENT_REASON_OPTIONS, ReportCommentReason, SDeleteCommentDocument, SReportCommentDocument, STRAPI_COMMENT_SORT_KEYS, UpdateCommentDocument };
@@ -0,0 +1,59 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
+ const require_regex = require("../../regex-Cl5goNwp.cjs");
4
+ const require_validators = require("../../validators-Bc9Is5Sr.cjs");
5
+ const require_relations = require("../../relations-CGu18hfT.cjs");
6
+ const require_document = require("../../document-Ccszj8lR.cjs");
7
+ let valibot = require("valibot");
8
+ valibot = require_chunk.__toESM(valibot, 1);
9
+ //#region src/entities/content-pillar/constants.ts
10
+ const LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = 100;
11
+ const LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = 1e3;
12
+ const CONTENT_PILLAR_SORT_KEYS = [
13
+ "id",
14
+ "title",
15
+ "slug",
16
+ "createdAt",
17
+ "updatedAt"
18
+ ];
19
+ //#endregion
20
+ //#region src/entities/content-pillar/fields.ts
21
+ const QuerySortContentPillars = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CONTENT_PILLAR_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CONTENT_PILLAR_SORT_KEYS.length)));
22
+ //#endregion
23
+ //#region src/entities/content-pillar/mutation.ts
24
+ const CreateContentPillarDocument = valibot.object({
25
+ title: require_validators.VStringMinMax(1, 255),
26
+ slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
27
+ description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
28
+ clients: valibot.optional(require_relations.SAssociateManyEntities)
29
+ });
30
+ const UpdateContentPillarDocument = valibot.object({
31
+ title: valibot.optional(require_validators.VStringMinMax(1, 255)),
32
+ slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
33
+ description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
34
+ clients: valibot.optional(require_relations.SAssociateManyEntities)
35
+ });
36
+ const UpdateContentPillarDocumentRequest = valibot.object({
37
+ documentId: require_relations.SAssociateOneEntity,
38
+ data: UpdateContentPillarDocument
39
+ });
40
+ //#endregion
41
+ //#region src/entities/content-pillar/query.ts
42
+ const QueryStrapiSearchContentPillars = valibot.object({
43
+ page: require_validators.VPage(),
44
+ size: require_validators.VSize(LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE),
45
+ title: valibot.optional(require_validators.VStringMax()),
46
+ slug: valibot.optional(require_validators.VStringMax()),
47
+ clients: valibot.optional(valibot.array(require_validators.VStringMax())),
48
+ sort: QuerySortContentPillars
49
+ });
50
+ //#endregion
51
+ exports.CONTENT_PILLAR_SORT_KEYS = CONTENT_PILLAR_SORT_KEYS;
52
+ exports.ContentPillarDocument = require_document.ContentPillarDocument;
53
+ exports.CreateContentPillarDocument = CreateContentPillarDocument;
54
+ exports.LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE;
55
+ exports.LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE;
56
+ exports.QuerySortContentPillars = QuerySortContentPillars;
57
+ exports.QueryStrapiSearchContentPillars = QueryStrapiSearchContentPillars;
58
+ exports.UpdateContentPillarDocument = UpdateContentPillarDocument;
59
+ exports.UpdateContentPillarDocumentRequest = UpdateContentPillarDocumentRequest;
@@ -0,0 +1,50 @@
1
+ import { t as ContentPillarDocument } from "../../document-CjNHI7Eb.cjs";
2
+ import * as v from "valibot";
3
+
4
+ //#region src/entities/content-pillar/constants.d.ts
5
+ declare const LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = 100;
6
+ declare const LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = 1000;
7
+ declare const CONTENT_PILLAR_SORT_KEYS: readonly ["id", "title", "slug", "createdAt", "updatedAt"];
8
+ //#endregion
9
+ //#region src/entities/content-pillar/fields.d.ts
10
+ declare const QuerySortContentPillars: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], 5, undefined>]>, undefined>;
11
+ type QuerySortContentPillars = v.InferOutput<typeof QuerySortContentPillars>;
12
+ //#endregion
13
+ //#region src/entities/content-pillar/mutation.d.ts
14
+ declare const CreateContentPillarDocument: v.ObjectSchema<{
15
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
16
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
17
+ readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
18
+ readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
19
+ }, undefined>;
20
+ type CreateContentPillarDocument = v.InferOutput<typeof CreateContentPillarDocument>;
21
+ declare const UpdateContentPillarDocument: v.ObjectSchema<{
22
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
24
+ readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
25
+ readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
26
+ }, undefined>;
27
+ type UpdateContentPillarDocument = v.InferOutput<typeof UpdateContentPillarDocument>;
28
+ declare const UpdateContentPillarDocumentRequest: v.ObjectSchema<{
29
+ readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
30
+ readonly data: v.ObjectSchema<{
31
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
33
+ readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
34
+ readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
35
+ }, undefined>;
36
+ }, undefined>;
37
+ type UpdateContentPillarDocumentRequest = v.InferOutput<typeof UpdateContentPillarDocumentRequest>;
38
+ //#endregion
39
+ //#region src/entities/content-pillar/query.d.ts
40
+ declare const QueryStrapiSearchContentPillars: v.ObjectSchema<{
41
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
42
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
43
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ readonly clients: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
46
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], 5, undefined>]>, undefined>;
47
+ }, undefined>;
48
+ type QueryStrapiSearchContentPillars = v.InferOutput<typeof QueryStrapiSearchContentPillars>;
49
+ //#endregion
50
+ export { CONTENT_PILLAR_SORT_KEYS, ContentPillarDocument, CreateContentPillarDocument, LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, QuerySortContentPillars, QueryStrapiSearchContentPillars, UpdateContentPillarDocument, UpdateContentPillarDocumentRequest };
@@ -0,0 +1,50 @@
1
+ import { t as ContentPillarDocument } from "../../document-BNoXPGwF.mjs";
2
+ import * as v from "valibot";
3
+
4
+ //#region src/entities/content-pillar/constants.d.ts
5
+ declare const LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = 100;
6
+ declare const LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = 1000;
7
+ declare const CONTENT_PILLAR_SORT_KEYS: readonly ["id", "title", "slug", "createdAt", "updatedAt"];
8
+ //#endregion
9
+ //#region src/entities/content-pillar/fields.d.ts
10
+ declare const QuerySortContentPillars: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], 5, undefined>]>, undefined>;
11
+ type QuerySortContentPillars = v.InferOutput<typeof QuerySortContentPillars>;
12
+ //#endregion
13
+ //#region src/entities/content-pillar/mutation.d.ts
14
+ declare const CreateContentPillarDocument: v.ObjectSchema<{
15
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
16
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
17
+ readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
18
+ readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
19
+ }, undefined>;
20
+ type CreateContentPillarDocument = v.InferOutput<typeof CreateContentPillarDocument>;
21
+ declare const UpdateContentPillarDocument: v.ObjectSchema<{
22
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
24
+ readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
25
+ readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
26
+ }, undefined>;
27
+ type UpdateContentPillarDocument = v.InferOutput<typeof UpdateContentPillarDocument>;
28
+ declare const UpdateContentPillarDocumentRequest: v.ObjectSchema<{
29
+ readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
30
+ readonly data: v.ObjectSchema<{
31
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
33
+ readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
34
+ readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
35
+ }, undefined>;
36
+ }, undefined>;
37
+ type UpdateContentPillarDocumentRequest = v.InferOutput<typeof UpdateContentPillarDocumentRequest>;
38
+ //#endregion
39
+ //#region src/entities/content-pillar/query.d.ts
40
+ declare const QueryStrapiSearchContentPillars: v.ObjectSchema<{
41
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
42
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
43
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ readonly clients: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
46
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:ASC" | "slug:DESC" | "title:ASC" | "title:DESC")[], 5, undefined>]>, undefined>;
47
+ }, undefined>;
48
+ type QueryStrapiSearchContentPillars = v.InferOutput<typeof QueryStrapiSearchContentPillars>;
49
+ //#endregion
50
+ export { CONTENT_PILLAR_SORT_KEYS, ContentPillarDocument, CreateContentPillarDocument, LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, QuerySortContentPillars, QueryStrapiSearchContentPillars, UpdateContentPillarDocument, UpdateContentPillarDocumentRequest };
@@ -0,0 +1,48 @@
1
+ import { n as ERROR_MESSAGE_REGEX_URL_SLUG, o as REGEX_URL_SLUG } from "../../regex-BnKGcdS4.mjs";
2
+ import { d as VStringMinMax, f as VStringMinMaxRegex, i as VSize, l as VStringMax, r as VPage } from "../../validators-P5E_3qzc.mjs";
3
+ import { a as SAssociateOneEntity, i as SAssociateManyEntities } from "../../relations-C04F46xL.mjs";
4
+ import { t as ContentPillarDocument } from "../../document-CTTDXzOF.mjs";
5
+ import * as v from "valibot";
6
+ //#region src/entities/content-pillar/constants.ts
7
+ const LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = 100;
8
+ const LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = 1e3;
9
+ const CONTENT_PILLAR_SORT_KEYS = [
10
+ "id",
11
+ "title",
12
+ "slug",
13
+ "createdAt",
14
+ "updatedAt"
15
+ ];
16
+ //#endregion
17
+ //#region src/entities/content-pillar/fields.ts
18
+ const QuerySortContentPillars = v.optional(v.pipe(v.array(v.picklist(CONTENT_PILLAR_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CONTENT_PILLAR_SORT_KEYS.length)));
19
+ //#endregion
20
+ //#region src/entities/content-pillar/mutation.ts
21
+ const CreateContentPillarDocument = v.object({
22
+ title: VStringMinMax(1, 255),
23
+ slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
24
+ description: v.optional(v.nullable(VStringMax(255))),
25
+ clients: v.optional(SAssociateManyEntities)
26
+ });
27
+ const UpdateContentPillarDocument = v.object({
28
+ title: v.optional(VStringMinMax(1, 255)),
29
+ slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
30
+ description: v.optional(v.nullable(VStringMax(255))),
31
+ clients: v.optional(SAssociateManyEntities)
32
+ });
33
+ const UpdateContentPillarDocumentRequest = v.object({
34
+ documentId: SAssociateOneEntity,
35
+ data: UpdateContentPillarDocument
36
+ });
37
+ //#endregion
38
+ //#region src/entities/content-pillar/query.ts
39
+ const QueryStrapiSearchContentPillars = v.object({
40
+ page: VPage(),
41
+ size: VSize(LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE),
42
+ title: v.optional(VStringMax()),
43
+ slug: v.optional(VStringMax()),
44
+ clients: v.optional(v.array(VStringMax())),
45
+ sort: QuerySortContentPillars
46
+ });
47
+ //#endregion
48
+ export { CONTENT_PILLAR_SORT_KEYS, ContentPillarDocument, CreateContentPillarDocument, LIMIT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, LIMIT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, QuerySortContentPillars, QueryStrapiSearchContentPillars, UpdateContentPillarDocument, UpdateContentPillarDocumentRequest };
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
+ const require_document = require("../../document-BAro2Mrj.cjs");
4
+ const require_media_upload = require("../../media-upload-B6aQYeRM.cjs");
5
+ const require_components_shared_index = require("../../components/shared/index.cjs");
6
+ const require_components_blocks_index = require("../../components/blocks/index.cjs");
7
+ let valibot = require("valibot");
8
+ valibot = require_chunk.__toESM(valibot, 1);
9
+ //#region src/entities/faq-page/document.ts
10
+ const FAQPageDocument = valibot.object({
11
+ ...require_document.BaseDocument.entries,
12
+ seo: valibot.nullable(require_components_shared_index.SeoMeta),
13
+ featured_image: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
14
+ faq: valibot.nullable(require_components_blocks_index.ComponentBlockFaq)
15
+ });
16
+ //#endregion
17
+ exports.FAQPageDocument = FAQPageDocument;