@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,59 @@
1
+ const require_chunk = require("./chunk-CKQMccvm.cjs");
2
+ const require_document = require("./document-BAro2Mrj.cjs");
3
+ let valibot = require("valibot");
4
+ valibot = require_chunk.__toESM(valibot, 1);
5
+ //#region src/base/media-upload.ts
6
+ const MediaFormat = valibot.object({
7
+ ext: valibot.string(),
8
+ url: valibot.string(),
9
+ hash: valibot.string(),
10
+ mime: valibot.string(),
11
+ name: valibot.string(),
12
+ path: valibot.nullable(valibot.string()),
13
+ size: valibot.number(),
14
+ width: valibot.number(),
15
+ height: valibot.number(),
16
+ sizeInBytes: valibot.number()
17
+ });
18
+ const MediaFormats = valibot.object({
19
+ large: valibot.optional(MediaFormat),
20
+ small: valibot.optional(MediaFormat),
21
+ medium: valibot.optional(MediaFormat),
22
+ thumbnail: valibot.optional(MediaFormat)
23
+ });
24
+ const MediaUploadDocument = valibot.object({
25
+ ...require_document.BaseDocument.entries,
26
+ name: valibot.string(),
27
+ alternativeText: valibot.nullable(valibot.string()),
28
+ caption: valibot.nullable(valibot.string()),
29
+ width: valibot.number(),
30
+ height: valibot.number(),
31
+ formats: valibot.optional(valibot.nullable(MediaFormats)),
32
+ hash: valibot.string(),
33
+ ext: valibot.string(),
34
+ mime: valibot.string(),
35
+ size: valibot.number(),
36
+ url: valibot.string(),
37
+ previewUrl: valibot.nullable(valibot.string()),
38
+ provider: valibot.string(),
39
+ provider_metadata: valibot.null()
40
+ });
41
+ //#endregion
42
+ Object.defineProperty(exports, "MediaFormat", {
43
+ enumerable: true,
44
+ get: function() {
45
+ return MediaFormat;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "MediaFormats", {
49
+ enumerable: true,
50
+ get: function() {
51
+ return MediaFormats;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "MediaUploadDocument", {
55
+ enumerable: true,
56
+ get: function() {
57
+ return MediaUploadDocument;
58
+ }
59
+ });
@@ -0,0 +1,40 @@
1
+ import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
2
+ import * as v from "valibot";
3
+ //#region src/base/media-upload.ts
4
+ const MediaFormat = v.object({
5
+ ext: v.string(),
6
+ url: v.string(),
7
+ hash: v.string(),
8
+ mime: v.string(),
9
+ name: v.string(),
10
+ path: v.nullable(v.string()),
11
+ size: v.number(),
12
+ width: v.number(),
13
+ height: v.number(),
14
+ sizeInBytes: v.number()
15
+ });
16
+ const MediaFormats = v.object({
17
+ large: v.optional(MediaFormat),
18
+ small: v.optional(MediaFormat),
19
+ medium: v.optional(MediaFormat),
20
+ thumbnail: v.optional(MediaFormat)
21
+ });
22
+ const MediaUploadDocument = v.object({
23
+ ...BaseDocument.entries,
24
+ name: v.string(),
25
+ alternativeText: v.nullable(v.string()),
26
+ caption: v.nullable(v.string()),
27
+ width: v.number(),
28
+ height: v.number(),
29
+ formats: v.optional(v.nullable(MediaFormats)),
30
+ hash: v.string(),
31
+ ext: v.string(),
32
+ mime: v.string(),
33
+ size: v.number(),
34
+ url: v.string(),
35
+ previewUrl: v.nullable(v.string()),
36
+ provider: v.string(),
37
+ provider_metadata: v.null()
38
+ });
39
+ //#endregion
40
+ export { MediaFormats as n, MediaUploadDocument as r, MediaFormat as t };
@@ -0,0 +1,23 @@
1
+ //#region src/constants/pagination.ts
2
+ const LIMIT_TABLE_PAGINATION_DEFAULT_SIZE = 10;
3
+ const LIMIT_PAGINATION_DEFAULT_SIZE = 100;
4
+ const LIMIT_PAGINATION_MAX_SIZE = 1e3;
5
+ //#endregion
6
+ Object.defineProperty(exports, "LIMIT_PAGINATION_DEFAULT_SIZE", {
7
+ enumerable: true,
8
+ get: function() {
9
+ return LIMIT_PAGINATION_DEFAULT_SIZE;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "LIMIT_PAGINATION_MAX_SIZE", {
13
+ enumerable: true,
14
+ get: function() {
15
+ return LIMIT_PAGINATION_MAX_SIZE;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "LIMIT_TABLE_PAGINATION_DEFAULT_SIZE", {
19
+ enumerable: true,
20
+ get: function() {
21
+ return LIMIT_TABLE_PAGINATION_DEFAULT_SIZE;
22
+ }
23
+ });
@@ -0,0 +1,6 @@
1
+ //#region src/constants/pagination.ts
2
+ const LIMIT_TABLE_PAGINATION_DEFAULT_SIZE = 10;
3
+ const LIMIT_PAGINATION_DEFAULT_SIZE = 100;
4
+ const LIMIT_PAGINATION_MAX_SIZE = 1e3;
5
+ //#endregion
6
+ export { LIMIT_PAGINATION_MAX_SIZE as n, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE as r, LIMIT_PAGINATION_DEFAULT_SIZE as t };
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/permissions/permission.abac.ts
2
+ const require_constants = require("../constants-PBZKggHL.cjs");
3
+ //#region src/permissions/abac.ts
3
4
  const ROLE_PERMISSIONS = {
4
5
  authenticated: {
5
6
  "user-account": {
@@ -641,91 +642,7 @@ const ROLE_PERMISSIONS = {
641
642
  }
642
643
  };
643
644
  //#endregion
644
- //#region src/permissions/permission.constants.ts
645
- /**
646
- * Example usage of ClientEntityScope type
647
- * @reference https://youtube.com/shorts/zOseJFD447U?si=xX8DYEHdl9YtN7S4
648
- *
649
- * > const validScope: ClientEntityScope = "utm-tracking-link:list"; // ✅
650
- * > const invalidScope: ClientEntityScope = "blog-post:import"; // ❌ Type error!
651
- */
652
- const CLIENT_ENTITY_PERMISSIONS = {
653
- client: [
654
- "admin",
655
- "owner",
656
- "manager",
657
- "billing",
658
- "access"
659
- ],
660
- "client-project": [
661
- "list",
662
- "create",
663
- "read",
664
- "update",
665
- "delete",
666
- "assign"
667
- ],
668
- "client-media-platform": [
669
- "list",
670
- "create",
671
- "read",
672
- "update",
673
- "delete"
674
- ],
675
- "client-content-pillar": [
676
- "list",
677
- "create",
678
- "read",
679
- "update",
680
- "delete"
681
- ],
682
- "client-report": [
683
- "list",
684
- "create",
685
- "read",
686
- "update",
687
- "delete"
688
- ],
689
- "client-styleguide": [
690
- "list",
691
- "create",
692
- "read",
693
- "update",
694
- "delete"
695
- ],
696
- "monday-workspace": [
697
- "list",
698
- "create",
699
- "read",
700
- "update",
701
- "delete"
702
- ],
703
- "utm-tracking-link": [
704
- "list",
705
- "create",
706
- "read",
707
- "update",
708
- "delete"
709
- ],
710
- gcflytour: [
711
- "list",
712
- "create",
713
- "read",
714
- "update",
715
- "delete"
716
- ],
717
- "gcflytour-snap": [
718
- "list",
719
- "create",
720
- "read",
721
- "update",
722
- "delete"
723
- ]
724
- };
725
- const CLIENT_ENTITY_KEYS = Object.keys(CLIENT_ENTITY_PERMISSIONS);
726
- const CLIENT_ENTITY_SCOPES = Object.entries(CLIENT_ENTITY_PERMISSIONS).flatMap(([entity, actions]) => actions.map((action) => `${entity}:${action}`));
727
- //#endregion
728
- //#region src/permissions/permission.utilities.ts
645
+ //#region src/permissions/utilities.ts
729
646
  function hasPermission(user, permissions, resource, action, data) {
730
647
  if (!user) return false;
731
648
  const permission = ROLE_PERMISSIONS[user.role.type][resource]?.[action];
@@ -742,9 +659,9 @@ function canAssignPermission(userRole, resource, action) {
742
659
  return false;
743
660
  }
744
661
  //#endregion
745
- exports.CLIENT_ENTITY_KEYS = CLIENT_ENTITY_KEYS;
746
- exports.CLIENT_ENTITY_PERMISSIONS = CLIENT_ENTITY_PERMISSIONS;
747
- exports.CLIENT_ENTITY_SCOPES = CLIENT_ENTITY_SCOPES;
662
+ exports.CLIENT_ENTITY_KEYS = require_constants.CLIENT_ENTITY_KEYS;
663
+ exports.CLIENT_ENTITY_PERMISSIONS = require_constants.CLIENT_ENTITY_PERMISSIONS;
664
+ exports.CLIENT_ENTITY_SCOPES = require_constants.CLIENT_ENTITY_SCOPES;
748
665
  exports.ROLE_PERMISSIONS = ROLE_PERMISSIONS;
749
666
  exports.canAssignPermission = canAssignPermission;
750
667
  exports.hasPermission = hasPermission;
@@ -0,0 +1,2 @@
1
+ import { a as LCRUDActions, c as ROLE_PERMISSIONS, d as CLIENT_ENTITY_SCOPES, f as ClientEntityActions, i as hasPermission, l as CLIENT_ENTITY_KEYS, m as ClientEntityScope, o as Permissions, p as ClientEntityKey, r as canAssignPermission, s as RolesWithPermissions, u as CLIENT_ENTITY_PERMISSIONS } from "../document-DWapIF7V.cjs";
2
+ export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, ROLE_PERMISSIONS, RolesWithPermissions, canAssignPermission, hasPermission };
@@ -0,0 +1,2 @@
1
+ import { a as LCRUDActions, c as ROLE_PERMISSIONS, d as CLIENT_ENTITY_SCOPES, f as ClientEntityActions, i as hasPermission, l as CLIENT_ENTITY_KEYS, m as ClientEntityScope, o as Permissions, p as ClientEntityKey, r as canAssignPermission, s as RolesWithPermissions, u as CLIENT_ENTITY_PERMISSIONS } from "../document-qcC-10Nd.mjs";
2
+ export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, ROLE_PERMISSIONS, RolesWithPermissions, canAssignPermission, hasPermission };
@@ -1,4 +1,5 @@
1
- //#region src/permissions/permission.abac.ts
1
+ import { n as CLIENT_ENTITY_PERMISSIONS, r as CLIENT_ENTITY_SCOPES, t as CLIENT_ENTITY_KEYS } from "../constants-L2goO7Eg.mjs";
2
+ //#region src/permissions/abac.ts
2
3
  const ROLE_PERMISSIONS = {
3
4
  authenticated: {
4
5
  "user-account": {
@@ -640,91 +641,7 @@ const ROLE_PERMISSIONS = {
640
641
  }
641
642
  };
642
643
  //#endregion
643
- //#region src/permissions/permission.constants.ts
644
- /**
645
- * Example usage of ClientEntityScope type
646
- * @reference https://youtube.com/shorts/zOseJFD447U?si=xX8DYEHdl9YtN7S4
647
- *
648
- * > const validScope: ClientEntityScope = "utm-tracking-link:list"; // ✅
649
- * > const invalidScope: ClientEntityScope = "blog-post:import"; // ❌ Type error!
650
- */
651
- const CLIENT_ENTITY_PERMISSIONS = {
652
- client: [
653
- "admin",
654
- "owner",
655
- "manager",
656
- "billing",
657
- "access"
658
- ],
659
- "client-project": [
660
- "list",
661
- "create",
662
- "read",
663
- "update",
664
- "delete",
665
- "assign"
666
- ],
667
- "client-media-platform": [
668
- "list",
669
- "create",
670
- "read",
671
- "update",
672
- "delete"
673
- ],
674
- "client-content-pillar": [
675
- "list",
676
- "create",
677
- "read",
678
- "update",
679
- "delete"
680
- ],
681
- "client-report": [
682
- "list",
683
- "create",
684
- "read",
685
- "update",
686
- "delete"
687
- ],
688
- "client-styleguide": [
689
- "list",
690
- "create",
691
- "read",
692
- "update",
693
- "delete"
694
- ],
695
- "monday-workspace": [
696
- "list",
697
- "create",
698
- "read",
699
- "update",
700
- "delete"
701
- ],
702
- "utm-tracking-link": [
703
- "list",
704
- "create",
705
- "read",
706
- "update",
707
- "delete"
708
- ],
709
- gcflytour: [
710
- "list",
711
- "create",
712
- "read",
713
- "update",
714
- "delete"
715
- ],
716
- "gcflytour-snap": [
717
- "list",
718
- "create",
719
- "read",
720
- "update",
721
- "delete"
722
- ]
723
- };
724
- const CLIENT_ENTITY_KEYS = Object.keys(CLIENT_ENTITY_PERMISSIONS);
725
- const CLIENT_ENTITY_SCOPES = Object.entries(CLIENT_ENTITY_PERMISSIONS).flatMap(([entity, actions]) => actions.map((action) => `${entity}:${action}`));
726
- //#endregion
727
- //#region src/permissions/permission.utilities.ts
644
+ //#region src/permissions/utilities.ts
728
645
  function hasPermission(user, permissions, resource, action, data) {
729
646
  if (!user) return false;
730
647
  const permission = ROLE_PERMISSIONS[user.role.type][resource]?.[action];
@@ -0,0 +1,41 @@
1
+ import * as v from "valibot";
2
+
3
+ //#region src/base/query.schema.d.ts
4
+ declare const QueryStrapiById: v.ObjectSchema<{
5
+ readonly id: v.NumberSchema<undefined>;
6
+ }, undefined>;
7
+ type QueryStrapiById = v.InferOutput<typeof QueryStrapiById>;
8
+ declare const QueryStrapiByDocumentId: v.ObjectSchema<{
9
+ readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
10
+ }, undefined>;
11
+ type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
12
+ declare const QueryStrapiBySlug: v.ObjectSchema<{
13
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
14
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
15
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
16
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
17
+ }, undefined>;
18
+ type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
19
+ declare const QueryStrapiByEmail: v.ObjectSchema<{
20
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
21
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
22
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
23
+ readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
24
+ }, undefined>;
25
+ type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
26
+ declare const QueryStrapiByPhone: v.ObjectSchema<{
27
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
28
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
29
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
30
+ readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>;
31
+ }, undefined>;
32
+ type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
33
+ declare const QueryStrapiByName: v.ObjectSchema<{
34
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
35
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
36
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
37
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
38
+ }, undefined>;
39
+ type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
40
+ //#endregion
41
+ export { QueryStrapiByPhone as a, QueryStrapiByName as i, QueryStrapiByEmail as n, QueryStrapiBySlug as o, QueryStrapiById as r, QueryStrapiByDocumentId as t };
@@ -0,0 +1,41 @@
1
+ import * as v from "valibot";
2
+
3
+ //#region src/base/query.schema.d.ts
4
+ declare const QueryStrapiById: v.ObjectSchema<{
5
+ readonly id: v.NumberSchema<undefined>;
6
+ }, undefined>;
7
+ type QueryStrapiById = v.InferOutput<typeof QueryStrapiById>;
8
+ declare const QueryStrapiByDocumentId: v.ObjectSchema<{
9
+ readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
10
+ }, undefined>;
11
+ type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
12
+ declare const QueryStrapiBySlug: v.ObjectSchema<{
13
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
14
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
15
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
16
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
17
+ }, undefined>;
18
+ type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
19
+ declare const QueryStrapiByEmail: v.ObjectSchema<{
20
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
21
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
22
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
23
+ readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
24
+ }, undefined>;
25
+ type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
26
+ declare const QueryStrapiByPhone: v.ObjectSchema<{
27
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
28
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
29
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
30
+ readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>;
31
+ }, undefined>;
32
+ type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
33
+ declare const QueryStrapiByName: v.ObjectSchema<{
34
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
35
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
36
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
37
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
38
+ }, undefined>;
39
+ type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
40
+ //#endregion
41
+ export { QueryStrapiByPhone as a, QueryStrapiByName as i, QueryStrapiByEmail as n, QueryStrapiBySlug as o, QueryStrapiById as r, QueryStrapiByDocumentId as t };
@@ -0,0 +1,95 @@
1
+ const require_chunk = require("./chunk-CKQMccvm.cjs");
2
+ const require_pagination = require("./pagination-4pZafglS.cjs");
3
+ const require_validators = require("./validators-Bc9Is5Sr.cjs");
4
+ const require_relations = require("./relations-CGu18hfT.cjs");
5
+ let valibot = require("valibot");
6
+ valibot = require_chunk.__toESM(valibot, 1);
7
+ //#region src/base/sort.ts
8
+ const ENTITY_SORT_KEYS = [
9
+ "id",
10
+ "createdAt",
11
+ "updatedAt"
12
+ ];
13
+ const QuerySortEntities = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ENTITY_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ENTITY_SORT_KEYS.length)));
14
+ //#endregion
15
+ //#region src/base/pagination.ts
16
+ const QueryStrapiPaginated = valibot.object({
17
+ page: require_validators.VPage(),
18
+ size: require_validators.VSize(require_pagination.LIMIT_PAGINATION_MAX_SIZE),
19
+ sort: QuerySortEntities
20
+ });
21
+ //#endregion
22
+ //#region src/base/query.schema.ts
23
+ const QueryStrapiById = valibot.object({ id: valibot.number() });
24
+ const QueryStrapiByDocumentId = valibot.object({ documentId: require_relations.SAssociateOneEntity });
25
+ const QueryStrapiBySlug = valibot.object({
26
+ slug: require_validators.VStringShort(),
27
+ ...QueryStrapiPaginated.entries
28
+ });
29
+ const QueryStrapiByEmail = valibot.object({
30
+ email: require_validators.VStringEmail(),
31
+ ...QueryStrapiPaginated.entries
32
+ });
33
+ const QueryStrapiByPhone = valibot.object({
34
+ phone: require_validators.VStringPhone(),
35
+ ...QueryStrapiPaginated.entries
36
+ });
37
+ const QueryStrapiByName = valibot.object({
38
+ name: require_validators.VStringShort(),
39
+ ...QueryStrapiPaginated.entries
40
+ });
41
+ //#endregion
42
+ Object.defineProperty(exports, "ENTITY_SORT_KEYS", {
43
+ enumerable: true,
44
+ get: function() {
45
+ return ENTITY_SORT_KEYS;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "QuerySortEntities", {
49
+ enumerable: true,
50
+ get: function() {
51
+ return QuerySortEntities;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "QueryStrapiByDocumentId", {
55
+ enumerable: true,
56
+ get: function() {
57
+ return QueryStrapiByDocumentId;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "QueryStrapiByEmail", {
61
+ enumerable: true,
62
+ get: function() {
63
+ return QueryStrapiByEmail;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "QueryStrapiById", {
67
+ enumerable: true,
68
+ get: function() {
69
+ return QueryStrapiById;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "QueryStrapiByName", {
73
+ enumerable: true,
74
+ get: function() {
75
+ return QueryStrapiByName;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "QueryStrapiByPhone", {
79
+ enumerable: true,
80
+ get: function() {
81
+ return QueryStrapiByPhone;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "QueryStrapiBySlug", {
85
+ enumerable: true,
86
+ get: function() {
87
+ return QueryStrapiBySlug;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "QueryStrapiPaginated", {
91
+ enumerable: true,
92
+ get: function() {
93
+ return QueryStrapiPaginated;
94
+ }
95
+ });
@@ -0,0 +1,40 @@
1
+ import { n as LIMIT_PAGINATION_MAX_SIZE } from "./pagination-owwfYJS6.mjs";
2
+ import { h as VStringShort, i as VSize, o as VStringEmail, p as VStringPhone, r as VPage } from "./validators-P5E_3qzc.mjs";
3
+ import { a as SAssociateOneEntity } from "./relations-C04F46xL.mjs";
4
+ import * as v from "valibot";
5
+ //#region src/base/sort.ts
6
+ const ENTITY_SORT_KEYS = [
7
+ "id",
8
+ "createdAt",
9
+ "updatedAt"
10
+ ];
11
+ const QuerySortEntities = v.optional(v.pipe(v.array(v.picklist(ENTITY_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(ENTITY_SORT_KEYS.length)));
12
+ //#endregion
13
+ //#region src/base/pagination.ts
14
+ const QueryStrapiPaginated = v.object({
15
+ page: VPage(),
16
+ size: VSize(LIMIT_PAGINATION_MAX_SIZE),
17
+ sort: QuerySortEntities
18
+ });
19
+ //#endregion
20
+ //#region src/base/query.schema.ts
21
+ const QueryStrapiById = v.object({ id: v.number() });
22
+ const QueryStrapiByDocumentId = v.object({ documentId: SAssociateOneEntity });
23
+ const QueryStrapiBySlug = v.object({
24
+ slug: VStringShort(),
25
+ ...QueryStrapiPaginated.entries
26
+ });
27
+ const QueryStrapiByEmail = v.object({
28
+ email: VStringEmail(),
29
+ ...QueryStrapiPaginated.entries
30
+ });
31
+ const QueryStrapiByPhone = v.object({
32
+ phone: VStringPhone(),
33
+ ...QueryStrapiPaginated.entries
34
+ });
35
+ const QueryStrapiByName = v.object({
36
+ name: VStringShort(),
37
+ ...QueryStrapiPaginated.entries
38
+ });
39
+ //#endregion
40
+ export { QueryStrapiByPhone as a, ENTITY_SORT_KEYS as c, QueryStrapiByName as i, QuerySortEntities as l, QueryStrapiByEmail as n, QueryStrapiBySlug as o, QueryStrapiById as r, QueryStrapiPaginated as s, QueryStrapiByDocumentId as t };
@@ -0,0 +1,55 @@
1
+ //#region src/constants/error-messages.ts
2
+ const ERROR_MESSAGE_ROBOT = "It appears you are a robot, please try again.";
3
+ const ERROR_MESSAGE_COMMA_SEPPARATED_URLS = `Please enter a list of URLs separated by commas.`;
4
+ const ERROR_MESSAGE_INVALID_URL = `Please enter a valid URL.`;
5
+ const ERROR_MESSAGE_UTM_URL = `Please enter a valid URL with UTM parameters.`;
6
+ const ERROR_MESSAGE_URL_NO_QUERY_PARAMS = `Please remove any query parameters from the URL.`;
7
+ const ERROR_MESSAGE_ONE_PROJECT_STATUS = `You can only select one project status.`;
8
+ const ERROR_MESSAGE_URL_PREFIX = `Please enter a valid URL starting with http or https.`;
9
+ //#endregion
10
+ //#region src/constants/limits.ts
11
+ const LIMIT_MIN_VALUE = 1;
12
+ const LIMIT_SHORT_STRING_MAX_LENGTH = 255;
13
+ const LIMIT_MEDIUM_STRING_MAX_LENGTH = 500;
14
+ const LIMIT_LONG_STRING_MAX_LENGTH = 5e3;
15
+ const LIMIT_VAL_10 = 10;
16
+ const LIMIT_VAL_20 = 20;
17
+ const LIMIT_VAL_32 = 32;
18
+ const LIMIT_VAL_64 = 64;
19
+ const LIMIT_VAL_100 = 100;
20
+ const LIMIT_VAL_255 = 255;
21
+ const LIMIT_MIN_USERNAME = 3;
22
+ const LIMIT_MAX_USERNAME = 255;
23
+ const LIMIT_MIN_EMAIL = 5;
24
+ const LIMIT_MAX_EMAIL = 255;
25
+ const LIMIT_MIN_PASSWORD = 8;
26
+ const LIMIT_MAX_PASSWORD = 255;
27
+ const LIMIT_MIN_PHONE = 7;
28
+ const LIMIT_MAX_PHONE = 24;
29
+ const LIMIT_MIN_DESTINATION = 10;
30
+ const LIMIT_MAX_DESTINATION = 2048;
31
+ const LIMIT_MIN_UTM_SOURCE = 1;
32
+ const LIMIT_MAX_UTM_SOURCE = 2026;
33
+ const LIMIT_MIN_UTM_MEDIUM = 1;
34
+ const LIMIT_MAX_UTM_MEDIUM = 2026;
35
+ const LIMIT_MIN_UTM_CAMPAIGN = 1;
36
+ const LIMIT_MAX_UTM_CAMPAIGN = 2024;
37
+ const LIMIT_MIN_UTM_CREATIVE_FORMAT = 1;
38
+ const LIMIT_MAX_UTM_CREATIVE_FORMAT = 2017;
39
+ const LIMIT_MIN_UTM_CONTENT = 1;
40
+ const LIMIT_MAX_UTM_CONTENT = 2025;
41
+ const LIMIT_MIN_UTM_TERM = 1;
42
+ const LIMIT_MAX_UTM_TERM = 2028;
43
+ const LIMIT_MIN_UTM_ID = 1;
44
+ const LIMIT_MAX_UTM_ID = 2030;
45
+ //#endregion
46
+ //#region src/constants/regex.ts
47
+ const ERROR_MESSAGE_REGEX_UTM_VALUE = "can only contain letters, numbers, and the special characters: - _ .";
48
+ const REGEX_UTM_VALUE = /^([a-zA-Z0-9._-]+)?$/;
49
+ const REGEX_BRAND_COLOR_SLUG = /^([a-zA-Z0-9_-]+)?$/;
50
+ const ERROR_MESSAGE_REGEX_PHONE = "Please provide a valid phone number.";
51
+ const REGEX_NANP_PHONE = /^(?:\+?1[\s.-]?)?(?:\(?([2-9]\d{2})\)?[\s.-]?)(?:([2-9](?!11)\d{2}))[\s.-]?(\d{4})(?:\s*(?:#|x|ext\.?|extension)\s*\d+)?$/i;
52
+ const ERROR_MESSAGE_REGEX_URL_SLUG = `can only contain letters, numbers, and the special characters: - _ .`;
53
+ const REGEX_URL_SLUG = /^([a-zA-Z0-9._-]+)?$/;
54
+ //#endregion
55
+ export { LIMIT_MIN_UTM_ID as A, LIMIT_VAL_32 as B, LIMIT_MIN_EMAIL as C, LIMIT_MIN_UTM_CAMPAIGN as D, LIMIT_MIN_USERNAME as E, LIMIT_SHORT_STRING_MAX_LENGTH as F, ERROR_MESSAGE_ROBOT as G, ERROR_MESSAGE_COMMA_SEPPARATED_URLS as H, LIMIT_VAL_10 as I, ERROR_MESSAGE_UTM_URL as J, ERROR_MESSAGE_URL_NO_QUERY_PARAMS as K, LIMIT_VAL_100 as L, LIMIT_MIN_UTM_SOURCE as M, LIMIT_MIN_UTM_TERM as N, LIMIT_MIN_UTM_CONTENT as O, LIMIT_MIN_VALUE as P, LIMIT_VAL_20 as R, LIMIT_MIN_DESTINATION as S, LIMIT_MIN_PHONE as T, ERROR_MESSAGE_INVALID_URL as U, LIMIT_VAL_64 as V, ERROR_MESSAGE_ONE_PROJECT_STATUS as W, LIMIT_MAX_UTM_ID as _, REGEX_NANP_PHONE as a, LIMIT_MAX_UTM_TERM as b, LIMIT_LONG_STRING_MAX_LENGTH as c, LIMIT_MAX_PASSWORD as d, LIMIT_MAX_PHONE as f, LIMIT_MAX_UTM_CREATIVE_FORMAT as g, LIMIT_MAX_UTM_CONTENT as h, REGEX_BRAND_COLOR_SLUG as i, LIMIT_MIN_UTM_MEDIUM as j, LIMIT_MIN_UTM_CREATIVE_FORMAT as k, LIMIT_MAX_DESTINATION as l, LIMIT_MAX_UTM_CAMPAIGN as m, ERROR_MESSAGE_REGEX_URL_SLUG as n, REGEX_URL_SLUG as o, LIMIT_MAX_USERNAME as p, ERROR_MESSAGE_URL_PREFIX as q, ERROR_MESSAGE_REGEX_UTM_VALUE as r, REGEX_UTM_VALUE as s, ERROR_MESSAGE_REGEX_PHONE as t, LIMIT_MAX_EMAIL as u, LIMIT_MAX_UTM_MEDIUM as v, LIMIT_MIN_PASSWORD as w, LIMIT_MEDIUM_STRING_MAX_LENGTH as x, LIMIT_MAX_UTM_SOURCE as y, LIMIT_VAL_255 as z };