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

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 (278) 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/formatter/index.d.cts +5 -5
  93. package/dist/entities/formatter/index.d.mts +5 -5
  94. package/dist/entities/gcflytour/index.cjs +21 -19
  95. package/dist/entities/gcflytour/index.d.cts +1 -1
  96. package/dist/entities/gcflytour/index.d.mts +1 -1
  97. package/dist/entities/gcflytour/index.mjs +17 -15
  98. package/dist/entities/gcflytour-snap/index.cjs +20 -18
  99. package/dist/entities/gcflytour-snap/index.d.cts +1 -1
  100. package/dist/entities/gcflytour-snap/index.d.mts +1 -1
  101. package/dist/entities/gcflytour-snap/index.mjs +16 -14
  102. package/dist/entities/landing-page/index.d.cts +2 -2
  103. package/dist/entities/landing-page/index.d.mts +3 -3
  104. package/dist/entities/lead/index.cjs +25 -23
  105. package/dist/entities/lead/index.mjs +15 -13
  106. package/dist/entities/media-content-type/index.cjs +21 -19
  107. package/dist/entities/media-content-type/index.d.cts +7 -6
  108. package/dist/entities/media-content-type/index.d.mts +7 -6
  109. package/dist/entities/media-content-type/index.mjs +17 -15
  110. package/dist/entities/media-creative-format/index.cjs +19 -17
  111. package/dist/entities/media-creative-format/index.d.cts +7 -6
  112. package/dist/entities/media-creative-format/index.d.mts +7 -6
  113. package/dist/entities/media-creative-format/index.mjs +15 -13
  114. package/dist/entities/media-medium/index.cjs +19 -17
  115. package/dist/entities/media-medium/index.d.cts +7 -6
  116. package/dist/entities/media-medium/index.d.mts +7 -6
  117. package/dist/entities/media-medium/index.mjs +15 -13
  118. package/dist/entities/media-platform/index.cjs +27 -24
  119. package/dist/entities/media-platform/index.d.cts +1 -1
  120. package/dist/entities/media-platform/index.d.mts +1 -1
  121. package/dist/entities/media-platform/index.mjs +23 -20
  122. package/dist/entities/monday-workspace/index.cjs +17 -15
  123. package/dist/entities/monday-workspace/index.d.cts +1 -1
  124. package/dist/entities/monday-workspace/index.d.mts +1 -1
  125. package/dist/entities/monday-workspace/index.mjs +11 -9
  126. package/dist/entities/newsletter-signup/index.cjs +25 -23
  127. package/dist/entities/newsletter-signup/index.mjs +13 -11
  128. package/dist/entities/policy-page/index.cjs +2 -1
  129. package/dist/entities/policy-page/index.d.cts +1 -1
  130. package/dist/entities/policy-page/index.d.mts +2 -2
  131. package/dist/entities/policy-page/index.mjs +2 -1
  132. package/dist/entities/product/index.cjs +1 -1
  133. package/dist/entities/product/index.d.cts +1 -1
  134. package/dist/entities/product/index.d.mts +1 -1
  135. package/dist/entities/product/index.mjs +1 -1
  136. package/dist/entities/product-highlight/index.cjs +1 -1
  137. package/dist/entities/product-highlight/index.d.cts +1 -1
  138. package/dist/entities/product-highlight/index.d.mts +1 -1
  139. package/dist/entities/product-highlight/index.mjs +1 -1
  140. package/dist/entities/resume/index.cjs +43 -40
  141. package/dist/entities/resume/index.mjs +16 -13
  142. package/dist/entities/sharpspring/index.cjs +9 -8
  143. package/dist/entities/sharpspring/index.mjs +6 -5
  144. package/dist/entities/tag/index.cjs +15 -13
  145. package/dist/entities/tag/index.d.cts +6 -5
  146. package/dist/entities/tag/index.d.mts +7 -6
  147. package/dist/entities/tag/index.mjs +11 -9
  148. package/dist/entities/team-member/index.cjs +11 -9
  149. package/dist/entities/team-member/index.d.cts +2 -2
  150. package/dist/entities/team-member/index.d.mts +2 -2
  151. package/dist/entities/team-member/index.mjs +7 -4
  152. package/dist/entities/team-page/index.d.cts +1 -1
  153. package/dist/entities/team-page/index.d.mts +1 -1
  154. package/dist/entities/teamwork/index.cjs +12 -11
  155. package/dist/entities/teamwork/index.d.mts +1 -1
  156. package/dist/entities/teamwork/index.mjs +7 -6
  157. package/dist/entities/trend/index.cjs +2 -2
  158. package/dist/entities/trend/index.d.cts +1 -1
  159. package/dist/entities/trend/index.d.mts +1 -1
  160. package/dist/entities/trend/index.mjs +2 -2
  161. package/dist/entities/up-auth/index.cjs +18 -15
  162. package/dist/entities/up-auth/index.d.cts +1 -1
  163. package/dist/entities/up-auth/index.d.mts +1 -1
  164. package/dist/entities/up-auth/index.mjs +6 -3
  165. package/dist/entities/up-permission/index.cjs +1 -1
  166. package/dist/entities/up-permission/index.d.cts +1 -1
  167. package/dist/entities/up-permission/index.d.mts +1 -1
  168. package/dist/entities/up-permission/index.mjs +1 -1
  169. package/dist/entities/up-role/index.cjs +1 -1
  170. package/dist/entities/up-role/index.d.cts +1 -1
  171. package/dist/entities/up-role/index.d.mts +1 -1
  172. package/dist/entities/up-role/index.mjs +1 -1
  173. package/dist/entities/up-user/index.cjs +2 -1
  174. package/dist/entities/up-user/index.d.cts +2 -2
  175. package/dist/entities/up-user/index.d.mts +2 -2
  176. package/dist/entities/up-user/index.mjs +2 -2
  177. package/dist/entities/upload/index.cjs +11 -11
  178. package/dist/entities/upload/index.mjs +7 -7
  179. package/dist/entities/url-redirect/index.cjs +5 -4
  180. package/dist/entities/url-redirect/index.d.cts +3 -2
  181. package/dist/entities/url-redirect/index.d.mts +3 -2
  182. package/dist/entities/url-redirect/index.mjs +4 -3
  183. package/dist/entities/user-account/index.cjs +10 -11
  184. package/dist/entities/user-account/index.d.cts +2 -2
  185. package/dist/entities/user-account/index.d.mts +2 -2
  186. package/dist/entities/user-account/index.mjs +10 -11
  187. package/dist/entities/utm-link-builder/index.cjs +30 -36
  188. package/dist/entities/utm-link-builder/index.d.cts +6 -6
  189. package/dist/entities/utm-link-builder/index.d.mts +6 -6
  190. package/dist/entities/utm-link-builder/index.mjs +22 -28
  191. package/dist/entities/utm-tracking-link/index.cjs +110 -104
  192. package/dist/entities/utm-tracking-link/index.d.cts +2 -2
  193. package/dist/entities/utm-tracking-link/index.d.mts +2 -2
  194. package/dist/entities/utm-tracking-link/index.mjs +68 -68
  195. package/dist/error-messages-9ZhRqNGW.mjs +10 -0
  196. package/dist/error-messages-C0I1kOur.cjs +51 -0
  197. package/dist/generators/index.cjs +231 -0
  198. package/dist/generators/index.d.cts +19 -0
  199. package/dist/generators/index.d.mts +19 -0
  200. package/dist/generators/index.mjs +226 -0
  201. package/dist/index-BOxQLeAK.d.cts +317 -0
  202. package/dist/index-BSYaAtme.d.mts +486 -0
  203. package/dist/index-BT8Pa9XY.d.mts +317 -0
  204. package/dist/{index-DXo7B4ng.d.mts → index-Bjjp-2Sa.d.mts} +20 -99
  205. package/dist/{index-DXUuI-fJ.d.cts → index-C1GoH-4v.d.cts} +91 -76
  206. package/dist/{index-D_YPjLxv.d.cts → index-CBW5QmNu.d.cts} +4 -3
  207. package/dist/index-COpLbpQC.d.cts +486 -0
  208. package/dist/{index-DEm89ERm.d.mts → index-ClQOYhKi.d.mts} +94 -79
  209. package/dist/index-Cqmmzi2g.d.mts +944 -0
  210. package/dist/{index-B_L_83Q2.d.cts → index-D7QXaSOY.d.cts} +19 -98
  211. package/dist/index-DG_Lwaa7.d.cts +1324 -0
  212. package/dist/{index-D3KnOYr7.d.mts → index-DKFW5ay8.d.mts} +4 -3
  213. package/dist/index-Dvu63a8_.d.mts +1324 -0
  214. package/dist/index-WN2TBKki.d.cts +944 -0
  215. package/dist/limits-CKGuEuKA.mjs +37 -0
  216. package/dist/{regex-Cl5goNwp.cjs → limits-CW6iJ7kB.cjs} +0 -102
  217. package/dist/number-Bt4nZKCU.cjs +19 -0
  218. package/dist/number-OMFRufFt.mjs +6 -0
  219. package/dist/pagination-D5l_UjyM.mjs +7 -0
  220. package/dist/pagination-DWZDPzR4.cjs +20 -0
  221. package/dist/permissions/index.cjs +2 -2
  222. package/dist/permissions/index.d.cts +1 -1
  223. package/dist/permissions/index.d.mts +1 -1
  224. package/dist/permissions/index.mjs +2 -2
  225. package/dist/phone-C9TNVDm_.mjs +8 -0
  226. package/dist/phone-D_ZLG1Qv.cjs +21 -0
  227. package/dist/{query-DHY-nlUQ.mjs → query-BR5Ze6T2.mjs} +7 -11
  228. package/dist/{query-DelNcssC.cjs → query-qQ_HLlxx.cjs} +13 -29
  229. package/dist/regex-BEFTMiHO.cjs +51 -0
  230. package/dist/regex-pSdcbWzV.mjs +10 -0
  231. package/dist/relation-Bd-xUcj8.cjs +33 -0
  232. package/dist/relation-DMhLjp7K.mjs +8 -0
  233. package/dist/{relationships-HTBNe0F-.cjs → relationships-DjHwYd4r.cjs} +23 -9
  234. package/dist/{relationships-C6xfgdwR.mjs → relationships-yPO5SILR.mjs} +7 -5
  235. package/dist/slug-BUtm1t-B.mjs +7 -0
  236. package/dist/slug-cWXTZEIT.cjs +14 -0
  237. package/dist/sort-CI87SH1y.cjs +33 -0
  238. package/dist/sort-D3WwshqQ.mjs +14 -0
  239. package/dist/{strapi-DvyAfgFF.mjs → strapi-B2cNPAao.mjs} +1 -1
  240. package/dist/{strapi-QFDWi4vD.cjs → strapi-RlhF30B7.cjs} +1 -1
  241. package/dist/string-BHHnD2Qu.mjs +42 -0
  242. package/dist/string-Yn-6xiAZ.cjs +97 -0
  243. package/dist/urls-UOvhCu0z.mjs +14 -0
  244. package/dist/urls-og5upHgL.cjs +27 -0
  245. package/dist/utilities/index.cjs +1 -1
  246. package/dist/utilities/index.d.cts +6 -6
  247. package/dist/utilities/index.d.mts +6 -6
  248. package/dist/utilities/index.mjs +1 -1
  249. package/dist/utm-BqkYlpua.cjs +47 -0
  250. package/dist/utm-ZUwmBoR2.mjs +28 -0
  251. package/dist/validators/index.cjs +36 -0
  252. package/dist/validators/index.d.cts +94 -0
  253. package/dist/validators/index.d.mts +94 -0
  254. package/dist/validators/index.mjs +10 -0
  255. package/package.json +29 -2
  256. package/dist/index-B3VtiObV.d.mts +0 -317
  257. package/dist/index-BxEBUjx2.d.mts +0 -486
  258. package/dist/index-CQP_vcmO.d.cts +0 -317
  259. package/dist/index-CRoWUxGV.d.cts +0 -1324
  260. package/dist/index-DYSlcIkJ.d.mts +0 -945
  261. package/dist/index-Dmtom8iC.d.cts +0 -945
  262. package/dist/index-auU0DaW5.d.cts +0 -486
  263. package/dist/index-oCLNrzIj.d.mts +0 -1324
  264. package/dist/regex-BnKGcdS4.mjs +0 -55
  265. package/dist/validators-Bc9Is5Sr.cjs +0 -222
  266. package/dist/validators-P5E_3qzc.mjs +0 -95
  267. /package/dist/{abac-DPd9oLKR.mjs → abac-BPxkvVVy.mjs} +0 -0
  268. /package/dist/{abac-BeKQtxIF.cjs → abac-YYI2Ckwv.cjs} +0 -0
  269. /package/dist/{constants-Htf-MeCA.mjs → constants-C4cy6LoY.mjs} +0 -0
  270. /package/dist/{constants-f1GP2eiq.cjs → constants-D6DsS_A0.cjs} +0 -0
  271. /package/dist/{document-DaICHS9G.cjs → document-B4FY2KXQ.cjs} +0 -0
  272. /package/dist/{document-c3GNPelp.mjs → document-De-prPhc.mjs} +0 -0
  273. /package/dist/{document-CbE38CzE.d.mts → document-DxjJgk8X.d.mts} +0 -0
  274. /package/dist/{index-DLICmJ_-.d.mts → index-BSEaV9wd.d.mts} +0 -0
  275. /package/dist/{json-BrVkpLbC.d.mts → json--oetJLQY.d.mts} +0 -0
  276. /package/dist/{media-upload-DKeA1eD-.d.mts → media-upload-DBG7YyU4.d.mts} +0 -0
  277. /package/dist/{strapi-BDLWeEyv.mjs → strapi-CE9bz7Kc.mjs} +0 -0
  278. /package/dist/{strapi-C4HuWGb_.cjs → strapi-D8C1C0D7.cjs} +0 -0
