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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/base/index.cjs +9 -27
  2. package/dist/base/index.d.cts +2 -2
  3. package/dist/base/index.d.mts +4 -4
  4. package/dist/base/index.mjs +5 -5
  5. package/dist/components/blocks/index.cjs +5 -4
  6. package/dist/components/blocks/index.d.cts +1 -1
  7. package/dist/components/blocks/index.d.mts +1 -1
  8. package/dist/components/blocks/index.mjs +5 -4
  9. package/dist/components/brand/index.cjs +3 -2
  10. package/dist/components/brand/index.d.cts +1 -1
  11. package/dist/components/brand/index.d.mts +1 -1
  12. package/dist/components/brand/index.mjs +3 -2
  13. package/dist/components/forms/index.cjs +2 -1
  14. package/dist/components/forms/index.d.cts +280 -280
  15. package/dist/components/forms/index.d.mts +280 -280
  16. package/dist/components/forms/index.mjs +2 -1
  17. package/dist/components/shared/index.cjs +5 -4
  18. package/dist/components/shared/index.d.cts +1 -1
  19. package/dist/components/shared/index.d.mts +1 -1
  20. package/dist/components/shared/index.mjs +5 -4
  21. package/dist/components/slideshow/index.d.cts +280 -280
  22. package/dist/components/slideshow/index.d.mts +280 -280
  23. package/dist/components/utm/index.d.mts +1 -1
  24. package/dist/constants/index.cjs +45 -43
  25. package/dist/constants/index.mjs +4 -2
  26. package/dist/{document-TlMeVEGy.d.cts → document-3h6g5Qqr.d.cts} +1 -1
  27. package/dist/{document-DjM6F56Q.cjs → document-AqtoEbX8.cjs} +19 -24
  28. package/dist/{document-aEa-gTmH.mjs → document-BCbxKqGE.mjs} +20 -19
  29. package/dist/{document-kvIqz0p6.mjs → document-BWso8VC7.mjs} +62 -56
  30. package/dist/{document-CwIvc2p7.cjs → document-DJJFS5o8.cjs} +2 -1
  31. package/dist/{document-CDavjuJ-.mjs → document-DRyRy2Mw.mjs} +2 -1
  32. package/dist/{document-CAkRm1Y_.d.mts → document-DqE9ISOk.d.mts} +2 -2
  33. package/dist/{document-DOVZwQRq.cjs → document-DwkycUz9.cjs} +74 -62
  34. package/dist/email-ByTEdUjg.cjs +13 -0
  35. package/dist/email-Cnyi5Neo.mjs +6 -0
  36. package/dist/entities/audit-log/index.cjs +44 -41
  37. package/dist/entities/audit-log/index.d.cts +3 -2
  38. package/dist/entities/audit-log/index.d.mts +4 -3
  39. package/dist/entities/audit-log/index.mjs +6 -3
  40. package/dist/entities/blog-page/index.d.cts +1 -1
  41. package/dist/entities/blog-page/index.d.mts +1 -1
  42. package/dist/entities/blog-post/index.cjs +10 -9
  43. package/dist/entities/blog-post/index.d.cts +1 -1
  44. package/dist/entities/blog-post/index.d.mts +1 -1
  45. package/dist/entities/blog-post/index.mjs +4 -3
  46. package/dist/entities/careers-page/index.d.cts +1 -1
  47. package/dist/entities/careers-page/index.d.mts +1 -1
  48. package/dist/entities/category/index.cjs +15 -13
  49. package/dist/entities/category/index.d.cts +7 -6
  50. package/dist/entities/category/index.d.mts +7 -6
  51. package/dist/entities/category/index.mjs +11 -9
  52. package/dist/entities/client/index.cjs +23 -22
  53. package/dist/entities/client/index.d.cts +1 -1
  54. package/dist/entities/client/index.d.mts +1 -1
  55. package/dist/entities/client/index.mjs +16 -15
  56. package/dist/entities/client-content-pillar/index.cjs +14 -13
  57. package/dist/entities/client-content-pillar/index.d.cts +1 -1
  58. package/dist/entities/client-content-pillar/index.d.mts +1 -1
  59. package/dist/entities/client-content-pillar/index.mjs +12 -11
  60. package/dist/entities/client-media-platform/index.cjs +18 -16
  61. package/dist/entities/client-media-platform/index.d.cts +1 -1
  62. package/dist/entities/client-media-platform/index.d.mts +1 -1
  63. package/dist/entities/client-media-platform/index.mjs +13 -11
  64. package/dist/entities/client-project/index.cjs +47 -41
  65. package/dist/entities/client-project/index.d.cts +1 -1
  66. package/dist/entities/client-project/index.d.mts +1 -1
  67. package/dist/entities/client-project/index.mjs +11 -5
  68. package/dist/entities/client-report/index.cjs +18 -16
  69. package/dist/entities/client-report/index.d.cts +1 -1
  70. package/dist/entities/client-report/index.d.mts +1 -1
  71. package/dist/entities/client-report/index.mjs +14 -12
  72. package/dist/entities/client-styleguide/index.cjs +14 -13
  73. package/dist/entities/client-styleguide/index.d.cts +1 -1
  74. package/dist/entities/client-styleguide/index.d.mts +1 -1
  75. package/dist/entities/client-styleguide/index.mjs +11 -10
  76. package/dist/entities/client-user/index.cjs +7 -7
  77. package/dist/entities/client-user/index.d.cts +1 -1
  78. package/dist/entities/client-user/index.d.mts +1 -1
  79. package/dist/entities/client-user/index.mjs +5 -5
  80. package/dist/entities/comment/index.cjs +18 -16
  81. package/dist/entities/comment/index.d.cts +1 -1
  82. package/dist/entities/comment/index.d.mts +1 -1
  83. package/dist/entities/comment/index.mjs +12 -10
  84. package/dist/entities/content-pillar/index.cjs +20 -18
  85. package/dist/entities/content-pillar/index.d.cts +1 -1
  86. package/dist/entities/content-pillar/index.d.mts +1 -1
  87. package/dist/entities/content-pillar/index.mjs +15 -13
  88. package/dist/entities/faq-page/index.cjs +2 -1
  89. package/dist/entities/faq-page/index.d.cts +2 -2
  90. package/dist/entities/faq-page/index.d.mts +3 -3
  91. package/dist/entities/faq-page/index.mjs +2 -1
  92. package/dist/entities/gcflytour/index.cjs +21 -19
  93. package/dist/entities/gcflytour/index.d.cts +1 -1
  94. package/dist/entities/gcflytour/index.d.mts +1 -1
  95. package/dist/entities/gcflytour/index.mjs +17 -15
  96. package/dist/entities/gcflytour-snap/index.cjs +20 -18
  97. package/dist/entities/gcflytour-snap/index.d.cts +1 -1
  98. package/dist/entities/gcflytour-snap/index.d.mts +1 -1
  99. package/dist/entities/gcflytour-snap/index.mjs +16 -14
  100. package/dist/entities/landing-page/index.d.cts +2 -2
  101. package/dist/entities/landing-page/index.d.mts +3 -3
  102. package/dist/entities/lead/index.cjs +25 -23
  103. package/dist/entities/lead/index.mjs +15 -13
  104. package/dist/entities/media-content-type/index.cjs +21 -19
  105. package/dist/entities/media-content-type/index.d.cts +7 -6
  106. package/dist/entities/media-content-type/index.d.mts +7 -6
  107. package/dist/entities/media-content-type/index.mjs +17 -15
  108. package/dist/entities/media-creative-format/index.cjs +19 -17
  109. package/dist/entities/media-creative-format/index.d.cts +7 -6
  110. package/dist/entities/media-creative-format/index.d.mts +7 -6
  111. package/dist/entities/media-creative-format/index.mjs +15 -13
  112. package/dist/entities/media-medium/index.cjs +19 -17
  113. package/dist/entities/media-medium/index.d.cts +7 -6
  114. package/dist/entities/media-medium/index.d.mts +7 -6
  115. package/dist/entities/media-medium/index.mjs +15 -13
  116. package/dist/entities/media-platform/index.cjs +27 -24
  117. package/dist/entities/media-platform/index.d.cts +1 -1
  118. package/dist/entities/media-platform/index.d.mts +1 -1
  119. package/dist/entities/media-platform/index.mjs +23 -20
  120. package/dist/entities/monday-workspace/index.cjs +17 -15
  121. package/dist/entities/monday-workspace/index.d.cts +1 -1
  122. package/dist/entities/monday-workspace/index.d.mts +1 -1
  123. package/dist/entities/monday-workspace/index.mjs +11 -9
  124. package/dist/entities/newsletter-signup/index.cjs +25 -23
  125. package/dist/entities/newsletter-signup/index.mjs +13 -11
  126. package/dist/entities/policy-page/index.cjs +2 -1
  127. package/dist/entities/policy-page/index.d.cts +1 -1
  128. package/dist/entities/policy-page/index.d.mts +2 -2
  129. package/dist/entities/policy-page/index.mjs +2 -1
  130. package/dist/entities/product/index.cjs +1 -1
  131. package/dist/entities/product/index.d.cts +1 -1
  132. package/dist/entities/product/index.d.mts +1 -1
  133. package/dist/entities/product/index.mjs +1 -1
  134. package/dist/entities/product-highlight/index.cjs +1 -1
  135. package/dist/entities/product-highlight/index.d.cts +1 -1
  136. package/dist/entities/product-highlight/index.d.mts +1 -1
  137. package/dist/entities/product-highlight/index.mjs +1 -1
  138. package/dist/entities/resume/index.cjs +43 -40
  139. package/dist/entities/resume/index.mjs +16 -13
  140. package/dist/entities/sharpspring/index.cjs +9 -8
  141. package/dist/entities/sharpspring/index.mjs +6 -5
  142. package/dist/entities/tag/index.cjs +15 -13
  143. package/dist/entities/tag/index.d.cts +6 -5
  144. package/dist/entities/tag/index.d.mts +7 -6
  145. package/dist/entities/tag/index.mjs +11 -9
  146. package/dist/entities/team-member/index.cjs +11 -9
  147. package/dist/entities/team-member/index.d.cts +2 -2
  148. package/dist/entities/team-member/index.d.mts +2 -2
  149. package/dist/entities/team-member/index.mjs +7 -4
  150. package/dist/entities/team-page/index.d.cts +1 -1
  151. package/dist/entities/team-page/index.d.mts +1 -1
  152. package/dist/entities/teamwork/index.cjs +12 -11
  153. package/dist/entities/teamwork/index.d.mts +1 -1
  154. package/dist/entities/teamwork/index.mjs +7 -6
  155. package/dist/entities/trend/index.cjs +2 -2
  156. package/dist/entities/trend/index.d.cts +1 -1
  157. package/dist/entities/trend/index.d.mts +1 -1
  158. package/dist/entities/trend/index.mjs +2 -2
  159. package/dist/entities/up-auth/index.cjs +18 -15
  160. package/dist/entities/up-auth/index.d.cts +1 -1
  161. package/dist/entities/up-auth/index.d.mts +1 -1
  162. package/dist/entities/up-auth/index.mjs +6 -3
  163. package/dist/entities/up-permission/index.cjs +1 -1
  164. package/dist/entities/up-permission/index.d.cts +1 -1
  165. package/dist/entities/up-permission/index.d.mts +1 -1
  166. package/dist/entities/up-permission/index.mjs +1 -1
  167. package/dist/entities/up-role/index.cjs +1 -1
  168. package/dist/entities/up-role/index.d.cts +1 -1
  169. package/dist/entities/up-role/index.d.mts +1 -1
  170. package/dist/entities/up-role/index.mjs +1 -1
  171. package/dist/entities/up-user/index.cjs +2 -1
  172. package/dist/entities/up-user/index.d.cts +2 -2
  173. package/dist/entities/up-user/index.d.mts +2 -2
  174. package/dist/entities/up-user/index.mjs +2 -2
  175. package/dist/entities/upload/index.cjs +11 -11
  176. package/dist/entities/upload/index.mjs +7 -7
  177. package/dist/entities/url-redirect/index.cjs +5 -4
  178. package/dist/entities/url-redirect/index.d.cts +3 -2
  179. package/dist/entities/url-redirect/index.d.mts +3 -2
  180. package/dist/entities/url-redirect/index.mjs +4 -3
  181. package/dist/entities/user-account/index.cjs +10 -11
  182. package/dist/entities/user-account/index.d.cts +2 -2
  183. package/dist/entities/user-account/index.d.mts +2 -2
  184. package/dist/entities/user-account/index.mjs +10 -11
  185. package/dist/entities/utm-link-builder/index.cjs +30 -36
  186. package/dist/entities/utm-link-builder/index.d.cts +6 -6
  187. package/dist/entities/utm-link-builder/index.d.mts +6 -6
  188. package/dist/entities/utm-link-builder/index.mjs +22 -28
  189. package/dist/entities/utm-tracking-link/index.cjs +110 -104
  190. package/dist/entities/utm-tracking-link/index.d.cts +2 -2
  191. package/dist/entities/utm-tracking-link/index.d.mts +2 -2
  192. package/dist/entities/utm-tracking-link/index.mjs +68 -68
  193. package/dist/error-messages-9ZhRqNGW.mjs +10 -0
  194. package/dist/error-messages-C0I1kOur.cjs +51 -0
  195. package/dist/index-BOxQLeAK.d.cts +317 -0
  196. package/dist/index-BSYaAtme.d.mts +486 -0
  197. package/dist/index-BT8Pa9XY.d.mts +317 -0
  198. package/dist/index-Bd8ZGWzA.d.mts +944 -0
  199. package/dist/{index-DXo7B4ng.d.mts → index-Bjjp-2Sa.d.mts} +20 -99
  200. package/dist/{index-D_YPjLxv.d.cts → index-C9Hbvjc8.d.mts} +4 -3
  201. package/dist/index-COpLbpQC.d.cts +486 -0
  202. package/dist/{index-DXUuI-fJ.d.cts → index-CTc84rze.d.cts} +91 -76
  203. package/dist/index-D5VpzV4T.d.cts +944 -0
  204. package/dist/{index-B_L_83Q2.d.cts → index-D7QXaSOY.d.cts} +19 -98
  205. package/dist/index-DG_Lwaa7.d.cts +1324 -0
  206. package/dist/{index-D3KnOYr7.d.mts → index-Dm8G_OXX.d.cts} +4 -3
  207. package/dist/{index-DEm89ERm.d.mts → index-DpOKOSqT.d.mts} +94 -79
  208. package/dist/index-Dvu63a8_.d.mts +1324 -0
  209. package/dist/limits-CKGuEuKA.mjs +37 -0
  210. package/dist/{regex-Cl5goNwp.cjs → limits-CW6iJ7kB.cjs} +0 -102
  211. package/dist/number-Bt4nZKCU.cjs +19 -0
  212. package/dist/number-OMFRufFt.mjs +6 -0
  213. package/dist/pagination-D5l_UjyM.mjs +7 -0
  214. package/dist/pagination-DWZDPzR4.cjs +20 -0
  215. package/dist/permissions/index.cjs +2 -2
  216. package/dist/permissions/index.d.cts +1 -1
  217. package/dist/permissions/index.d.mts +1 -1
  218. package/dist/permissions/index.mjs +2 -2
  219. package/dist/phone-C9TNVDm_.mjs +8 -0
  220. package/dist/phone-D_ZLG1Qv.cjs +21 -0
  221. package/dist/{query-DHY-nlUQ.mjs → query-BR5Ze6T2.mjs} +7 -11
  222. package/dist/{query-DelNcssC.cjs → query-qQ_HLlxx.cjs} +13 -29
  223. package/dist/regex-BEFTMiHO.cjs +51 -0
  224. package/dist/regex-pSdcbWzV.mjs +10 -0
  225. package/dist/relation-Bd-xUcj8.cjs +33 -0
  226. package/dist/relation-DMhLjp7K.mjs +8 -0
  227. package/dist/{relationships-HTBNe0F-.cjs → relationships-DjHwYd4r.cjs} +23 -9
  228. package/dist/{relationships-C6xfgdwR.mjs → relationships-yPO5SILR.mjs} +7 -5
  229. package/dist/slug-BUtm1t-B.mjs +7 -0
  230. package/dist/slug-cWXTZEIT.cjs +14 -0
  231. package/dist/sort-CI87SH1y.cjs +33 -0
  232. package/dist/sort-D3WwshqQ.mjs +14 -0
  233. package/dist/{strapi-DvyAfgFF.mjs → strapi-B2cNPAao.mjs} +1 -1
  234. package/dist/{strapi-QFDWi4vD.cjs → strapi-RlhF30B7.cjs} +1 -1
  235. package/dist/string-BHHnD2Qu.mjs +42 -0
  236. package/dist/string-Yn-6xiAZ.cjs +97 -0
  237. package/dist/urls-UOvhCu0z.mjs +14 -0
  238. package/dist/urls-og5upHgL.cjs +27 -0
  239. package/dist/utilities/index.cjs +1 -1
  240. package/dist/utilities/index.d.cts +6 -6
  241. package/dist/utilities/index.d.mts +6 -6
  242. package/dist/utilities/index.mjs +1 -1
  243. package/dist/utm-BqkYlpua.cjs +47 -0
  244. package/dist/utm-ZUwmBoR2.mjs +28 -0
  245. package/dist/validators/index.cjs +36 -0
  246. package/dist/validators/index.d.cts +94 -0
  247. package/dist/validators/index.d.mts +94 -0
  248. package/dist/validators/index.mjs +10 -0
  249. package/package.json +11 -1
  250. package/dist/index-B3VtiObV.d.mts +0 -317
  251. package/dist/index-BxEBUjx2.d.mts +0 -486
  252. package/dist/index-CQP_vcmO.d.cts +0 -317
  253. package/dist/index-CRoWUxGV.d.cts +0 -1324
  254. package/dist/index-DYSlcIkJ.d.mts +0 -945
  255. package/dist/index-Dmtom8iC.d.cts +0 -945
  256. package/dist/index-auU0DaW5.d.cts +0 -486
  257. package/dist/index-oCLNrzIj.d.mts +0 -1324
  258. package/dist/regex-BnKGcdS4.mjs +0 -55
  259. package/dist/validators-Bc9Is5Sr.cjs +0 -222
  260. package/dist/validators-P5E_3qzc.mjs +0 -95
  261. /package/dist/{abac-DPd9oLKR.mjs → abac-BPxkvVVy.mjs} +0 -0
  262. /package/dist/{abac-BeKQtxIF.cjs → abac-YYI2Ckwv.cjs} +0 -0
  263. /package/dist/{constants-Htf-MeCA.mjs → constants-C4cy6LoY.mjs} +0 -0
  264. /package/dist/{constants-f1GP2eiq.cjs → constants-D6DsS_A0.cjs} +0 -0
  265. /package/dist/{document-DaICHS9G.cjs → document-B4FY2KXQ.cjs} +0 -0
  266. /package/dist/{document-c3GNPelp.mjs → document-De-prPhc.mjs} +0 -0
  267. /package/dist/{document-CbE38CzE.d.mts → document-DxjJgk8X.d.mts} +0 -0
  268. /package/dist/{index-DLICmJ_-.d.mts → index-BSEaV9wd.d.mts} +0 -0
  269. /package/dist/{json-BrVkpLbC.d.mts → json--oetJLQY.d.mts} +0 -0
  270. /package/dist/{media-upload-DKeA1eD-.d.mts → media-upload-DBG7YyU4.d.mts} +0 -0
  271. /package/dist/{strapi-BDLWeEyv.mjs → strapi-CE9bz7Kc.mjs} +0 -0
  272. /package/dist/{strapi-C4HuWGb_.cjs → strapi-D8C1C0D7.cjs} +0 -0