@@ -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-creative-format/constants.ts
@@ -26,22 +28,22 @@ const MEDIA_CREATIVE_FORMAT_SORT_KEYS = [
26
28
  ];
27
29
  //#endregion
28
30
  //#region src/entities/media-creative-format/fields.ts
29
- const QuerySortMediaCreativeFormats = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_CREATIVE_FORMAT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_CREATIVE_FORMAT_SORT_KEYS.length)));
31
+ const QuerySortMediaCreativeFormats = require_sort.createQuerySort(MEDIA_CREATIVE_FORMAT_SORT_KEYS);
30
32
  //#endregion
31
33
  //#region src/entities/media-creative-format/mutation.ts
32
34
  const CreateMediaCreativeFormatDocument = valibot.object({
33
- title: require_validators.VStringMinMax(1, 255),
34
- slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
35
+ title: require_string.VStringMinMax(),
36
+ slug: require_slug.VStringSlug(),
35
37
  is_active: valibot.boolean(),
36
- description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
37
- media_content_types: valibot.optional(require_relationships.SAssociateManyEntities)
38
+ description: valibot.optional(valibot.nullable(require_string.VStringMax())),
39
+ media_content_types: require_relationships.SAssociateManyEntitiesOptional
38
40
  });
39
41
  const UpdateMediaCreativeFormatDocument = valibot.object({
40
- title: valibot.optional(require_validators.VStringMinMax(1, 255)),
41
- slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
42
+ title: valibot.optional(require_string.VStringMinMax()),
43
+ slug: valibot.optional(require_slug.VStringSlug()),
42
44
  is_active: valibot.optional(valibot.boolean()),
43
- description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
44
- media_content_types: valibot.optional(require_relationships.SAssociateManyEntities)
45
+ description: valibot.optional(valibot.nullable(require_string.VStringMax())),
46
+ media_content_types: require_relationships.SAssociateManyEntitiesOptional
45
47
  });