@@ -1,4 +1,5 @@
1
- import { lr as MediaCreativeFormatDocument } from "../../index-DEm89ERm.mjs";
1
+ import { Z as QuerySortOutput } from "../../index-Bjjp-2Sa.mjs";
2
+ import { gr as MediaCreativeFormatDocument } from "../../index-DpOKOSqT.mjs";
2
3
  import * as v from "valibot";
3
4
 
4
5
  //#region src/entities/media-creative-format/constants.d.ts
@@ -7,13 +8,13 @@ declare const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE = 1000;
7
8
  declare const MEDIA_CREATIVE_FORMAT_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "createdAt", "updatedAt", "media_content_types.title", "media_content_types.slug", "media_content_types.is_active", "media_content_types.is_organic_social", "media_content_types.is_paid_media", "media_content_types.createdAt", "media_content_types.updatedAt"];
8
9
  //#endregion
9
10
  //#region src/entities/media-creative-format/fields.d.ts
10
- declare const QuerySortMediaCreativeFormats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], 13, undefined>]>, undefined>;
11
+ declare const QuerySortMediaCreativeFormats: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_active" | "media_content_types.title" | "media_content_types.slug" | "media_content_types.is_active" | "media_content_types.is_organic_social" | "media_content_types.is_paid_media" | "media_content_types.createdAt" | "media_content_types.updatedAt">>;
11
12
  type QuerySortMediaCreativeFormats = v.InferOutput<typeof QuerySortMediaCreativeFormats>;