46
48
  const UpdateMediaCreativeFormatDocumentRequest = valibot.object({
47
49
  documentId: require_relationships.SAssociateOneEntity,
@@ -50,10 +52,10 @@ const UpdateMediaCreativeFormatDocumentRequest = valibot.object({
50
52
  //#endregion
51
53
  //#region src/entities/media-creative-format/query.ts
52
54
  const QueryStrapiSearchMediaCreativeFormats = valibot.object({
53
- page: require_validators.VPage(),
54
- size: require_validators.VSize(LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE),
55
- title: valibot.optional(require_validators.VStringMax()),
56
- slug: valibot.optional(require_validators.VStringMax()),
55
+ page: require_pagination.VPage(),
56
+ size: require_pagination.VSize(LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE),
57
+ title: valibot.optional(require_string.VStringMax()),
58
+ slug: valibot.optional(require_string.VStringMax()),
57
59
  is_active: valibot.optional(valibot.boolean()),
58
60
  media_content_types: valibot.optional(require_relationships.SQueryManyEntities),
59
61
  sort: QuerySortMediaCreativeFormats
@@ -1,4 +1,5 @@
1
- import { lr as MediaCreativeFormatDocument } from "../../index-DXUuI-fJ.cjs";
1
+ import { Z as QuerySortOutput } from "../../index-D7QXaSOY.cjs";
2
+ import { gr as MediaCreativeFormatDocument } from "../../index-C1GoH-4v.cjs";
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,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-ClQOYhKi.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-C1GoH-4v.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-ClQOYhKi.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-C1GoH-4v.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-ClQOYhKi.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 };