12
13
  //#endregion
13
14
  //#region src/entities/media-creative-format/mutation.d.ts
14
15
  declare const CreateMediaCreativeFormatDocument: v.ObjectSchema<{
15
16
  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 slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
17
18
  readonly is_active: v.BooleanSchema<undefined>;
18
19
  readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
19
20
  readonly media_content_types: 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>;
@@ -21,7 +22,7 @@ declare const CreateMediaCreativeFormatDocument: v.ObjectSchema<{
21
22
  type CreateMediaCreativeFormatDocument = v.InferOutput<typeof CreateMediaCreativeFormatDocument>;
22
23
  declare const UpdateMediaCreativeFormatDocument: v.ObjectSchema<{
23
24
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
24
- 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>;
25
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
25
26
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
26
27
  readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
27
28
  readonly media_content_types: 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>;
@@ -31,7 +32,7 @@ declare const UpdateMediaCreativeFormatDocumentRequest: v.ObjectSchema<{
31
32
  readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
32
33
  readonly data: v.ObjectSchema<{
33
34
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- 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>;
35
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
35
36
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
36
37
  readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
37
38
  readonly media_content_types: 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>;
@@ -47,7 +48,7 @@ declare const QueryStrapiSearchMediaCreativeFormats: v.ObjectSchema<{
47
48
  readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
49
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
49
50
  readonly media_content_types: 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>]>, undefined>;
50
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "slug:ASC" | "slug:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], 13, undefined>]>, undefined>;
51
+ readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_active" | "media_content_types.title" | "media_content_types.slug" | "media_content_types.is_active" | "media_content_types.is_organic_social" | "media_content_types.is_paid_media" | "media_content_types.createdAt" | "media_content_types.updatedAt">>;
51
52
  }, undefined>;
52
53
  type QueryStrapiSearchMediaCreativeFormats = v.InferOutput<typeof QueryStrapiSearchMediaCreativeFormats>;
53
54
  //#endregion
@@ -1,7 +1,9 @@
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, s as SQueryManyEntities } from "../../relationships-C6xfgdwR.mjs";
4
- import { U as MediaCreativeFormatDocument } from "../../document-kvIqz0p6.mjs";
1
+ import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
2
+ import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
3
+ import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
4
+ import { a as SAssociateManyEntitiesOptional, l as SQueryManyEntities, o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
5
+ import { t as VStringSlug } from "../../slug-BUtm1t-B.mjs";
6
+ import { W as MediaCreativeFormatDocument } from "../../document-BWso8VC7.mjs";
5
7
  import * as v from "valibot";
6
8
  //#region src/entities/media-creative-format/constants.ts
7
9
  const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE = 100;
@@ -23,22 +25,22 @@ const MEDIA_CREATIVE_FORMAT_SORT_KEYS = [
23
25
  ];
24
26
  //#endregion
25
27
  //#region src/entities/media-creative-format/fields.ts
26
- const QuerySortMediaCreativeFormats = v.optional(v.pipe(v.array(v.picklist(MEDIA_CREATIVE_FORMAT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(MEDIA_CREATIVE_FORMAT_SORT_KEYS.length)));
28
+ const QuerySortMediaCreativeFormats = createQuerySort(MEDIA_CREATIVE_FORMAT_SORT_KEYS);
27
29
  //#endregion
28
30
  //#region src/entities/media-creative-format/mutation.ts
29
31
  const CreateMediaCreativeFormatDocument = v.object({
30
- title: VStringMinMax(1, 255),
31
- slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
32
+ title: VStringMinMax(),
33
+ slug: VStringSlug(),
32
34
  is_active: v.boolean(),
33
- description: v.optional(v.nullable(VStringMax(255))),
34
- media_content_types: v.optional(SAssociateManyEntities)
35
+ description: v.optional(v.nullable(VStringMax())),
36
+ media_content_types: SAssociateManyEntitiesOptional
35
37
  });
36
38
  const UpdateMediaCreativeFormatDocument = v.object({
37
- title: v.optional(VStringMinMax(1, 255)),
38
- slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
39
+ title: v.optional(VStringMinMax()),
40
+ slug: v.optional(VStringSlug()),
39
41
  is_active: v.optional(v.boolean()),
40
- description: v.optional(v.nullable(VStringMax(255))),
41
- media_content_types: v.optional(SAssociateManyEntities)
42
+ description: v.optional(v.nullable(VStringMax())),
43
+ media_content_types: SAssociateManyEntitiesOptional
42
44
  });
43
45
  const UpdateMediaCreativeFormatDocumentRequest = v.object({
44
46
  documentId: SAssociateOneEntity,
@@ -1,9 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
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_relationships = require("../../relationships-HTBNe0F-.cjs");
6
- const require_document = require("../../document-DOVZwQRq.cjs");
3
+ const require_pagination = require("../../pagination-DWZDPzR4.cjs");
4
+ const require_sort = require("../../sort-CI87SH1y.cjs");
5
+ const require_string = require("../../string-Yn-6xiAZ.cjs");
6
+ const require_relationships = require("../../relationships-DjHwYd4r.cjs");
7
+ const require_slug = require("../../slug-cWXTZEIT.cjs");
8
+ const require_document = require("../../document-DwkycUz9.cjs");
7
9
  let valibot = require("valibot");
8
10
  valibot = require_chunk.__toESM(valibot, 1);
9
11
  //#region src/entities/media-medium/constants.ts
@@ -29,26 +31,26 @@ const MEDIA_MEDIUM_SORT_KEYS = [
29
31
  ];
30
32
  //#endregion
31
33
  //#region src/entities/media-medium/fields.ts
32
- const QuerySortMediaMediums = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_MEDIUM_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_MEDIUM_SORT_KEYS.length)));
34
+ const QuerySortMediaMediums = require_sort.createQuerySort(MEDIA_MEDIUM_SORT_KEYS);
33
35
  //#endregion
34
36
  //#region src/entities/media-medium/mutation.ts
35
37
  const CreateMediaMediumDocument = valibot.object({
36
- title: require_validators.VStringMinMax(1, 255),
37
- slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
38
+ title: require_string.VStringMinMax(),
39
+ slug: require_slug.VStringSlug(),
38
40
  is_active: valibot.boolean(),
39
41
  is_organic_social: valibot.boolean(),
40
42
  is_paid_media: valibot.boolean(),
41
- description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
42
- media_platforms: valibot.optional(require_relationships.SAssociateManyEntities)
43
+ description: valibot.optional(valibot.nullable(require_string.VStringMax())),
44
+ media_platforms: require_relationships.SAssociateManyEntitiesOptional
43
45
  });
44
46
  const UpdateMediaMediumDocument = valibot.object({
45
- title: valibot.optional(require_validators.VStringMinMax(1, 255)),
46
- slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
47
+ title: valibot.optional(require_string.VStringMinMax()),
48
+ slug: valibot.optional(require_slug.VStringSlug()),
47
49
  is_active: valibot.optional(valibot.boolean()),
48
50
  is_organic_social: valibot.optional(valibot.boolean()),
49
51
  is_paid_media: valibot.optional(valibot.boolean()),
50
- description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
51
- media_platforms: valibot.optional(require_relationships.SAssociateManyEntities)
52
+ description: valibot.optional(valibot.nullable(require_string.VStringMax())),
53
+ media_platforms: require_relationships.SAssociateManyEntitiesOptional
52
54
  });
53
55
  const UpdateMediaMediumDocumentRequest = valibot.object({
54
56
  documentId: require_relationships.SAssociateOneEntity,
@@ -57,10 +59,10 @@ const UpdateMediaMediumDocumentRequest = valibot.object({
57
59
  //#endregion
58
60
  //#region src/entities/media-medium/query.ts
59
61
  const QueryStrapiSearchMediaMediums = valibot.object({
60
- page: require_validators.VPage(),
61
- size: require_validators.VSize(LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE),
62
- title: valibot.optional(require_validators.VStringMax()),
63
- slug: valibot.optional(require_validators.VStringMax()),
62
+ page: require_pagination.VPage(),
63
+ size: require_pagination.VSize(LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE),
64
+ title: valibot.optional(require_string.VStringMax()),
65
+ slug: valibot.optional(require_string.VStringMax()),
64
66
  is_active: valibot.optional(valibot.boolean()),
65
67
  is_organic_social: valibot.optional(valibot.boolean()),
66
68
  is_paid_media: valibot.optional(valibot.boolean()),
@@ -1,4 +1,5 @@
1
- import { sr as MediaMediumDocument } from "../../index-DXUuI-fJ.cjs";
1
+ import { Z as QuerySortOutput } from "../../index-D7QXaSOY.cjs";
2
+ import { mr as MediaMediumDocument } from "../../index-CTc84rze.cjs";
2
3
  import * as v from "valibot";
3
4
 
4
5
  //#region src/entities/media-medium/constants.d.ts
@@ -7,13 +8,13 @@ declare const LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE = 1000;
7
8
  declare const MEDIA_MEDIUM_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt"];
8
9
  //#endregion
9
10
  //#region src/entities/media-medium/fields.d.ts
10
- declare const QuerySortMediaMediums: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], 16, undefined>]>, undefined>;
11
+ declare const QuerySortMediaMediums: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_active" | "is_organic_social" | "is_paid_media" | "media_platforms.title" | "media_platforms.slug" | "media_platforms.utm_key" | "media_platforms.is_active" | "media_platforms.is_organic_social" | "media_platforms.is_paid_media" | "media_platforms.createdAt" | "media_platforms.updatedAt">>;
11
12
  type QuerySortMediaMediums = v.InferOutput<typeof QuerySortMediaMediums>;
12
13
  //#endregion
13
14
  //#region src/entities/media-medium/mutation.d.ts
14
15
  declare const CreateMediaMediumDocument: v.ObjectSchema<{
15
16
  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 slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
17
18
  readonly is_active: v.BooleanSchema<undefined>;
18
19
  readonly is_organic_social: v.BooleanSchema<undefined>;
19
20
  readonly is_paid_media: v.BooleanSchema<undefined>;
@@ -23,7 +24,7 @@ declare const CreateMediaMediumDocument: v.ObjectSchema<{
23
24
  type CreateMediaMediumDocument = v.InferOutput<typeof CreateMediaMediumDocument>;
24
25
  declare const UpdateMediaMediumDocument: v.ObjectSchema<{
25
26
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
- 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>;
27
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
27
28
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
28
29
  readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
29
30
  readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -35,7 +36,7 @@ declare const UpdateMediaMediumDocumentRequest: v.ObjectSchema<{
35
36
  readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
36
37
  readonly data: v.ObjectSchema<{
37
38
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
- 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>;
39
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
39
40
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
40
41
  readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
41
42
  readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -55,7 +56,7 @@ declare const QueryStrapiSearchMediaMediums: v.ObjectSchema<{
55
56
  readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
56
57
  readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
57
58
  readonly media_platforms: 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>]>, undefined>;
58
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], 16, undefined>]>, undefined>;
59
+ readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_active" | "is_organic_social" | "is_paid_media" | "media_platforms.title" | "media_platforms.slug" | "media_platforms.utm_key" | "media_platforms.is_active" | "media_platforms.is_organic_social" | "media_platforms.is_paid_media" | "media_platforms.createdAt" | "media_platforms.updatedAt">>;
59
60
  }, undefined>;
60
61
  type QueryStrapiSearchMediaMediums = v.InferOutput<typeof QueryStrapiSearchMediaMediums>;
61
62
  //#endregion
@@ -1,4 +1,5 @@
1
- import { sr as MediaMediumDocument } from "../../index-DEm89ERm.mjs";
1
+ import { Z as QuerySortOutput } from "../../index-Bjjp-2Sa.mjs";
2
+ import { mr as MediaMediumDocument } from "../../index-DpOKOSqT.mjs";
2
3
  import * as v from "valibot";
3
4
 
4
5
  //#region src/entities/media-medium/constants.d.ts
@@ -7,13 +8,13 @@ declare const LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE = 1000;
7
8
  declare const MEDIA_MEDIUM_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt"];
8
9
  //#endregion
9
10
  //#region src/entities/media-medium/fields.d.ts
10
- declare const QuerySortMediaMediums: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], 16, undefined>]>, undefined>;
11
+ declare const QuerySortMediaMediums: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_active" | "is_organic_social" | "is_paid_media" | "media_platforms.title" | "media_platforms.slug" | "media_platforms.utm_key" | "media_platforms.is_active" | "media_platforms.is_organic_social" | "media_platforms.is_paid_media" | "media_platforms.createdAt" | "media_platforms.updatedAt">>;
11
12
  type QuerySortMediaMediums = v.InferOutput<typeof QuerySortMediaMediums>;
12
13
  //#endregion
13
14
  //#region src/entities/media-medium/mutation.d.ts
14
15
  declare const CreateMediaMediumDocument: v.ObjectSchema<{
15
16
  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 slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
17
18
  readonly is_active: v.BooleanSchema<undefined>;
18
19
  readonly is_organic_social: v.BooleanSchema<undefined>;
19
20
  readonly is_paid_media: v.BooleanSchema<undefined>;
@@ -23,7 +24,7 @@ declare const CreateMediaMediumDocument: v.ObjectSchema<{
23
24
  type CreateMediaMediumDocument = v.InferOutput<typeof CreateMediaMediumDocument>;
24
25
  declare const UpdateMediaMediumDocument: v.ObjectSchema<{
25
26
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
- 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>;
27
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
27
28
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
28
29
  readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
29
30
  readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -35,7 +36,7 @@ declare const UpdateMediaMediumDocumentRequest: v.ObjectSchema<{
35
36
  readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
36
37
  readonly data: v.ObjectSchema<{
37
38
  readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
- 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>;
39
+ readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
39
40
  readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
40
41
  readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
41
42
  readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -55,7 +56,7 @@ declare const QueryStrapiSearchMediaMediums: v.ObjectSchema<{
55
56
  readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
56
57
  readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
57
58
  readonly media_platforms: 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>]>, undefined>;
58
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "is_active:ASC" | "is_paid_media:ASC" | "is_organic_social:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "is_active:DESC" | "is_paid_media:DESC" | "is_organic_social:DESC" | "slug:ASC" | "slug:DESC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], 16, undefined>]>, undefined>;
59
+ readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_active" | "is_organic_social" | "is_paid_media" | "media_platforms.title" | "media_platforms.slug" | "media_platforms.utm_key" | "media_platforms.is_active" | "media_platforms.is_organic_social" | "media_platforms.is_paid_media" | "media_platforms.createdAt" | "media_platforms.updatedAt">>;
59
60
  }, undefined>;
60
61
  type QueryStrapiSearchMediaMediums = v.InferOutput<typeof QueryStrapiSearchMediaMediums>;
61
62
  //#endregion
@@ -1,7 +1,9 @@
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, s as SQueryManyEntities } from "../../relationships-C6xfgdwR.mjs";
4
- import { V as MediaMediumDocument } from "../../document-kvIqz0p6.mjs";
1
+ import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
2
+ import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
3
+ import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
4
+ import { a as SAssociateManyEntitiesOptional, l as SQueryManyEntities, o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
5
+ import { t as VStringSlug } from "../../slug-BUtm1t-B.mjs";
6
+ import { H as MediaMediumDocument } from "../../document-BWso8VC7.mjs";
5
7
  import * as v from "valibot";
6
8
  //#region src/entities/media-medium/constants.ts
7
9
  const LIMIT_MEDIA_MEDIUM_PAGINATION_DEFAULT_SIZE = 100;
@@ -26,26 +28,26 @@ const MEDIA_MEDIUM_SORT_KEYS = [
26
28
  ];
27
29
  //#endregion
28
30
  //#region src/entities/media-medium/fields.ts
29
- const QuerySortMediaMediums = v.optional(v.pipe(v.array(v.picklist(MEDIA_MEDIUM_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(MEDIA_MEDIUM_SORT_KEYS.length)));
31
+ const QuerySortMediaMediums = createQuerySort(MEDIA_MEDIUM_SORT_KEYS);
30
32
  //#endregion
31
33
  //#region src/entities/media-medium/mutation.ts
32
34
  const CreateMediaMediumDocument = v.object({
33
- title: VStringMinMax(1, 255),
34
- slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
35
+ title: VStringMinMax(),
36
+ slug: VStringSlug(),
35
37
  is_active: v.boolean(),
36
38
  is_organic_social: v.boolean(),
37
39
  is_paid_media: v.boolean(),
38
- description: v.optional(v.nullable(VStringMax(255))),
39
- media_platforms: v.optional(SAssociateManyEntities)
40
+ description: v.optional(v.nullable(VStringMax())),
41
+ media_platforms: SAssociateManyEntitiesOptional
40
42
  });
41
43
  const UpdateMediaMediumDocument = v.object({
42
- title: v.optional(VStringMinMax(1, 255)),
43
- slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
44
+ title: v.optional(VStringMinMax()),
45
+ slug: v.optional(VStringSlug()),
44
46
  is_active: v.optional(v.boolean()),
45
47
  is_organic_social: v.optional(v.boolean()),
46
48
  is_paid_media: v.optional(v.boolean()),
47
- description: v.optional(v.nullable(VStringMax(255))),
48
- media_platforms: v.optional(SAssociateManyEntities)
49
+ description: v.optional(v.nullable(VStringMax())),
50
+ media_platforms: SAssociateManyEntitiesOptional
49
51
  });
50
52
  const UpdateMediaMediumDocumentRequest = v.object({
51
53
  documentId: SAssociateOneEntity,
@@ -1,9 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
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_relationships = require("../../relationships-HTBNe0F-.cjs");
6
- const require_document = require("../../document-DOVZwQRq.cjs");
3
+ const require_pagination = require("../../pagination-DWZDPzR4.cjs");
4
+ const require_sort = require("../../sort-CI87SH1y.cjs");
5
+ const require_string = require("../../string-Yn-6xiAZ.cjs");
6
+ const require_relationships = require("../../relationships-DjHwYd4r.cjs");
7
+ const require_slug = require("../../slug-cWXTZEIT.cjs");
8
+ const require_utm = require("../../utm-BqkYlpua.cjs");
9
+ const require_document = require("../../document-DwkycUz9.cjs");
7
10
  let valibot = require("valibot");
8
11
  valibot = require_chunk.__toESM(valibot, 1);
9
12
  //#region src/entities/media-platform/constants.ts
@@ -43,32 +46,32 @@ const MEDIA_PLATFORM_SORT_KEYS = [
43
46
  ];
44
47
  //#endregion
45
48
  //#region src/entities/media-platform/fields.ts
46
- const QuerySortMediaPlatforms = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_PLATFORM_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_PLATFORM_SORT_KEYS.length)));
49
+ const QuerySortMediaPlatforms = require_sort.createQuerySort(MEDIA_PLATFORM_SORT_KEYS);
47
50
  //#endregion
48
51
  //#region src/entities/media-platform/mutation.ts
49
52
  const CreateMediaPlatformDocument = valibot.object({
50
- title: require_validators.VStringMinMax(1, 255),
51
- slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
52
- utm_key: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
53
+ title: require_string.VStringMinMax(),
54
+ slug: require_slug.VStringSlug(),
55
+ utm_key: require_utm.VStringUtmKey(),
53
56
  is_active: valibot.boolean(),
54
57
  is_organic_social: valibot.boolean(),
55
58
  is_paid_media: valibot.boolean(),
56
- description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
57
- clients: valibot.optional(require_relationships.SAssociateManyEntities),
58
- media_content_types: valibot.optional(require_relationships.SAssociateManyEntities),
59
- media_mediums: valibot.optional(require_relationships.SAssociateManyEntities)
59
+ description: valibot.optional(valibot.nullable(require_string.VStringMax())),
60
+ clients: require_relationships.SAssociateManyEntitiesOptional,
61
+ media_content_types: require_relationships.SAssociateManyEntitiesOptional,
62
+ media_mediums: require_relationships.SAssociateManyEntitiesOptional
60
63
  });
61
64
  const UpdateMediaPlatformDocument = valibot.object({
62
- title: valibot.optional(require_validators.VStringMinMax(1, 255)),
63
- slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
64
- utm_key: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
65
+ title: valibot.optional(require_string.VStringMinMax()),
66
+ slug: valibot.optional(require_slug.VStringSlug()),
67
+ utm_key: valibot.optional(require_utm.VStringUtmKey()),
65
68
  is_active: valibot.optional(valibot.boolean()),
66
69
  is_organic_social: valibot.optional(valibot.boolean()),
67
70
  is_paid_media: valibot.optional(valibot.boolean()),
68
- description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
69
- clients: valibot.optional(require_relationships.SAssociateManyEntities),
70
- media_content_types: valibot.optional(require_relationships.SAssociateManyEntities),
71
- media_mediums: valibot.optional(require_relationships.SAssociateManyEntities)
71
+ description: valibot.optional(valibot.nullable(require_string.VStringMax())),
72
+ clients: require_relationships.SAssociateManyEntitiesOptional,
73
+ media_content_types: require_relationships.SAssociateManyEntitiesOptional,
74
+ media_mediums: require_relationships.SAssociateManyEntitiesOptional
72
75
  });
73
76
  const UpdateMediaPlatformDocumentRequest = valibot.object({
74
77
  documentId: require_relationships.SAssociateOneEntity,
@@ -77,11 +80,11 @@ const UpdateMediaPlatformDocumentRequest = valibot.object({
77
80
  //#endregion
78
81
  //#region src/entities/media-platform/query.ts
79
82
  const QueryStrapiSearchMediaPlatforms = valibot.object({
80
- page: require_validators.VPage(),
81
- size: require_validators.VSize(LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE),
82
- title: valibot.optional(require_validators.VStringMax()),
83
- slug: valibot.optional(require_validators.VStringMax()),
84
- utm_key: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE)),
83
+ page: require_pagination.VPage(),
84
+ size: require_pagination.VSize(LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE),
85
+ title: valibot.optional(require_string.VStringMax()),
86
+ slug: valibot.optional(require_string.VStringMax()),
87
+ utm_key: valibot.optional(require_utm.VStringUtmKey()),
85
88
  is_active: valibot.optional(valibot.boolean()),
86
89
  is_organic_social: valibot.optional(valibot.boolean()),
87
90
  is_paid_media: valibot.optional(valibot.boolean()),
@@ -1,2 +1,2 @@
1
- import { A as LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE, D as UpdateMediaPlatformDocumentRequest, E as UpdateMediaPlatformDocument, O as QuerySortMediaPlatforms, T as CreateMediaPlatformDocument, j as MEDIA_PLATFORM_SORT_KEYS, k as LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE, or as MediaPlatformDocument, w as QueryStrapiSearchMediaPlatforms } from "../../index-DXUuI-fJ.cjs";
1
+ import { A as LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE, D as UpdateMediaPlatformDocumentRequest, E as UpdateMediaPlatformDocument, O as QuerySortMediaPlatforms, T as CreateMediaPlatformDocument, j as MEDIA_PLATFORM_SORT_KEYS, k as LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE, pr as MediaPlatformDocument, w as QueryStrapiSearchMediaPlatforms } from "../../index-CTc84rze.cjs";
2
2
  export { CreateMediaPlatformDocument, LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE, LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE, MEDIA_PLATFORM_SORT_KEYS, MediaPlatformDocument, QuerySortMediaPlatforms, QueryStrapiSearchMediaPlatforms, UpdateMediaPlatformDocument, UpdateMediaPlatformDocumentRequest };
@@ -1,2 +1,2 @@
1
- import { A as LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE, D as UpdateMediaPlatformDocumentRequest, E as UpdateMediaPlatformDocument, O as QuerySortMediaPlatforms, T as CreateMediaPlatformDocument, j as MEDIA_PLATFORM_SORT_KEYS, k as LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE, or as MediaPlatformDocument, w as QueryStrapiSearchMediaPlatforms } from "../../index-DEm89ERm.mjs";
1
+ import { A as LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE, D as UpdateMediaPlatformDocumentRequest, E as UpdateMediaPlatformDocument, O as QuerySortMediaPlatforms, T as CreateMediaPlatformDocument, j as MEDIA_PLATFORM_SORT_KEYS, k as LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE, pr as MediaPlatformDocument, w as QueryStrapiSearchMediaPlatforms } from "../../index-DpOKOSqT.mjs";
2
2
  export { CreateMediaPlatformDocument, LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE, LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE, MEDIA_PLATFORM_SORT_KEYS, MediaPlatformDocument, QuerySortMediaPlatforms, QueryStrapiSearchMediaPlatforms, UpdateMediaPlatformDocument, UpdateMediaPlatformDocumentRequest };
@@ -1,7 +1,10 @@
1
- import { n as ERROR_MESSAGE_REGEX_URL_SLUG, o as REGEX_URL_SLUG, r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE } 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, s as SQueryManyEntities } from "../../relationships-C6xfgdwR.mjs";
4
- import { B as MediaPlatformDocument } from "../../document-kvIqz0p6.mjs";
1
+ import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
2
+ import { r as createQuerySort } from "../../sort-D3WwshqQ.mjs";
3
+ import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
4
+ import { a as SAssociateManyEntitiesOptional, l as SQueryManyEntities, o as SAssociateOneEntity } from "../../relationships-yPO5SILR.mjs";
5
+ import { t as VStringSlug } from "../../slug-BUtm1t-B.mjs";
6
+ import { r as VStringUtmKey } from "../../utm-ZUwmBoR2.mjs";
7
+ import { V as MediaPlatformDocument } from "../../document-BWso8VC7.mjs";
5
8
  import * as v from "valibot";
6
9
  //#region src/entities/media-platform/constants.ts
7
10
  const LIMIT_MEDIA_PLATFORM_PAGINATION_DEFAULT_SIZE = 100;
@@ -40,32 +43,32 @@ const MEDIA_PLATFORM_SORT_KEYS = [
40
43
  ];
41
44
  //#endregion
42
45
  //#region src/entities/media-platform/fields.ts
43
- const QuerySortMediaPlatforms = v.optional(v.pipe(v.array(v.picklist(MEDIA_PLATFORM_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(MEDIA_PLATFORM_SORT_KEYS.length)));
46
+ const QuerySortMediaPlatforms = createQuerySort(MEDIA_PLATFORM_SORT_KEYS);
44
47
  //#endregion
45
48
  //#region src/entities/media-platform/mutation.ts
46
49
  const CreateMediaPlatformDocument = v.object({
47
- title: VStringMinMax(1, 255),
48
- slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
49
- utm_key: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
50
+ title: VStringMinMax(),
51
+ slug: VStringSlug(),
52
+ utm_key: VStringUtmKey(),
50
53
  is_active: v.boolean(),
51
54
  is_organic_social: v.boolean(),
52
55
  is_paid_media: v.boolean(),
53
- description: v.optional(v.nullable(VStringMax(255))),
54
- clients: v.optional(SAssociateManyEntities),
55
- media_content_types: v.optional(SAssociateManyEntities),
56
- media_mediums: v.optional(SAssociateManyEntities)
56
+ description: v.optional(v.nullable(VStringMax())),
57
+ clients: SAssociateManyEntitiesOptional,
58
+ media_content_types: SAssociateManyEntitiesOptional,
59
+ media_mediums: SAssociateManyEntitiesOptional
57
60
  });
58
61
  const UpdateMediaPlatformDocument = v.object({
59
- title: v.optional(VStringMinMax(1, 255)),
60
- slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
61
- utm_key: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
62
+ title: v.optional(VStringMinMax()),
63
+ slug: v.optional(VStringSlug()),
64
+ utm_key: v.optional(VStringUtmKey()),
62
65
  is_active: v.optional(v.boolean()),
63
66
  is_organic_social: v.optional(v.boolean()),
64
67
  is_paid_media: v.optional(v.boolean()),
65
- description: v.optional(v.nullable(VStringMax(255))),
66
- clients: v.optional(SAssociateManyEntities),
67
- media_content_types: v.optional(SAssociateManyEntities),
68
- media_mediums: v.optional(SAssociateManyEntities)
68
+ description: v.optional(v.nullable(VStringMax())),
69
+ clients: SAssociateManyEntitiesOptional,
70
+ media_content_types: SAssociateManyEntitiesOptional,
71
+ media_mediums: SAssociateManyEntitiesOptional
69
72
  });
70
73
  const UpdateMediaPlatformDocumentRequest = v.object({
71
74
  documentId: SAssociateOneEntity,
@@ -78,7 +81,7 @@ const QueryStrapiSearchMediaPlatforms = v.object({
78
81
  size: VSize(LIMIT_MEDIA_PLATFORM_PAGINATION_MAX_SIZE),
79
82
  title: v.optional(VStringMax()),
80
83
  slug: v.optional(VStringMax()),
81
- utm_key: v.optional(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
84
+ utm_key: v.optional(VStringUtmKey()),
82
85
  is_active: v.optional(v.boolean()),
83
86
  is_organic_social: v.optional(v.boolean()),
84
87
  is_paid_media: v.optional(v.boolean()),
@@ -1,9 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
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_relationships = require("../../relationships-HTBNe0F-.cjs");
6
- const require_document = require("../../document-DOVZwQRq.cjs");
3
+ const require_pagination = require("../../pagination-DWZDPzR4.cjs");
4
+ const require_sort = require("../../sort-CI87SH1y.cjs");
5
+ const require_string = require("../../string-Yn-6xiAZ.cjs");
6
+ const require_relationships = require("../../relationships-DjHwYd4r.cjs");
7
+ const require_slug = require("../../slug-cWXTZEIT.cjs");
8
+ const require_document = require("../../document-DwkycUz9.cjs");
7
9
  let valibot = require("valibot");
8
10
  valibot = require_chunk.__toESM(valibot, 1);
9
11
  //#region src/entities/monday-workspace/constants.ts
@@ -20,18 +22,18 @@ const MONDAY_WORKSPACE_SORT_KEYS = [
20
22
  ];
21
23
  //#endregion
22
24
  //#region src/entities/monday-workspace/fields.ts
23
- const QuerySortMondayWorkspaces = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MONDAY_WORKSPACE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MONDAY_WORKSPACE_SORT_KEYS.length)));
25
+ const QuerySortMondayWorkspaces = require_sort.createQuerySort(MONDAY_WORKSPACE_SORT_KEYS);
24
26
  //#endregion
25
27
  //#region src/entities/monday-workspace/mutation.ts
26
28
  const CreateMondayWorkspaceDocument = valibot.object({
27
- title: require_validators.VStringShort(),
28
- workspace_id: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE),
29
- clients: valibot.optional(require_relationships.SAssociateManyEntities)
29
+ title: require_string.VStringShort(),
30
+ workspace_id: require_slug.VStringSlug(),
31
+ clients: require_relationships.SAssociateManyEntitiesOptional
30
32
  });
31
33
  const UpdateMondayWorkspaceDocument = valibot.object({
32
- title: valibot.optional(require_validators.VStringShort()),
33
- workspace_id: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE)),
34
- clients: valibot.optional(require_relationships.SAssociateManyEntities)
34
+ title: valibot.optional(require_string.VStringShort()),
35
+ workspace_id: valibot.optional(require_slug.VStringSlug()),
36
+ clients: require_relationships.SAssociateManyEntitiesOptional
35
37
  });
36
38
  const UpdateMondayWorkspaceDocumentRequest = valibot.object({
37
39
  documentId: require_relationships.SAssociateOneEntity,
@@ -40,10 +42,10 @@ const UpdateMondayWorkspaceDocumentRequest = valibot.object({
40
42
  //#endregion
41
43
  //#region src/entities/monday-workspace/query.ts
42
44
  const QueryStrapiSearchMondayWorkspaces = valibot.object({
43
- page: require_validators.VPage(),
44
- size: require_validators.VSize(LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE),
45
- title: valibot.optional(require_validators.VStringMax()),
46
- workspace_id: valibot.optional(require_validators.VStringMax()),
45
+ page: require_pagination.VPage(),
46
+ size: require_pagination.VSize(LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE),
47
+ title: valibot.optional(require_string.VStringMax()),
48
+ workspace_id: valibot.optional(require_string.VStringMax()),
47
49
  clients: valibot.optional(require_relationships.SQueryManyEntities),
48
50
  sort: QuerySortMondayWorkspaces
49
51
  });
@@ -1,2 +1,2 @@
1
- import { At as MondayWorkspaceDocument, Dt as UpdateMondayWorkspaceDocument, Et as CreateMondayWorkspaceDocument, Mt as LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE, Nt as MONDAY_WORKSPACE_SORT_KEYS, Ot as UpdateMondayWorkspaceDocumentRequest, Tt as QueryStrapiSearchMondayWorkspaces, jt as LIMIT_MONDAY_WORKSPACE_PAGINATION_DEFAULT_SIZE, kt as QuerySortMondayWorkspaces } from "../../index-DXUuI-fJ.cjs";
1
+ import { Ft as QuerySortMondayWorkspaces, It as MondayWorkspaceDocument, Lt as LIMIT_MONDAY_WORKSPACE_PAGINATION_DEFAULT_SIZE, Mt as CreateMondayWorkspaceDocument, Nt as UpdateMondayWorkspaceDocument, Pt as UpdateMondayWorkspaceDocumentRequest, Rt as LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE, jt as QueryStrapiSearchMondayWorkspaces, zt as MONDAY_WORKSPACE_SORT_KEYS } from "../../index-CTc84rze.cjs";
2
2
  export { CreateMondayWorkspaceDocument, LIMIT_MONDAY_WORKSPACE_PAGINATION_DEFAULT_SIZE, LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE, MONDAY_WORKSPACE_SORT_KEYS, MondayWorkspaceDocument, QuerySortMondayWorkspaces, QueryStrapiSearchMondayWorkspaces, UpdateMondayWorkspaceDocument, UpdateMondayWorkspaceDocumentRequest };