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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/README.md +2 -40
  2. package/dist/base/index.cjs +106 -0
  3. package/dist/base/index.d.cts +5 -0
  4. package/dist/base/index.d.mts +5 -0
  5. package/dist/base/index.mjs +21 -0
  6. package/dist/component-BPHZTfVY.mjs +6 -0
  7. package/dist/component-DLjTD_qK.cjs +19 -0
  8. package/dist/components/blocks/index.cjs +207 -0
  9. package/dist/components/blocks/index.d.cts +1322 -0
  10. package/dist/components/blocks/index.d.mts +1322 -0
  11. package/dist/components/blocks/index.mjs +175 -0
  12. package/dist/components/brand/index.cjs +37 -0
  13. package/dist/components/brand/index.d.cts +315 -0
  14. package/dist/components/brand/index.d.mts +315 -0
  15. package/dist/components/brand/index.mjs +31 -0
  16. package/dist/components/forms/index.cjs +70 -0
  17. package/dist/components/forms/index.d.cts +333 -0
  18. package/dist/components/forms/index.d.mts +333 -0
  19. package/dist/components/forms/index.mjs +58 -0
  20. package/dist/components/shared/index.cjs +127 -0
  21. package/dist/components/shared/index.d.cts +917 -0
  22. package/dist/components/shared/index.d.mts +917 -0
  23. package/dist/components/shared/index.mjs +107 -0
  24. package/dist/components/slideshow/index.cjs +129 -0
  25. package/dist/components/slideshow/index.d.cts +742 -0
  26. package/dist/components/slideshow/index.d.mts +742 -0
  27. package/dist/components/slideshow/index.mjs +106 -0
  28. package/dist/components/utm/index.cjs +55 -0
  29. package/dist/components/utm/index.d.cts +32 -0
  30. package/dist/components/utm/index.d.mts +32 -0
  31. package/dist/components/utm/index.mjs +47 -0
  32. package/dist/constants/index.cjs +243 -0
  33. package/dist/constants/index.d.cts +197 -0
  34. package/dist/constants/index.d.mts +197 -0
  35. package/dist/constants/index.mjs +182 -0
  36. package/dist/constants-L2goO7Eg.mjs +85 -0
  37. package/dist/constants-PBZKggHL.cjs +102 -0
  38. package/dist/document-BAro2Mrj.cjs +18 -0
  39. package/dist/document-BAzLIprH.d.mts +100 -0
  40. package/dist/document-BFukanLe.mjs +54 -0
  41. package/dist/document-BK1ASowb.d.cts +17 -0
  42. package/dist/document-BMxLOdrT.d.cts +267 -0
  43. package/dist/document-BNoXPGwF.d.mts +27 -0
  44. package/dist/document-B_pJW777.d.mts +30 -0
  45. package/dist/document-Bd2AyLs8.d.mts +16 -0
  46. package/dist/document-BezYxNmb.d.cts +16 -0
  47. package/dist/document-Bj7SRTOn.d.cts +18 -0
  48. package/dist/document-Bo869pZx.d.mts +18 -0
  49. package/dist/document-Bpr9mbCs.d.mts +15 -0
  50. package/dist/document-Bqoi1MdT.mjs +11 -0
  51. package/dist/document-Bs8c1mok.d.cts +15 -0
  52. package/dist/document-C0c7azOe.d.mts +434 -0
  53. package/dist/document-CTTDXzOF.mjs +13 -0
  54. package/dist/document-CUl_Ys6-.mjs +23 -0
  55. package/dist/document-CWYzG60q.d.cts +19 -0
  56. package/dist/document-Ccszj8lR.cjs +20 -0
  57. package/dist/document-CjNHI7Eb.d.cts +27 -0
  58. package/dist/document-Cu_HUDC5.mjs +51 -0
  59. package/dist/document-D-KvyEb5.d.cts +238 -0
  60. package/dist/document-D2nLVGig.d.mts +238 -0
  61. package/dist/document-D5yDIDIx.d.mts +15 -0
  62. package/dist/document-D73dqRle.d.cts +19 -0
  63. package/dist/document-DA6YVZz-.d.cts +100 -0
  64. package/dist/document-DJ0YiVte.d.cts +30 -0
  65. package/dist/document-DMHIUE3J.d.mts +17 -0
  66. package/dist/document-DN3g0EFx.d.cts +434 -0
  67. package/dist/document-DWapIF7V.d.cts +12223 -0
  68. package/dist/document-DYzRVV1C.d.mts +16 -0
  69. package/dist/document-D_ZMbzn6.d.cts +18 -0
  70. package/dist/document-DeoRGh7p.d.mts +19 -0
  71. package/dist/document-DsIPBTG8.cjs +30 -0
  72. package/dist/document-DsSaMVGb.cjs +106 -0
  73. package/dist/document-Gx2Vrg_w.d.mts +267 -0
  74. package/dist/document-IIJpsOIO.d.cts +16 -0
  75. package/dist/document-WHS8GHY5.d.mts +18 -0
  76. package/dist/document-dqrWptdY.d.cts +244 -0
  77. package/dist/document-hEBlSep8.d.cts +15 -0
  78. package/dist/document-qcC-10Nd.d.mts +12223 -0
  79. package/dist/document-rbMXLGxt.cjs +103 -0
  80. package/dist/document-si7GYS5g.d.mts +19 -0
  81. package/dist/document-vq-7rcU5.d.mts +244 -0
  82. package/dist/entities/audit-log/index.cjs +127 -0
  83. package/dist/entities/audit-log/index.d.cts +134 -0
  84. package/dist/entities/audit-log/index.d.mts +134 -0
  85. package/dist/entities/audit-log/index.mjs +115 -0
  86. package/dist/entities/blog-page/index.cjs +16 -0
  87. package/dist/entities/blog-page/index.d.cts +257 -0
  88. package/dist/entities/blog-page/index.d.mts +257 -0
  89. package/dist/entities/blog-page/index.mjs +13 -0
  90. package/dist/entities/blog-post/index.cjs +33 -0
  91. package/dist/entities/blog-post/index.d.cts +917 -0
  92. package/dist/entities/blog-post/index.d.mts +917 -0
  93. package/dist/entities/blog-post/index.mjs +21 -0
  94. package/dist/entities/careers-page/index.cjs +16 -0
  95. package/dist/entities/careers-page/index.d.cts +257 -0
  96. package/dist/entities/careers-page/index.d.mts +257 -0
  97. package/dist/entities/careers-page/index.mjs +13 -0
  98. package/dist/entities/category/index.cjs +63 -0
  99. package/dist/entities/category/index.d.cts +300 -0
  100. package/dist/entities/category/index.d.mts +300 -0
  101. package/dist/entities/category/index.mjs +52 -0
  102. package/dist/entities/client/index.cjs +96 -0
  103. package/dist/entities/client/index.d.cts +85 -0
  104. package/dist/entities/client/index.d.mts +85 -0
  105. package/dist/entities/client/index.mjs +83 -0
  106. package/dist/entities/client-content-pillar/index.cjs +70 -0
  107. package/dist/entities/client-content-pillar/index.d.cts +49 -0
  108. package/dist/entities/client-content-pillar/index.d.mts +49 -0
  109. package/dist/entities/client-content-pillar/index.mjs +59 -0
  110. package/dist/entities/client-media-platform/index.cjs +74 -0
  111. package/dist/entities/client-media-platform/index.d.cts +53 -0
  112. package/dist/entities/client-media-platform/index.d.mts +53 -0
  113. package/dist/entities/client-media-platform/index.mjs +63 -0
  114. package/dist/entities/client-project/index.cjs +205 -0
  115. package/dist/entities/client-project/index.d.cts +147 -0
  116. package/dist/entities/client-project/index.d.mts +147 -0
  117. package/dist/entities/client-project/index.mjs +188 -0
  118. package/dist/entities/client-report/index.cjs +82 -0
  119. package/dist/entities/client-report/index.d.cts +63 -0
  120. package/dist/entities/client-report/index.d.mts +63 -0
  121. package/dist/entities/client-report/index.mjs +71 -0
  122. package/dist/entities/client-styleguide/index.cjs +77 -0
  123. package/dist/entities/client-styleguide/index.d.cts +48 -0
  124. package/dist/entities/client-styleguide/index.d.mts +48 -0
  125. package/dist/entities/client-styleguide/index.mjs +66 -0
  126. package/dist/entities/client-user/index.cjs +78 -0
  127. package/dist/entities/client-user/index.d.cts +47 -0
  128. package/dist/entities/client-user/index.d.mts +47 -0
  129. package/dist/entities/client-user/index.mjs +64 -0
  130. package/dist/entities/comment/index.cjs +137 -0
  131. package/dist/entities/comment/index.d.cts +2 -0
  132. package/dist/entities/comment/index.d.mts +2 -0
  133. package/dist/entities/comment/index.mjs +116 -0
  134. package/dist/entities/content-pillar/index.cjs +59 -0
  135. package/dist/entities/content-pillar/index.d.cts +50 -0
  136. package/dist/entities/content-pillar/index.d.mts +50 -0
  137. package/dist/entities/content-pillar/index.mjs +48 -0
  138. package/dist/entities/faq-page/index.cjs +17 -0
  139. package/dist/entities/faq-page/index.d.cts +335 -0
  140. package/dist/entities/faq-page/index.d.mts +335 -0
  141. package/dist/entities/faq-page/index.mjs +14 -0
  142. package/dist/entities/formatter/index.cjs +258 -0
  143. package/dist/entities/formatter/index.d.cts +121 -0
  144. package/dist/entities/formatter/index.d.mts +121 -0
  145. package/dist/entities/formatter/index.mjs +233 -0
  146. package/dist/entities/gcflytour/index.cjs +79 -0
  147. package/dist/entities/gcflytour/index.d.cts +61 -0
  148. package/dist/entities/gcflytour/index.d.mts +61 -0
  149. package/dist/entities/gcflytour/index.mjs +68 -0
  150. package/dist/entities/gcflytour-snap/index.cjs +78 -0
  151. package/dist/entities/gcflytour-snap/index.d.cts +59 -0
  152. package/dist/entities/gcflytour-snap/index.d.mts +59 -0
  153. package/dist/entities/gcflytour-snap/index.mjs +67 -0
  154. package/dist/entities/landing-page/index.cjs +28 -0
  155. package/dist/entities/landing-page/index.d.cts +479 -0
  156. package/dist/entities/landing-page/index.d.mts +479 -0
  157. package/dist/entities/landing-page/index.mjs +25 -0
  158. package/dist/entities/lead/index.cjs +63 -0
  159. package/dist/entities/lead/index.d.cts +75 -0
  160. package/dist/entities/lead/index.d.mts +75 -0
  161. package/dist/entities/lead/index.mjs +57 -0
  162. package/dist/entities/media-content-type/index.cjs +100 -0
  163. package/dist/entities/media-content-type/index.d.cts +66 -0
  164. package/dist/entities/media-content-type/index.d.mts +66 -0
  165. package/dist/entities/media-content-type/index.mjs +89 -0
  166. package/dist/entities/media-creative-format/index.cjs +79 -0
  167. package/dist/entities/media-creative-format/index.d.cts +54 -0
  168. package/dist/entities/media-creative-format/index.d.mts +54 -0
  169. package/dist/entities/media-creative-format/index.mjs +68 -0
  170. package/dist/entities/media-medium/index.cjs +90 -0
  171. package/dist/entities/media-medium/index.d.cts +77 -0
  172. package/dist/entities/media-medium/index.d.mts +77 -0
  173. package/dist/entities/media-medium/index.mjs +79 -0
  174. package/dist/entities/media-platform/index.cjs +118 -0
  175. package/dist/entities/media-platform/index.d.cts +74 -0
  176. package/dist/entities/media-platform/index.d.mts +74 -0
  177. package/dist/entities/media-platform/index.mjs +107 -0
  178. package/dist/entities/monday-workspace/index.cjs +66 -0
  179. package/dist/entities/monday-workspace/index.d.cts +47 -0
  180. package/dist/entities/monday-workspace/index.d.mts +47 -0
  181. package/dist/entities/monday-workspace/index.mjs +55 -0
  182. package/dist/entities/newsletter-signup/index.cjs +67 -0
  183. package/dist/entities/newsletter-signup/index.d.cts +76 -0
  184. package/dist/entities/newsletter-signup/index.d.mts +76 -0
  185. package/dist/entities/newsletter-signup/index.mjs +60 -0
  186. package/dist/entities/policy-page/index.cjs +23 -0
  187. package/dist/entities/policy-page/index.d.cts +331 -0
  188. package/dist/entities/policy-page/index.d.mts +331 -0
  189. package/dist/entities/policy-page/index.mjs +20 -0
  190. package/dist/entities/product/index.cjs +28 -0
  191. package/dist/entities/product/index.d.cts +325 -0
  192. package/dist/entities/product/index.d.mts +325 -0
  193. package/dist/entities/product/index.mjs +23 -0
  194. package/dist/entities/product-highlight/index.cjs +28 -0
  195. package/dist/entities/product-highlight/index.d.cts +245 -0
  196. package/dist/entities/product-highlight/index.d.mts +245 -0
  197. package/dist/entities/product-highlight/index.mjs +23 -0
  198. package/dist/entities/resume/index.cjs +129 -0
  199. package/dist/entities/resume/index.d.cts +198 -0
  200. package/dist/entities/resume/index.d.mts +198 -0
  201. package/dist/entities/resume/index.mjs +119 -0
  202. package/dist/entities/sharpspring/index.cjs +19 -0
  203. package/dist/entities/sharpspring/index.d.cts +16 -0
  204. package/dist/entities/sharpspring/index.d.mts +16 -0
  205. package/dist/entities/sharpspring/index.mjs +16 -0
  206. package/dist/entities/tag/index.cjs +61 -0
  207. package/dist/entities/tag/index.d.cts +54 -0
  208. package/dist/entities/tag/index.d.mts +54 -0
  209. package/dist/entities/tag/index.mjs +50 -0
  210. package/dist/entities/team-member/index.cjs +29 -0
  211. package/dist/entities/team-member/index.d.cts +210 -0
  212. package/dist/entities/team-member/index.d.mts +210 -0
  213. package/dist/entities/team-member/index.mjs +17 -0
  214. package/dist/entities/team-page/index.cjs +16 -0
  215. package/dist/entities/team-page/index.d.cts +257 -0
  216. package/dist/entities/team-page/index.d.mts +257 -0
  217. package/dist/entities/team-page/index.mjs +13 -0
  218. package/dist/entities/teamwork/index.cjs +74 -0
  219. package/dist/entities/teamwork/index.d.cts +512 -0
  220. package/dist/entities/teamwork/index.d.mts +512 -0
  221. package/dist/entities/teamwork/index.mjs +68 -0
  222. package/dist/entities/trend/index.cjs +34 -0
  223. package/dist/entities/trend/index.d.cts +347 -0
  224. package/dist/entities/trend/index.d.mts +347 -0
  225. package/dist/entities/trend/index.mjs +28 -0
  226. package/dist/entities/up-auth/index.cjs +56 -0
  227. package/dist/entities/up-auth/index.d.cts +2 -0
  228. package/dist/entities/up-auth/index.d.mts +2 -0
  229. package/dist/entities/up-auth/index.mjs +44 -0
  230. package/dist/entities/up-permission/index.cjs +12 -0
  231. package/dist/entities/up-permission/index.d.cts +14 -0
  232. package/dist/entities/up-permission/index.d.mts +14 -0
  233. package/dist/entities/up-permission/index.mjs +9 -0
  234. package/dist/entities/up-role/index.cjs +28 -0
  235. package/dist/entities/up-role/index.d.cts +7 -0
  236. package/dist/entities/up-role/index.d.mts +7 -0
  237. package/dist/entities/up-role/index.mjs +23 -0
  238. package/dist/entities/up-user/index.cjs +64 -0
  239. package/dist/entities/up-user/index.d.cts +38 -0
  240. package/dist/entities/up-user/index.d.mts +38 -0
  241. package/dist/entities/up-user/index.mjs +54 -0
  242. package/dist/entities/upload/index.cjs +35 -0
  243. package/dist/entities/upload/index.d.cts +31 -0
  244. package/dist/entities/upload/index.d.mts +31 -0
  245. package/dist/entities/upload/index.mjs +29 -0
  246. package/dist/entities/url-redirect/index.cjs +67 -0
  247. package/dist/entities/url-redirect/index.d.cts +45 -0
  248. package/dist/entities/url-redirect/index.d.mts +45 -0
  249. package/dist/entities/url-redirect/index.mjs +54 -0
  250. package/dist/entities/user-account/index.cjs +48 -0
  251. package/dist/entities/user-account/index.d.cts +39 -0
  252. package/dist/entities/user-account/index.d.mts +39 -0
  253. package/dist/entities/user-account/index.mjs +39 -0
  254. package/dist/entities/utm-link-builder/index.cjs +84 -0
  255. package/dist/entities/utm-link-builder/index.d.cts +191 -0
  256. package/dist/entities/utm-link-builder/index.d.mts +191 -0
  257. package/dist/entities/utm-link-builder/index.mjs +76 -0
  258. package/dist/entities/utm-meta/index.cjs +19 -0
  259. package/dist/entities/utm-meta/index.d.cts +83 -0
  260. package/dist/entities/utm-meta/index.d.mts +83 -0
  261. package/dist/entities/utm-meta/index.mjs +16 -0
  262. package/dist/entities/utm-tracking-link/index.cjs +199 -0
  263. package/dist/entities/utm-tracking-link/index.d.cts +235 -0
  264. package/dist/entities/utm-tracking-link/index.d.mts +235 -0
  265. package/dist/entities/utm-tracking-link/index.mjs +184 -0
  266. package/dist/fields-BQHSYj70.d.cts +7 -0
  267. package/dist/fields-qx-5saY5.d.mts +7 -0
  268. package/dist/fonts-CGSHKgp0.cjs +125 -0
  269. package/dist/fonts-tMy55UFs.mjs +58 -0
  270. package/dist/index-CPUGB8lZ.d.mts +95 -0
  271. package/dist/index-DDYmaYSm.d.mts +200 -0
  272. package/dist/index-Dl6KBLdT.d.mts +422 -0
  273. package/dist/index-DmLVZdb3.d.cts +200 -0
  274. package/dist/index-Dv9bgrpo.d.cts +422 -0
  275. package/dist/index-H4RC0v4h.d.cts +95 -0
  276. package/dist/json-BJ8GyrtC.d.cts +9 -0
  277. package/dist/json-BgewUW_1.cjs +19 -0
  278. package/dist/json-CTduX6Ak.mjs +12 -0
  279. package/dist/json-CqAaKeHA.d.mts +9 -0
  280. package/dist/media-upload-B6aQYeRM.cjs +59 -0
  281. package/dist/media-upload-DiRJksSU.mjs +40 -0
  282. package/dist/pagination-4pZafglS.cjs +23 -0
  283. package/dist/pagination-owwfYJS6.mjs +6 -0
  284. package/dist/{permissions.cjs → permissions/index.cjs} +6 -89
  285. package/dist/permissions/index.d.cts +2 -0
  286. package/dist/permissions/index.d.mts +2 -0
  287. package/dist/{permissions.mjs → permissions/index.mjs} +3 -86
  288. package/dist/query.schema-BOn5Kk_p.d.mts +41 -0
  289. package/dist/query.schema-CItKlb0x.d.cts +41 -0
  290. package/dist/query.schema-DHTf6rTw.cjs +95 -0
  291. package/dist/query.schema-YKoOuBnk.mjs +40 -0
  292. package/dist/regex-BnKGcdS4.mjs +55 -0
  293. package/dist/regex-Cl5goNwp.cjs +342 -0
  294. package/dist/relations-C04F46xL.mjs +41 -0
  295. package/dist/relations-CGu18hfT.cjs +90 -0
  296. package/dist/response-C-7nyNVD.d.mts +57 -0
  297. package/dist/response-c6SgLvi9.d.cts +57 -0
  298. package/dist/strapi-C0DtxJLD.mjs +9 -0
  299. package/dist/strapi-C7POOPEf.cjs +34 -0
  300. package/dist/strapi-COeswSwJ.mjs +49 -0
  301. package/dist/strapi-DmhV7ODq.cjs +72 -0
  302. package/dist/theme-Ba9vW4PA.cjs +230 -0
  303. package/dist/theme-BhQd4eMI.mjs +97 -0
  304. package/dist/{utilities.cjs → utilities/index.cjs} +9 -28
  305. package/dist/utilities/index.d.cts +24 -0
  306. package/dist/utilities/index.d.mts +24 -0
  307. package/dist/{utilities.mjs → utilities/index.mjs} +9 -25
  308. package/dist/validators-Bc9Is5Sr.cjs +222 -0
  309. package/dist/validators-P5E_3qzc.mjs +95 -0
  310. package/package.json +64 -40
  311. package/dist/constants.cjs +0 -461
  312. package/dist/constants.d.cts +0 -2
  313. package/dist/constants.d.mts +0 -2
  314. package/dist/constants.mjs +0 -353
  315. package/dist/index-CiWVYf_f.d.cts +0 -291
  316. package/dist/index-D5uEXy4J.d.mts +0 -4509
  317. package/dist/index-DOR_It7I.d.mts +0 -291
  318. package/dist/index-Df4iWapE.d.cts +0 -4509
  319. package/dist/index.cjs +0 -384
  320. package/dist/index.d.cts +0 -3
  321. package/dist/index.d.mts +0 -3
  322. package/dist/index.mjs +0 -6
  323. package/dist/permissions.d.cts +0 -2
  324. package/dist/permissions.d.mts +0 -2
  325. package/dist/schemas.cjs +0 -2326
  326. package/dist/schemas.d.cts +0 -2
  327. package/dist/schemas.d.mts +0 -2
  328. package/dist/schemas.mjs +0 -2068
  329. package/dist/types.cjs +0 -0
  330. package/dist/types.d.cts +0 -2
  331. package/dist/types.d.mts +0 -2
  332. package/dist/types.mjs +0 -1
  333. package/dist/utilities.d.cts +0 -2
  334. package/dist/utilities.d.mts +0 -2
package/dist/schemas.cjs DELETED
@@ -1,2326 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_chunk = require("./chunk-CKQMccvm.cjs");
3
- const require_constants = require("./constants.cjs");
4
- const require_permissions = require("./permissions.cjs");
5
- let valibot = require("valibot");
6
- valibot = require_chunk.__toESM(valibot, 1);
7
- //#region src/schemas/core-entities.schemas.ts
8
- const StrapiCollectionEntities = [
9
- "blog-posts",
10
- "categories",
11
- "client-content-pillars",
12
- "client-media-platforms",
13
- "client-projects",
14
- "client-reports",
15
- "client-styleguides",
16
- "client-users",
17
- "clients",
18
- "comment-reports",
19
- "comments",
20
- "content-pillars",
21
- "gc-fly-tour-snaps",
22
- "gc-fly-tours",
23
- "leads",
24
- "media-content-types",
25
- "media-creative-formats",
26
- "media-mediums",
27
- "media-platforms",
28
- "monday-workspaces",
29
- "newsletter-signups",
30
- "product-highlights",
31
- "products",
32
- "resumes",
33
- "tags",
34
- "team-members",
35
- "trends",
36
- "url-redirections",
37
- "user-accounts",
38
- "users",
39
- "utm-tracking-links"
40
- ];
41
- const ValidStrapiCollectionEntity = valibot.picklist(StrapiCollectionEntities);
42
- const StrapiSingleEntities = [
43
- "blog-page",
44
- "careers-page",
45
- "faq",
46
- "landing-page",
47
- "privacy-policy",
48
- "sms-policy",
49
- "team-page",
50
- "utm-meta"
51
- ];
52
- const ValidStrapiSingleEntity = valibot.picklist(StrapiSingleEntities);
53
- //#endregion
54
- //#region src/schemas/core-validators.schemas.ts
55
- /**
56
- * Basic number validator
57
- */
58
- const VNumberNullable = () => valibot.optional(valibot.nullable(valibot.number()));
59
- const VIntegerNullable = () => valibot.optional(valibot.nullable(valibot.pipe(valibot.number(), valibot.integer())));
60
- /**
61
- * Basic string validator with trim and min length
62
- */
63
- const VString = (minLength = 1) => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(minLength));
64
- /**
65
- * String validator with trim, min length, and max length (Short)
66
- */
67
- const VStringShort = (minLength = 1) => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(minLength), valibot.maxLength(255));
68
- /**
69
- * String validator with trim, min length, and max length (Long)
70
- */
71
- const VStringLong = (minLength = 1) => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(minLength), valibot.maxLength(require_constants.LIMIT_LONG_STRING_MAX_LENGTH));
72
- /**
73
- * String validator with trim, and max length
74
- */
75
- const VStringMax = (maxLength = 255) => valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(maxLength));
76
- /**
77
- * String validator with trim, and max length
78
- */
79
- const VStringMaxRegex = (maxLength = 255, pattern, message) => valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(maxLength), valibot.regex(pattern, message));
80
- /**
81
- * String validator with trim, min length, and max length
82
- */
83
- const VStringMinMax = (minLength = 1, maxLength = 255) => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(minLength), valibot.maxLength(maxLength));
84
- /**
85
- * String validator with trim, min length, max length, and regex pattern
86
- */
87
- const VStringMinMaxRegex = (minLength = 1, maxLength = 255, pattern, message) => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(minLength), valibot.maxLength(maxLength), valibot.regex(pattern, message));
88
- /**
89
- * Optional Nullable String validator (Long)
90
- */
91
- const VStringLongNullable = () => valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(require_constants.LIMIT_LONG_STRING_MAX_LENGTH))));
92
- /**
93
- * Optional Nullable String validator
94
- * Commonly used for optional fields that might be null in the database or API
95
- */
96
- const VStringShortNullable = () => valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255))));
97
- /**
98
- * URL Validator
99
- * Checks for http/https prefix and valid URL format
100
- */
101
- const VStringUrl = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.startsWith("http", require_constants.ERROR_MESSAGE_URL_PREFIX), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL));
102
- /**
103
- * UTM URL Validator
104
- * Checks for valid URL format that does contain utm params
105
- */
106
- const VStringUrlUtm = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
107
- return input.includes("utm_");
108
- }, require_constants.ERROR_MESSAGE_UTM_URL));
109
- /**
110
- * URL no utm params Validator
111
- * Checks for valid URL format that does not contain utm params
112
- */
113
- const VStringUrlNoUtm = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
114
- if (input === "") return false;
115
- return input.indexOf("?") === -1;
116
- }, require_constants.ERROR_MESSAGE_URL_NO_QUERY_PARAMS));
117
- /**
118
- * Optional Nullable URL Validator
119
- */
120
- const VStringUrlNullable = () => valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.trim(), valibot.startsWith("http", require_constants.ERROR_MESSAGE_URL_PREFIX), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL))));
121
- /**
122
- * Slug Validator
123
- */
124
- const VStringSlug = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(1), valibot.maxLength(255), valibot.regex(require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG));
125
- /**
126
- * Email Validator
127
- */
128
- const VStringEmail = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(5), valibot.maxLength(255), valibot.email());
129
- /**
130
- * Phone Validator (NANP)
131
- */
132
- const VStringPhone = () => valibot.pipe(valibot.string(), valibot.trim(), valibot.minLength(7), valibot.maxLength(24), valibot.regex(require_constants.REGEX_NANP_PHONE, require_constants.ERROR_MESSAGE_REGEX_PHONE));
133
- /**
134
- * Optional Nullable Phone Validator
135
- */
136
- const VStringPhoneNullable = () => valibot.optional(valibot.nullable(VStringPhone()));
137
- /**
138
- * Pagination Page Validator
139
- */
140
- const VPage = () => valibot.optional(valibot.pipe(valibot.number(), valibot.minValue(1)));
141
- /**
142
- * Pagination Size Validator
143
- */
144
- const VSize = (maxSize) => valibot.optional(valibot.pipe(valibot.number(), valibot.minValue(1), valibot.maxValue(maxSize)));
145
- //#endregion
146
- //#region src/schemas/core-relations.schemas.ts
147
- const SAssociateOneEntity = VStringMinMax(1, 255);
148
- const SAssociateManyEntities = valibot.pipe(valibot.array(SAssociateOneEntity), valibot.maxLength(100));
149
- const SQueryManyEntities = valibot.pipe(valibot.array(VStringMinMax(1, 255)));
150
- const SAssociateEntityRelationshipRequest = valibot.pipe(valibot.object({
151
- collection: ValidStrapiCollectionEntity,
152
- documentId: SAssociateOneEntity,
153
- relationKey: VStringShort(),
154
- connect: valibot.optional(SAssociateManyEntities),
155
- disconnect: valibot.optional(SAssociateManyEntities)
156
- }), valibot.check((input) => !!(input.connect || input.disconnect), "You must provide a relationship to update: connect or disconnect."));
157
- const SEntityPosition = valibot.optional(valibot.object({
158
- before: valibot.optional(SAssociateOneEntity),
159
- after: valibot.optional(SAssociateOneEntity),
160
- start: valibot.optional(valibot.boolean()),
161
- end: valibot.optional(valibot.boolean())
162
- }), { end: true });
163
- const SAssociateEntityPosition = valibot.object({
164
- documentId: SAssociateOneEntity,
165
- position: SEntityPosition,
166
- locale: valibot.optional(VStringShort())
167
- });
168
- const SAssociateEntityPositionDocumentRequest = valibot.pipe(valibot.object({
169
- collection: ValidStrapiCollectionEntity,
170
- documentId: SAssociateOneEntity,
171
- relationKey: VStringShort(),
172
- connect: valibot.optional(valibot.array(SAssociateEntityPosition)),
173
- disconnect: valibot.optional(SAssociateManyEntities)
174
- }), valibot.check((input) => !!(input.connect || input.disconnect), "You must provide a relationship to update: connect or disconnect."));
175
- const SSetEntityRelationshipRequest = valibot.pipe(valibot.object({
176
- collection: ValidStrapiCollectionEntity,
177
- documentId: SAssociateOneEntity,
178
- relationKey: VStringShort(),
179
- set: SAssociateManyEntities
180
- }));
181
- //#endregion
182
- //#region src/schemas/core-generic.schemas.ts
183
- const JsonSchema = valibot.lazy(() => valibot.union([
184
- valibot.string(),
185
- valibot.number(),
186
- valibot.boolean(),
187
- valibot.null(),
188
- valibot.record(valibot.string(), JsonSchema),
189
- valibot.array(JsonSchema)
190
- ]));
191
- const EntitySortKeys = [
192
- "id",
193
- "createdAt",
194
- "updatedAt"
195
- ];
196
- const QuerySortEntities = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(EntitySortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(EntitySortKeys.length)));
197
- const QueryStrapiPaginated = valibot.object({
198
- page: VPage(),
199
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
200
- sort: QuerySortEntities
201
- });
202
- const QueryStrapiById = valibot.object({ id: valibot.number() });
203
- const QueryStrapiByDocumentId = valibot.object({ documentId: SAssociateOneEntity });
204
- const QueryStrapiBySlug = valibot.object({
205
- slug: VStringShort(),
206
- sort: QuerySortEntities
207
- });
208
- const QueryStrapiByEmail = valibot.object({
209
- email: VStringEmail(),
210
- sort: QuerySortEntities
211
- });
212
- const QueryStrapiByPhone = valibot.object({
213
- phone: VStringPhone(),
214
- sort: QuerySortEntities
215
- });
216
- const QueryStrapiByName = valibot.object({
217
- name: VStringShort(),
218
- sort: QuerySortEntities
219
- });
220
- //#endregion
221
- //#region src/schemas/audit-log.schemas.ts
222
- const AuditLogSortKeys = [
223
- "id",
224
- "method",
225
- "url",
226
- "path",
227
- "request_id",
228
- "ipaddress",
229
- "user_agent",
230
- "route_path",
231
- "route_handler",
232
- "actor_type",
233
- "actor_id",
234
- "actor_email",
235
- "entity_action",
236
- "entity_content_type",
237
- "entity_id",
238
- "entity_label",
239
- "createdAt",
240
- "updatedAt"
241
- ];
242
- const QuerySortAuditLogs = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(AuditLogSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(AuditLogSortKeys.length)));
243
- const SAuditLogMethod = valibot.picklist([
244
- "GET",
245
- "POST",
246
- "PUT",
247
- "PATCH",
248
- "DELETE",
249
- "UNKNOWN"
250
- ]);
251
- const QueryStrapiSearchAuditLogs = valibot.object({
252
- page: VPage(),
253
- size: VSize(20),
254
- method: valibot.optional(SAuditLogMethod),
255
- url: valibot.optional(valibot.string()),
256
- path: valibot.optional(valibot.string()),
257
- request_id: valibot.optional(VStringMax()),
258
- ipaddress: valibot.optional(VStringMax(64)),
259
- user_agent: valibot.optional(VStringMax()),
260
- route_path: valibot.optional(VStringMax()),
261
- route_handler: valibot.optional(VStringMax()),
262
- actor_type: valibot.optional(VStringMax()),
263
- actor_id: valibot.optional(VStringMax()),
264
- actor_email: valibot.optional(VStringEmail()),
265
- entity_action: valibot.optional(VStringMax()),
266
- entity_content_type: valibot.optional(VStringMax()),
267
- entity_id: valibot.optional(VStringMax()),
268
- entity_label: valibot.optional(VStringMax()),
269
- sort: QuerySortAuditLogs
270
- });
271
- const SCreateAuditLogDocument = valibot.object({
272
- method: SAuditLogMethod,
273
- url: valibot.string(),
274
- path: valibot.string(),
275
- request_id: valibot.nullable(VStringMax()),
276
- ipaddress: valibot.nullable(VStringMax(64)),
277
- user_agent: valibot.nullable(VStringMax()),
278
- route_path: valibot.nullable(VStringMax()),
279
- route_handler: valibot.nullable(VStringMax()),
280
- actor_type: VStringMax(),
281
- actor_id: valibot.nullable(VStringMax()),
282
- actor_email: valibot.nullable(VStringEmail()),
283
- entity_action: VStringMax(),
284
- entity_content_type: VStringMax(),
285
- entity_id: valibot.nullable(VStringMax()),
286
- entity_label: valibot.nullable(VStringMax()),
287
- request_data: valibot.optional(valibot.nullable(JsonSchema)),
288
- before: valibot.optional(valibot.nullable(JsonSchema)),
289
- after: valibot.optional(valibot.nullable(JsonSchema))
290
- });
291
- const SUpdateAuditLogDocument = valibot.object({
292
- method: valibot.optional(SAuditLogMethod),
293
- url: valibot.optional(valibot.string()),
294
- path: valibot.optional(valibot.string()),
295
- request_id: valibot.optional(valibot.nullable(VStringMax())),
296
- ipaddress: valibot.optional(valibot.nullable(VStringMax(64))),
297
- user_agent: valibot.optional(valibot.nullable(VStringMax())),
298
- route_path: valibot.optional(valibot.nullable(VStringMax())),
299
- route_handler: valibot.optional(valibot.nullable(VStringMax())),
300
- actor_type: valibot.optional(VStringMax()),
301
- actor_id: valibot.optional(valibot.nullable(VStringMax())),
302
- actor_email: valibot.optional(valibot.nullable(VStringEmail())),
303
- entity_action: valibot.optional(VStringMax()),
304
- entity_content_type: valibot.optional(VStringMax()),
305
- entity_id: valibot.optional(valibot.nullable(VStringMax())),
306
- entity_label: valibot.optional(valibot.nullable(VStringMax())),
307
- request_data: valibot.optional(valibot.nullable(JsonSchema)),
308
- before: valibot.optional(valibot.nullable(JsonSchema)),
309
- after: valibot.optional(valibot.nullable(JsonSchema))
310
- });
311
- const SUpdateAuditLogDocumentRequest = valibot.object({
312
- documentId: SAssociateOneEntity,
313
- data: SUpdateAuditLogDocument
314
- });
315
- //#endregion
316
- //#region src/schemas/blog.schemas.ts
317
- const BlogPostSortKeys = [
318
- "id",
319
- "title",
320
- "slug",
321
- "is_live",
322
- "is_featured",
323
- "is_public",
324
- "published",
325
- "createdAt",
326
- "updatedAt"
327
- ];
328
- const QuerySortBlogPosts = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(BlogPostSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(BlogPostSortKeys.length)));
329
- const QueryStrapiSearchBlogPosts = valibot.object({
330
- page: VPage(),
331
- size: VSize(20),
332
- search: valibot.optional(VStringShort(0)),
333
- category: valibot.optional(VStringShort(0)),
334
- tags: valibot.optional(valibot.array(VStringShort())),
335
- status: valibot.optional(valibot.picklist(["draft", "published"])),
336
- sort: QuerySortBlogPosts
337
- });
338
- const QueryStrapiSearchBlogPostsBySlug = valibot.object({
339
- slug: VStringShort(),
340
- status: valibot.optional(valibot.picklist(["draft", "published"]), "published"),
341
- sort: QuerySortBlogPosts
342
- });
343
- //#endregion
344
- //#region src/schemas/category.schemas.ts
345
- const CategorySortKeys = [
346
- "id",
347
- "label",
348
- "slug",
349
- "createdAt",
350
- "updatedAt"
351
- ];
352
- const QuerySortCategories = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CategorySortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CategorySortKeys.length)));
353
- const QueryStrapiSearchCategories = valibot.object({
354
- page: VPage(),
355
- size: VSize(20),
356
- label: valibot.optional(VStringMax()),
357
- slug: valibot.optional(VStringMax()),
358
- sort: QuerySortCategories
359
- });
360
- const SCreateCategoryDocument = valibot.object({
361
- label: VStringMinMax(1, 255),
362
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)
363
- });
364
- const SUpdateCategoryDocument = valibot.object({
365
- label: valibot.optional(VStringMinMax(1, 255)),
366
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG))
367
- });
368
- const SUpdateCategoryDocumentRequest = valibot.object({
369
- documentId: SAssociateOneEntity,
370
- data: SUpdateCategoryDocument
371
- });
372
- //#endregion
373
- //#region src/schemas/client-content-pillar.schemas.ts
374
- const ClientContentPillarSortKeys = [
375
- "id",
376
- "is_active",
377
- "content_pillar.title",
378
- "content_pillar.slug",
379
- "createdAt",
380
- "updatedAt"
381
- ];
382
- const QuerySortClientContentPillars = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientContentPillarSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientContentPillarSortKeys.length)));
383
- const QueryStrapiSearchClientContentPillars = valibot.object({
384
- page: VPage(),
385
- size: VSize(100),
386
- is_active: valibot.optional(valibot.boolean()),
387
- client_id: valibot.optional(VStringMinMax(1, 255)),
388
- clients: valibot.optional(SQueryManyEntities),
389
- content_pillar_id: valibot.optional(VStringMinMax(1, 255)),
390
- content_pillars: valibot.optional(SQueryManyEntities),
391
- sort: QuerySortClientContentPillars
392
- });
393
- const SCreateClientContentPillarDocument = valibot.object({
394
- is_active: valibot.optional(valibot.boolean()),
395
- client: valibot.optional(SAssociateOneEntity),
396
- content_pillar: valibot.optional(SAssociateOneEntity)
397
- });
398
- const SUpdateClientContentPillarDocument = valibot.object({
399
- is_active: valibot.optional(valibot.boolean()),
400
- client: valibot.optional(SAssociateOneEntity),
401
- content_pillar: valibot.optional(SAssociateOneEntity)
402
- });
403
- const SUpdateClientContentPillarDocumentRequest = valibot.object({
404
- documentId: SAssociateOneEntity,
405
- data: SUpdateClientContentPillarDocument
406
- });
407
- //#endregion
408
- //#region src/schemas/client-media-platform.schemas.ts
409
- const ClientMediaPlatformSortKeys = [
410
- "id",
411
- "is_active",
412
- "is_organic_social",
413
- "is_paid_media",
414
- "createdAt",
415
- "updatedAt",
416
- "media_platform.title",
417
- "media_platform.slug",
418
- "media_platform.createdAt",
419
- "media_platform.updatedAt"
420
- ];
421
- const QuerySortClientMediaPlatforms = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientMediaPlatformSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientMediaPlatformSortKeys.length)));
422
- const QueryStrapiSearchClientMediaPlatforms = valibot.object({
423
- page: VPage(),
424
- size: VSize(100),
425
- url: valibot.optional(VStringMax(require_constants.LIMIT_MAX_DESTINATION)),
426
- is_active: valibot.optional(valibot.boolean()),
427
- client_id: valibot.optional(VStringMinMax(1, 255)),
428
- clients: valibot.optional(SQueryManyEntities),
429
- media_platform_id: valibot.optional(VStringMinMax(1, 255)),
430
- media_platforms: valibot.optional(SQueryManyEntities),
431
- sort: QuerySortClientMediaPlatforms
432
- });
433
- const SCreateClientMediaPlatformDocument = valibot.object({
434
- url: valibot.nullable(VStringMax(require_constants.LIMIT_MAX_DESTINATION)),
435
- is_active: valibot.boolean(),
436
- client: valibot.optional(SAssociateOneEntity),
437
- media_platform: valibot.optional(SAssociateOneEntity)
438
- });
439
- const SUpdateClientMediaPlatformDocument = valibot.object({
440
- url: valibot.optional(valibot.nullable(VStringMax(require_constants.LIMIT_MAX_DESTINATION))),
441
- is_active: valibot.optional(valibot.boolean()),
442
- client: valibot.optional(SAssociateOneEntity),
443
- media_platform: valibot.optional(SAssociateOneEntity)
444
- });
445
- const SUpdateClientMediaPlatformDocumentRequest = valibot.object({
446
- documentId: SAssociateOneEntity,
447
- data: SUpdateClientMediaPlatformDocument
448
- });
449
- //#endregion
450
- //#region src/schemas/client-project.schemas.ts
451
- const ClientProjectSortKeys = [
452
- "id",
453
- "title",
454
- "slug",
455
- "is_active",
456
- "is_hidden",
457
- "project_phase",
458
- "project_url",
459
- "project_type",
460
- "project_pricing",
461
- "project_address",
462
- "phone_number",
463
- "num_of_models",
464
- "num_of_units_remain",
465
- "buyer_profile",
466
- "social_organic_start_date",
467
- "paid_media_start_date",
468
- "go_date",
469
- "createdAt",
470
- "updatedAt"
471
- ];
472
- const QuerySortClientProjects = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientProjectSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientProjectSortKeys.length)));
473
- const QueryStrapiSearchClientProjects = valibot.object({
474
- page: VPage(),
475
- size: VSize(100),
476
- client_id: valibot.optional(VStringShort()),
477
- title: valibot.optional(VStringMax()),
478
- slug: valibot.optional(VStringSlug()),
479
- is_active: valibot.optional(valibot.boolean()),
480
- is_hidden: valibot.optional(valibot.boolean()),
481
- project_status: valibot.optional(valibot.pipe(valibot.array(valibot.optional(valibot.picklist(require_constants.ClientProjectStatusOptions), require_constants.ClientProjectStatusOptions[0])), valibot.minLength(1), valibot.maxLength(1))),
482
- project_phase: valibot.optional(valibot.picklist(require_constants.ClientProjectPhaseOptions)),
483
- project_url: valibot.optional(VStringUrl()),
484
- project_type: valibot.optional(VStringMax()),
485
- project_pricing: valibot.optional(VStringMax(255)),
486
- project_address: valibot.optional(VStringMax()),
487
- phone_number: valibot.optional(VStringPhone()),
488
- num_of_models: VIntegerNullable(),
489
- num_of_units_remain: VIntegerNullable(),
490
- buyer_profile: valibot.optional(VStringMax()),
491
- social_organic_start_date: valibot.optional(valibot.pipe(valibot.string(), valibot.isoDate())),
492
- paid_media_start_date: valibot.optional(valibot.pipe(valibot.string(), valibot.isoDate())),
493
- go_date: valibot.optional(valibot.pipe(valibot.string(), valibot.isoDate())),
494
- sort: QuerySortClientProjects
495
- });
496
- const SCreateClientProjectDocument = valibot.object({
497
- clients: valibot.pipe(valibot.array(VStringShort()), valibot.minLength(1)),
498
- title: VStringShort(),
499
- slug: VStringSlug(),
500
- is_active: valibot.boolean(),
501
- is_hidden: valibot.boolean(),
502
- project_status: valibot.pipe(valibot.array(valibot.optional(valibot.picklist(require_constants.ClientProjectStatusOptions), require_constants.ClientProjectStatusOptions[0])), valibot.minLength(1, require_constants.ERROR_MESSAGE_ONE_PROJECT_STATUS), valibot.maxLength(1, require_constants.ERROR_MESSAGE_ONE_PROJECT_STATUS)),
503
- project_phase: valibot.picklist(require_constants.ClientProjectPhaseOptions),
504
- project_url: VStringUrlNullable(),
505
- project_type: valibot.optional(valibot.nullable(VStringMax())),
506
- project_pricing: valibot.optional(valibot.nullable(VStringMax())),
507
- project_address: valibot.optional(valibot.nullable(VStringMax())),
508
- phone_number: VStringPhoneNullable(),
509
- num_of_models: VIntegerNullable(),
510
- num_of_units_remain: VIntegerNullable(),
511
- buyer_profile: valibot.optional(valibot.nullable(VStringMax())),
512
- social_organic_start_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate()))),
513
- paid_media_start_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate()))),
514
- go_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate())))
515
- });
516
- const SUpdateClientProjectDocument = valibot.object({
517
- clients: valibot.optional(valibot.pipe(valibot.array(VStringShort()), valibot.minLength(1))),
518
- title: valibot.optional(VStringShort()),
519
- slug: valibot.optional(VStringSlug()),
520
- is_active: valibot.optional(valibot.boolean()),
521
- is_hidden: valibot.optional(valibot.boolean()),
522
- project_status: valibot.optional(valibot.pipe(valibot.array(valibot.optional(valibot.picklist(require_constants.ClientProjectStatusOptions), require_constants.ClientProjectStatusOptions[0])), valibot.minLength(1, require_constants.ERROR_MESSAGE_ONE_PROJECT_STATUS), valibot.maxLength(1, require_constants.ERROR_MESSAGE_ONE_PROJECT_STATUS))),
523
- project_phase: valibot.optional(valibot.picklist(require_constants.ClientProjectPhaseOptions)),
524
- project_url: VStringUrlNullable(),
525
- project_type: valibot.optional(valibot.nullable(VStringMax())),
526
- project_pricing: valibot.optional(valibot.nullable(VStringMax())),
527
- project_address: valibot.optional(valibot.nullable(VStringMax())),
528
- phone_number: VStringPhoneNullable(),
529
- num_of_models: VIntegerNullable(),
530
- num_of_units_remain: VIntegerNullable(),
531
- buyer_profile: valibot.optional(valibot.nullable(VStringMax())),
532
- social_organic_start_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate()))),
533
- paid_media_start_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate()))),
534
- go_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate())))
535
- });
536
- const SUpdateClientProjectDocumentRequest = valibot.object({
537
- documentId: SAssociateOneEntity,
538
- data: SUpdateClientProjectDocument
539
- });
540
- const SAssociateClientToClientProjectDocument = valibot.object({
541
- client: SAssociateOneEntity,
542
- client_project: SAssociateOneEntity
543
- });
544
- //#endregion
545
- //#region src/schemas/client-report.schemas.ts
546
- const ClientReportSortKeys = [
547
- "id",
548
- "title",
549
- "is_active",
550
- "is_external",
551
- "is_hidden",
552
- "createdAt",
553
- "updatedAt"
554
- ];
555
- const QuerySortClientReports = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientReportSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientReportSortKeys.length)));
556
- const QueryStrapiSearchClientReports = valibot.object({
557
- page: VPage(),
558
- size: VSize(100),
559
- title: valibot.optional(VStringMax()),
560
- report_id: valibot.optional(VStringMax()),
561
- is_active: valibot.optional(valibot.boolean()),
562
- is_external: valibot.optional(valibot.boolean()),
563
- is_hidden: valibot.optional(valibot.boolean()),
564
- client_id: valibot.optional(VStringMinMax(1, 255)),
565
- clients: valibot.optional(SQueryManyEntities),
566
- sort: QuerySortClientReports
567
- });
568
- const SCreateClientReportDocument = valibot.object({
569
- title: VStringMinMax(1, 255),
570
- report_id: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
571
- is_active: valibot.optional(valibot.boolean(), true),
572
- is_external: valibot.optional(valibot.boolean(), false),
573
- is_hidden: valibot.optional(valibot.boolean(), false),
574
- scopes: valibot.optional(valibot.pipe(valibot.array(valibot.string("Please provide a valid list of scopes."))), ["user:*"]),
575
- clients: valibot.optional(SAssociateManyEntities)
576
- });
577
- const SUpdateClientReportDocument = valibot.object({
578
- title: valibot.optional(VStringMinMax(1, 255)),
579
- report_id: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
580
- is_active: valibot.optional(valibot.boolean()),
581
- is_external: valibot.optional(valibot.boolean()),
582
- is_hidden: valibot.optional(valibot.boolean()),
583
- scopes: valibot.optional(valibot.pipe(valibot.array(valibot.string("Please provide a valid list of scopes."))), ["user:*"]),
584
- clients: valibot.optional(SAssociateManyEntities)
585
- });
586
- const SUpdateClientReportDocumentRequest = valibot.object({
587
- documentId: SAssociateOneEntity,
588
- data: SUpdateClientReportDocument
589
- });
590
- //#endregion
591
- //#region src/schemas/client-styleguide.schemas.ts
592
- const ClientStyleguideSortKeys = [
593
- "id",
594
- "title",
595
- "createdAt",
596
- "updatedAt"
597
- ];
598
- const QuerySortClientStyleguides = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientStyleguideSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientStyleguideSortKeys.length)));
599
- const QueryStrapiSearchClientStyleguide = valibot.object({
600
- page: VPage(),
601
- size: VSize(100),
602
- title: valibot.optional(VStringMax()),
603
- is_active: valibot.optional(valibot.boolean()),
604
- client_id: valibot.optional(VStringMinMax(1, 255)),
605
- clients: valibot.optional(SQueryManyEntities),
606
- sort: QuerySortClientStyleguides
607
- });
608
- const SCreateClientStyleguideDocument = valibot.object({
609
- title: VStringMinMax(1, 255),
610
- is_active: valibot.optional(valibot.boolean(), true),
611
- client: valibot.optional(SAssociateOneEntity)
612
- });
613
- const SUpdateClientStyleguideDocument = valibot.object({
614
- title: valibot.optional(VStringMinMax(1, 255)),
615
- is_active: valibot.optional(valibot.boolean()),
616
- client: valibot.optional(SAssociateOneEntity)
617
- });
618
- const SUpdateClientStyleguideDocumentRequest = valibot.object({
619
- documentId: SAssociateOneEntity,
620
- data: SUpdateClientStyleguideDocument
621
- });
622
- //#endregion
623
- //#region src/schemas/client-user.schemas.ts
624
- const ClientUserSortKeys = [
625
- "id",
626
- "client.title",
627
- "client.teamwork_id",
628
- "client.teamwork_name",
629
- "client.is_active",
630
- "client.allow_create_utm_link",
631
- "client.is_paid_media",
632
- "client.is_organic_social",
633
- "user.username",
634
- "user.email",
635
- "user.confirmed",
636
- "user.blocked",
637
- "createdAt",
638
- "updatedAt"
639
- ];
640
- const QuerySortClientUsers = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientUserSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientUserSortKeys.length)));
641
- const SQueryListClientUserDocuments = valibot.object({
642
- documentId: SAssociateOneEntity,
643
- page: VPage(),
644
- size: VSize(100)
645
- });
646
- const SCreateClientUserDocument = valibot.object({
647
- client: valibot.optional(SAssociateOneEntity),
648
- user: valibot.optional(SAssociateOneEntity),
649
- scopes: valibot.pipe(valibot.array(valibot.pipe(valibot.string(), valibot.picklist(require_permissions.CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), valibot.maxLength(require_permissions.CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."))
650
- });
651
- const SUpdateClientUserDocument = valibot.object({ scopes: valibot.pipe(valibot.array(valibot.pipe(valibot.string(), valibot.picklist(require_permissions.CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), valibot.maxLength(require_permissions.CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available.")) });
652
- const SUpdateClientUserDocumentRequest = valibot.object({
653
- documentId: SAssociateOneEntity,
654
- data: SUpdateClientUserDocument
655
- });
656
- const SVerifyClientUserDocument = valibot.object({
657
- client: SAssociateOneEntity,
658
- user: SAssociateOneEntity
659
- });
660
- //#endregion
661
- //#region src/schemas/client.schemas.ts
662
- const ClientSortKeys = [
663
- "id",
664
- "title",
665
- "teamwork_id",
666
- "teamwork_name",
667
- "utm_sheet_id",
668
- "is_active",
669
- "is_hidden",
670
- "is_featured",
671
- "allow_create_utm_link",
672
- "is_organic_social",
673
- "is_paid_media",
674
- "createdAt",
675
- "updatedAt"
676
- ];
677
- const QuerySortClients = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ClientSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ClientSortKeys.length)));
678
- const QueryStrapiSearchClients = valibot.object({
679
- page: VPage(),
680
- size: VSize(100),
681
- title: valibot.optional(VStringMax()),
682
- teamwork_id: valibot.optional(VStringMax()),
683
- teamwork_name: valibot.optional(VStringMax()),
684
- gainapp_id: valibot.optional(VStringMax()),
685
- utm_sheet_id: valibot.optional(VStringMax()),
686
- is_active: valibot.optional(valibot.boolean()),
687
- is_hidden: valibot.optional(valibot.boolean()),
688
- is_featured: valibot.optional(valibot.boolean()),
689
- allow_create_utm_link: valibot.optional(valibot.boolean()),
690
- is_paid_media: valibot.optional(valibot.boolean()),
691
- is_organic_social: valibot.optional(valibot.boolean()),
692
- classification: valibot.optional(valibot.pipe(valibot.array(valibot.picklist(require_constants.IsValidClientClassificationSelectOptions)), valibot.maxLength(require_constants.IsValidClientClassificationSelectOptions.length))),
693
- sort: QuerySortClients
694
- });
695
- const SCreateClientDocument = valibot.object({
696
- title: VStringMinMax(1, 255),
697
- teamwork_id: VStringMinMax(1, 255),
698
- teamwork_name: VStringMinMax(1, 255),
699
- gainapp_id: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
700
- utm_sheet_id: valibot.optional(VStringMinMax(1, 255)),
701
- is_active: valibot.boolean(),
702
- is_hidden: valibot.boolean(),
703
- is_featured: valibot.boolean(),
704
- allow_create_utm_link: valibot.boolean(),
705
- is_organic_social: valibot.boolean(),
706
- is_paid_media: valibot.boolean(),
707
- classification: valibot.optional(valibot.pipe(valibot.array(valibot.picklist(require_constants.IsValidClientClassificationSelectOptions)), valibot.maxLength(require_constants.IsValidClientClassificationSelectOptions.length)))
708
- });
709
- const SUpdateClientDocument = valibot.object({
710
- title: valibot.optional(VStringMinMax(1, 255)),
711
- teamwork_id: valibot.optional(VStringMinMax(1, 255)),
712
- teamwork_name: valibot.optional(VStringMinMax(1, 255)),
713
- gainapp_id: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
714
- utm_sheet_id: valibot.optional(VStringMinMax(1, 255)),
715
- is_active: valibot.optional(valibot.boolean()),
716
- is_hidden: valibot.optional(valibot.boolean()),
717
- is_featured: valibot.optional(valibot.boolean()),
718
- allow_create_utm_link: valibot.optional(valibot.boolean()),
719
- is_organic_social: valibot.optional(valibot.boolean()),
720
- is_paid_media: valibot.optional(valibot.boolean()),
721
- classification: valibot.optional(valibot.pipe(valibot.array(valibot.picklist(require_constants.IsValidClientClassificationSelectOptions)), valibot.maxLength(require_constants.IsValidClientClassificationSelectOptions.length)))
722
- });
723
- const SUpdateClientDocumentRequest = valibot.object({
724
- documentId: SAssociateOneEntity,
725
- data: SUpdateClientDocument
726
- });
727
- //#endregion
728
- //#region src/schemas/comment.schemas.ts
729
- const StrapiCommentSortKeys = [
730
- "id",
731
- "content",
732
- "blocked",
733
- "blockedThread",
734
- "approvalStatus",
735
- "createdAt",
736
- "updatedAt"
737
- ];
738
- const QuerySortStrapiComments = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(StrapiCommentSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(StrapiCommentSortKeys.length)));
739
- const QueryFilterStrapiComments = valibot.object({
740
- approvalStatus: valibot.optional(valibot.object({ eq: valibot.picklist(require_constants.CommentApprovalStatusOptions) })),
741
- authorName: valibot.optional(valibot.object({ containsi: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)) })),
742
- authorEmail: valibot.optional(valibot.object({ containsi: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)) })),
743
- blocked: valibot.optional(valibot.object({ eq: valibot.boolean() })),
744
- blockedThread: valibot.optional(valibot.object({ eq: valibot.boolean() })),
745
- content: valibot.optional(valibot.object({ containsi: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)) })),
746
- removed: valibot.optional(valibot.object({ eq: valibot.boolean() }))
747
- });
748
- const QueryStrapiCommentsInHeirarchy = valibot.object({
749
- relation: VStringMinMax(1, 255),
750
- sort: QuerySortStrapiComments,
751
- filters: valibot.optional(QueryFilterStrapiComments),
752
- nested_levels: valibot.optional(VPage())
753
- });
754
- const QueryStrapiCommentsFlat = valibot.object({
755
- relation: VStringMinMax(1, 255),
756
- filters: valibot.optional(QueryFilterStrapiComments),
757
- pagination: valibot.optional(valibot.object({
758
- page: VPage(),
759
- pageSize: valibot.optional(VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE))
760
- })),
761
- sort: QuerySortStrapiComments
762
- });
763
- const SCreateCommentDocument = valibot.object({
764
- relation: VStringMinMax(1, 255),
765
- content: VStringMinMax(1, require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
766
- author: valibot.object({
767
- id: valibot.number(),
768
- name: VStringMinMax(1, 255)
769
- }),
770
- threadOf: valibot.optional(valibot.number())
771
- });
772
- const SUpdateCommentDocument = valibot.object({
773
- relation: VStringMinMax(1, 255),
774
- id: valibot.number(),
775
- content: VStringMinMax(1, require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
776
- author: valibot.object({ id: valibot.number() })
777
- });
778
- const SDeleteCommentDocument = valibot.object({
779
- relation: VStringMinMax(1, 255),
780
- id: valibot.number(),
781
- author: valibot.object({ id: valibot.number() })
782
- });
783
- const SReportCommentDocument = valibot.object({
784
- relation: VStringMinMax(1, 255),
785
- commentId: valibot.number(),
786
- content: VStringMinMax(1, require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
787
- reason: valibot.picklist(require_constants.ReportCommentReasonOptions, "You must select a valid reason for reporting this comment.")
788
- });
789
- //#endregion
790
- //#region src/schemas/content-pillar.schemas.ts
791
- const ContentPillarSortKeys = [
792
- "id",
793
- "title",
794
- "slug",
795
- "createdAt",
796
- "updatedAt"
797
- ];
798
- const QuerySortContentPillars = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(ContentPillarSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(ContentPillarSortKeys.length)));
799
- const QueryStrapiSearchContentPillars = valibot.object({
800
- page: VPage(),
801
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
802
- title: valibot.optional(VStringMax()),
803
- slug: valibot.optional(VStringMax()),
804
- clients: valibot.optional(SQueryManyEntities),
805
- sort: QuerySortContentPillars
806
- });
807
- const SCreateContentPillarDocument = valibot.object({
808
- title: VStringMinMax(1, 255),
809
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
810
- description: valibot.optional(valibot.nullable(VStringMax(255))),
811
- clients: valibot.optional(SAssociateManyEntities)
812
- });
813
- const SUpdateContentPillarDocument = valibot.object({
814
- title: valibot.optional(VStringMinMax(1, 255)),
815
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
816
- description: valibot.optional(valibot.nullable(VStringMax(255))),
817
- clients: valibot.optional(SAssociateManyEntities)
818
- });
819
- const SUpdateContentPillarDocumentRequest = valibot.object({
820
- documentId: SAssociateOneEntity,
821
- data: SUpdateContentPillarDocument
822
- });
823
- //#endregion
824
- //#region src/schemas/formatter-prettier.schemas.ts
825
- /**
826
- * Prettier requires a numeric printWidth.
827
- * To get "inline unless structurally broken", use a very large default.
828
- */
829
- const INLINE_FIRST_PRINT_WIDTH = 80;
830
- const EndOfLineSchema = valibot.picklist([
831
- "lf",
832
- "crlf",
833
- "cr",
834
- "auto"
835
- ]);
836
- const ProseWrapSchema = valibot.picklist([
837
- "always",
838
- "never",
839
- "preserve"
840
- ]);
841
- const HtmlWhitespaceSensitivitySchema = valibot.picklist([
842
- "css",
843
- "strict",
844
- "ignore"
845
- ]);
846
- const XmlWhitespaceSensitivitySchema = valibot.picklist([
847
- "strict",
848
- "preserve",
849
- "ignore"
850
- ]);
851
- const XmlQuoteAttributesSchema = valibot.picklist([
852
- "preserve",
853
- "single",
854
- "double"
855
- ]);
856
- const EmbeddedLanguageFormattingSchema = valibot.picklist(["off", "auto"]);
857
- const JsonParserSchema = valibot.picklist([
858
- "json",
859
- "jsonc",
860
- "json5",
861
- "json-stringify"
862
- ]);
863
- const SharedConfigSchema = valibot.object({
864
- printWidth: valibot.number(),
865
- tabWidth: valibot.number(),
866
- useTabs: valibot.boolean(),
867
- endOfLine: EndOfLineSchema
868
- });
869
- const HtmlConfigSchema = valibot.object({
870
- ...SharedConfigSchema.entries,
871
- parser: valibot.literal("html"),
872
- bracketSameLine: valibot.boolean(),
873
- singleAttributePerLine: valibot.boolean(),
874
- htmlWhitespaceSensitivity: HtmlWhitespaceSensitivitySchema,
875
- proseWrap: ProseWrapSchema,
876
- embeddedLanguageFormatting: EmbeddedLanguageFormattingSchema
877
- });
878
- const XmlConfigSchema = valibot.object({
879
- ...SharedConfigSchema.entries,
880
- bracketSameLine: valibot.boolean(),
881
- singleAttributePerLine: valibot.boolean(),
882
- xmlWhitespaceSensitivity: XmlWhitespaceSensitivitySchema,
883
- xmlQuoteAttributes: XmlQuoteAttributesSchema,
884
- xmlSelfClosingSpace: valibot.boolean(),
885
- xmlSortAttributesByKey: valibot.boolean()
886
- });
887
- const JsonConfigSchema = valibot.object({
888
- ...SharedConfigSchema.entries,
889
- parser: JsonParserSchema
890
- });
891
- const HtmlOverridesSchema = valibot.partial(HtmlConfigSchema);
892
- const XmlOverridesSchema = valibot.partial(XmlConfigSchema);
893
- const JsonOverridesSchema = valibot.partial(JsonConfigSchema);
894
- const sharedDefaults = {
895
- printWidth: 80,
896
- tabWidth: 2,
897
- useTabs: false,
898
- endOfLine: "lf"
899
- };
900
- const htmlDefaults = {
901
- ...sharedDefaults,
902
- parser: "html",
903
- bracketSameLine: false,
904
- singleAttributePerLine: false,
905
- htmlWhitespaceSensitivity: "css",
906
- proseWrap: "preserve",
907
- embeddedLanguageFormatting: "auto"
908
- };
909
- const xmlDefaults = {
910
- ...sharedDefaults,
911
- bracketSameLine: false,
912
- singleAttributePerLine: false,
913
- xmlWhitespaceSensitivity: "strict",
914
- xmlQuoteAttributes: "double",
915
- xmlSelfClosingSpace: true,
916
- xmlSortAttributesByKey: true
917
- };
918
- const jsonDefaultsByParser = {
919
- json: {
920
- ...sharedDefaults,
921
- parser: "json"
922
- },
923
- jsonc: {
924
- ...sharedDefaults,
925
- parser: "jsonc"
926
- },
927
- json5: {
928
- ...sharedDefaults,
929
- parser: "json5"
930
- },
931
- "json-stringify": {
932
- ...sharedDefaults,
933
- parser: "json-stringify"
934
- }
935
- };
936
- function buildPrettierConfigHTML(overrides) {
937
- const safeOverrides = valibot.parse(HtmlOverridesSchema, overrides);
938
- return valibot.parse(HtmlConfigSchema, {
939
- ...htmlDefaults,
940
- ...safeOverrides,
941
- parser: "html"
942
- });
943
- }
944
- function buildPrettierConfigXML(overrides) {
945
- const safeOverrides = valibot.parse(XmlOverridesSchema, overrides);
946
- return valibot.parse(XmlConfigSchema, {
947
- ...xmlDefaults,
948
- ...safeOverrides
949
- });
950
- }
951
- function buildPrettierConfigJSON(fileType, overrides) {
952
- const safeOverrides = valibot.parse(JsonOverridesSchema, overrides);
953
- return valibot.parse(JsonConfigSchema, {
954
- ...jsonDefaultsByParser[fileType],
955
- ...safeOverrides,
956
- parser: fileType
957
- });
958
- }
959
- //#endregion
960
- //#region src/schemas/formatter.schemas.ts
961
- const FORMATTER_TEXT_MAX_LENGTH = 5e4;
962
- const formatterModeOptions = [
963
- {
964
- label: "HTML Formatter",
965
- value: "html"
966
- },
967
- {
968
- label: "XML Formatter",
969
- value: "xml"
970
- },
971
- {
972
- label: "JSON Formatter",
973
- value: "json"
974
- }
975
- ];
976
- const formatterModeValues = formatterModeOptions.map((option) => option.value);
977
- const SFormatterMode = valibot.picklist(formatterModeValues);
978
- const indentLevelOptions = [
979
- {
980
- label: "2 Spaces Indent",
981
- value: "TWO_SPACES",
982
- description: "prettifies input text with 2 spaces indent"
983
- },
984
- {
985
- label: "3 Spaces Indent",
986
- value: "THREE_SPACES",
987
- description: "prettifies input text with 3 spaces indent"
988
- },
989
- {
990
- label: "4 Spaces Indent",
991
- value: "FOUR_SPACES",
992
- description: "prettifies input text with 4 spaces indent"
993
- },
994
- {
995
- label: "Tab Delimited Indent",
996
- value: "TAB",
997
- description: "prettifies input text with tab delimited indent"
998
- },
999
- {
1000
- label: "Compact Mode",
1001
- value: "COMPACT",
1002
- description: "removes all unnecessary whitespace, including newlines and tabs"
1003
- }
1004
- ];
1005
- const indentLevelValues = indentLevelOptions.map((option) => option.value);
1006
- const SIndentLevel = valibot.optional(valibot.picklist(indentLevelValues), "TWO_SPACES");
1007
- const SContentText = valibot.optional(valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(FORMATTER_TEXT_MAX_LENGTH, `Text cannot exceed ${FORMATTER_TEXT_MAX_LENGTH.toLocaleString()} characters. Please upload a file instead if your content exceeds this limit.`)));
1008
- const HTMLMimeTypes = ["text/html", "application/xhtml+xml"];
1009
- const XMLMimeTypes = [
1010
- "text/xml",
1011
- "application/xml",
1012
- "application/rss+xml",
1013
- "application/atom+xml"
1014
- ];
1015
- const JSONMimeTypes = [
1016
- "text/json",
1017
- "application/json",
1018
- "application/ld+json",
1019
- "application/json5",
1020
- "application/x-ndjson",
1021
- "application/jsonlines"
1022
- ];
1023
- const TXTMimeTypes = ["text/plain", "application/octet-stream"];
1024
- const allowedMimeTypes = [
1025
- ...HTMLMimeTypes,
1026
- ...XMLMimeTypes,
1027
- ...JSONMimeTypes,
1028
- ...TXTMimeTypes
1029
- ];
1030
- const SContentFile = valibot.optional(valibot.pipe(valibot.file("Please upload a file."), valibot.maxSize(2 * 1024 * 1024, "File must be smaller than 2 MB."), valibot.mimeType(allowedMimeTypes, "Please upload a valid file: text, HTML, XML, or JSON.")));
1031
- const SFormatterForm = valibot.pipe(valibot.object({
1032
- formatter_mode: SFormatterMode,
1033
- chars_per_line: valibot.optional(valibot.number()),
1034
- indent_level: SIndentLevel,
1035
- text_content: SContentText,
1036
- files: SContentFile
1037
- }), valibot.check((input) => !!(input.text_content || input.files), "You must provide text content or a text file."));
1038
- const SFormatterRequest = valibot.pipe(valibot.object({
1039
- formatter_mode: SFormatterMode,
1040
- chars_per_line: valibot.optional(valibot.number()),
1041
- indent_level: SIndentLevel,
1042
- content: valibot.string(),
1043
- content_type: valibot.picklist(["text", "file"], "Please select a content type."),
1044
- prettier_parser: valibot.picklist([
1045
- "html",
1046
- "xml",
1047
- "json",
1048
- "jsonc",
1049
- "json5"
1050
- ], "Please select a prettier parser.")
1051
- }));
1052
- //#endregion
1053
- //#region src/schemas/gcflytour-snap.schemas.ts
1054
- const GCFlyTourSnapSortKeys = [
1055
- "id",
1056
- "title",
1057
- "slug",
1058
- "is_active",
1059
- "is_hidden",
1060
- "createdAt",
1061
- "updatedAt"
1062
- ];
1063
- const QuerySortGCFlyTourSnaps = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(GCFlyTourSnapSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(GCFlyTourSnapSortKeys.length)));
1064
- const QueryStrapiSearchGCFlyTourSnaps = valibot.object({
1065
- page: VPage(),
1066
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
1067
- title: valibot.optional(VStringMax()),
1068
- slug: valibot.optional(VStringMax()),
1069
- is_active: valibot.optional(valibot.boolean()),
1070
- is_hidden: valibot.optional(valibot.boolean()),
1071
- gcflytour: valibot.optional(VStringMinMax(1, 255)),
1072
- gcflytours: valibot.optional(SQueryManyEntities),
1073
- sort: QuerySortGCFlyTourSnaps
1074
- });
1075
- const SCreateGCFlyTourSnapDocument = valibot.object({
1076
- title: VStringMinMax(1, 255),
1077
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1078
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1079
- is_active: valibot.boolean(),
1080
- is_hidden: valibot.boolean(),
1081
- gcflytour: valibot.optional(SAssociateOneEntity)
1082
- });
1083
- const SUpdateGCFlyTourSnapDocument = valibot.object({
1084
- title: valibot.optional(VStringMinMax(1, 255)),
1085
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1086
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1087
- is_active: valibot.optional(valibot.boolean()),
1088
- is_hidden: valibot.optional(valibot.boolean()),
1089
- gcflytour: valibot.optional(SAssociateOneEntity)
1090
- });
1091
- const SUpdateGCFlyTourSnapDocumentRequest = valibot.object({
1092
- documentId: SAssociateOneEntity,
1093
- data: SUpdateGCFlyTourSnapDocument
1094
- });
1095
- //#endregion
1096
- //#region src/schemas/gcflytour.schemas.ts
1097
- const GCFlyTourSortKeys = [
1098
- "id",
1099
- "title",
1100
- "slug",
1101
- "is_active",
1102
- "is_hidden",
1103
- "createdAt",
1104
- "updatedAt"
1105
- ];
1106
- const QuerySortGCFlyTours = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(GCFlyTourSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(GCFlyTourSortKeys.length)));
1107
- const QueryStrapiSearchGCFlyTours = valibot.object({
1108
- page: VPage(),
1109
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
1110
- title: valibot.optional(VStringMax()),
1111
- slug: valibot.optional(VStringMax()),
1112
- is_active: valibot.optional(valibot.boolean()),
1113
- is_hidden: valibot.optional(valibot.boolean()),
1114
- clients: valibot.optional(SQueryManyEntities),
1115
- sort: QuerySortGCFlyTours
1116
- });
1117
- const SCreateGCFlyTourDocument = valibot.object({
1118
- title: VStringMinMax(1, 255),
1119
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1120
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1121
- is_active: valibot.boolean(),
1122
- is_hidden: valibot.boolean(),
1123
- clients: valibot.optional(SAssociateManyEntities),
1124
- gcflytour_snaps: valibot.optional(SAssociateManyEntities)
1125
- });
1126
- const SUpdateGCFlyTourDocument = valibot.object({
1127
- title: valibot.optional(VStringMinMax(1, 255)),
1128
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1129
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1130
- is_active: valibot.optional(valibot.boolean()),
1131
- is_hidden: valibot.optional(valibot.boolean()),
1132
- clients: valibot.optional(SAssociateManyEntities),
1133
- gcflytour_snaps: valibot.optional(SAssociateManyEntities)
1134
- });
1135
- const SUpdateGCFlyTourDocumentRequest = valibot.object({
1136
- documentId: SAssociateOneEntity,
1137
- data: SUpdateGCFlyTourDocument
1138
- });
1139
- //#endregion
1140
- //#region src/schemas/lead.schemas.ts
1141
- const SCreateLeadDocument = valibot.object({
1142
- first_name: VStringMinMax(1, 255),
1143
- last_name: VStringMinMax(1, 255),
1144
- email: VStringEmail(),
1145
- phone: VStringPhone(),
1146
- company: VStringMinMax(1, 255),
1147
- title: VStringMinMax(1, 255),
1148
- message: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
1149
- product_interest: VStringMax(255),
1150
- email_consent: valibot.boolean(),
1151
- sms_consent: valibot.boolean(),
1152
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1153
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1154
- });
1155
- const SUpdateLeadDocument = valibot.object({
1156
- first_name: valibot.optional(VStringMinMax(1, 255)),
1157
- last_name: valibot.optional(VStringMinMax(1, 255)),
1158
- email: valibot.optional(VStringEmail()),
1159
- phone: valibot.optional(VStringPhone()),
1160
- company: valibot.optional(VStringMinMax(1, 255)),
1161
- title: valibot.optional(VStringMinMax(1, 255)),
1162
- message: valibot.optional(VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)),
1163
- product_interest: valibot.optional(valibot.nullable(VStringMax(255))),
1164
- email_consent: valibot.optional(valibot.boolean()),
1165
- sms_consent: valibot.optional(valibot.boolean()),
1166
- on_page: valibot.optional(VStringMax(require_constants.LIMIT_MAX_DESTINATION)),
1167
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1168
- });
1169
- const SUpdateLeadRequest = valibot.object({
1170
- documentId: SAssociateOneEntity,
1171
- data: SUpdateLeadDocument
1172
- });
1173
- //#endregion
1174
- //#region src/schemas/media-content-type.schemas.ts
1175
- const MediaContentTypeSortKeys = [
1176
- "id",
1177
- "title",
1178
- "slug",
1179
- "is_active",
1180
- "is_organic_social",
1181
- "is_paid_media",
1182
- "createdAt",
1183
- "updatedAt",
1184
- "media_platforms.title",
1185
- "media_platforms.slug",
1186
- "media_platforms.utm_key",
1187
- "media_platforms.is_active",
1188
- "media_platforms.is_organic_social",
1189
- "media_platforms.is_paid_media",
1190
- "media_platforms.createdAt",
1191
- "media_platforms.updatedAt",
1192
- "media_creative_formats.title",
1193
- "media_creative_formats.slug",
1194
- "media_creative_formats.is_active",
1195
- "media_creative_formats.createdAt",
1196
- "media_creative_formats.updatedAt"
1197
- ];
1198
- const QuerySortMediaContentType = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MediaContentTypeSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MediaContentTypeSortKeys.length)));
1199
- const QueryStrapiSearchMediaContentTypes = valibot.object({
1200
- page: VPage(),
1201
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
1202
- title: valibot.optional(VStringMax()),
1203
- slug: valibot.optional(VStringMax()),
1204
- is_active: valibot.optional(valibot.boolean()),
1205
- is_organic_social: valibot.optional(valibot.boolean()),
1206
- is_paid_media: valibot.optional(valibot.boolean()),
1207
- media_platforms: valibot.optional(SQueryManyEntities),
1208
- media_creative_formats: valibot.optional(SQueryManyEntities),
1209
- sort: QuerySortMediaContentType
1210
- });
1211
- const SCreateMediaContentTypeDocument = valibot.object({
1212
- title: VStringMinMax(1, 255),
1213
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1214
- is_active: valibot.boolean(),
1215
- is_organic_social: valibot.boolean(),
1216
- is_paid_media: valibot.boolean(),
1217
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1218
- media_platforms: valibot.optional(SAssociateManyEntities),
1219
- media_creative_formats: valibot.optional(SAssociateManyEntities)
1220
- });
1221
- const SUpdateMediaContentTypeDocument = valibot.object({
1222
- title: valibot.optional(VStringMinMax(1, 255)),
1223
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1224
- is_active: valibot.optional(valibot.boolean()),
1225
- is_organic_social: valibot.optional(valibot.boolean()),
1226
- is_paid_media: valibot.optional(valibot.boolean()),
1227
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1228
- media_platforms: valibot.optional(SAssociateManyEntities),
1229
- media_creative_formats: valibot.optional(SAssociateManyEntities)
1230
- });
1231
- const SUpdateMediaContentTypeDocumentRequest = valibot.object({
1232
- documentId: SAssociateOneEntity,
1233
- data: SUpdateMediaContentTypeDocument
1234
- });
1235
- //#endregion
1236
- //#region src/schemas/media-creative-format.schemas.ts
1237
- const MediaCreativeFormatSortKeys = [
1238
- "id",
1239
- "title",
1240
- "slug",
1241
- "is_active",
1242
- "createdAt",
1243
- "updatedAt",
1244
- "media_content_types.title",
1245
- "media_content_types.slug",
1246
- "media_content_types.is_active",
1247
- "media_content_types.is_organic_social",
1248
- "media_content_types.is_paid_media",
1249
- "media_content_types.createdAt",
1250
- "media_content_types.updatedAt"
1251
- ];
1252
- const QuerySortMediaCreativeFormat = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MediaCreativeFormatSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MediaCreativeFormatSortKeys.length)));
1253
- const QueryStrapiSearchMediaCreativeFormats = valibot.object({
1254
- page: VPage(),
1255
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
1256
- title: valibot.optional(VStringMax()),
1257
- slug: valibot.optional(VStringMax()),
1258
- is_active: valibot.optional(valibot.boolean()),
1259
- media_content_types: valibot.optional(SQueryManyEntities),
1260
- sort: QuerySortMediaCreativeFormat
1261
- });
1262
- const SCreateMediaCreativeFormatDocument = valibot.object({
1263
- title: VStringMinMax(1, 255),
1264
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1265
- is_active: valibot.boolean(),
1266
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1267
- media_content_types: valibot.optional(SAssociateManyEntities)
1268
- });
1269
- const SUpdateMediaCreativeFormatDocument = valibot.object({
1270
- title: valibot.optional(VStringMinMax(1, 255)),
1271
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1272
- is_active: valibot.optional(valibot.boolean()),
1273
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1274
- media_content_types: valibot.optional(SAssociateManyEntities)
1275
- });
1276
- const SUpdateMediaCreativeFormatDocumentRequest = valibot.object({
1277
- documentId: SAssociateOneEntity,
1278
- data: SUpdateMediaCreativeFormatDocument
1279
- });
1280
- //#endregion
1281
- //#region src/schemas/media-medium.schemas.ts
1282
- const MediaMediumSortKeys = [
1283
- "id",
1284
- "title",
1285
- "slug",
1286
- "is_active",
1287
- "is_organic_social",
1288
- "is_paid_media",
1289
- "createdAt",
1290
- "updatedAt",
1291
- "media_platforms.title",
1292
- "media_platforms.slug",
1293
- "media_platforms.utm_key",
1294
- "media_platforms.is_active",
1295
- "media_platforms.is_organic_social",
1296
- "media_platforms.is_paid_media",
1297
- "media_platforms.createdAt",
1298
- "media_platforms.updatedAt"
1299
- ];
1300
- const QuerySortMediaMedium = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MediaMediumSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MediaMediumSortKeys.length)));
1301
- const QueryStrapiSearchMediaMediums = valibot.object({
1302
- page: VPage(),
1303
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
1304
- title: valibot.optional(VStringMax()),
1305
- slug: valibot.optional(VStringMax()),
1306
- is_active: valibot.optional(valibot.boolean()),
1307
- is_organic_social: valibot.optional(valibot.boolean()),
1308
- is_paid_media: valibot.optional(valibot.boolean()),
1309
- media_platforms: valibot.optional(SQueryManyEntities),
1310
- sort: QuerySortMediaMedium
1311
- });
1312
- const SCreateMediaMediumDocument = valibot.object({
1313
- title: VStringMinMax(1, 255),
1314
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1315
- is_active: valibot.boolean(),
1316
- is_organic_social: valibot.boolean(),
1317
- is_paid_media: valibot.boolean(),
1318
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1319
- media_platforms: valibot.optional(SAssociateManyEntities)
1320
- });
1321
- const SUpdateMediaMediumDocument = valibot.object({
1322
- title: valibot.optional(VStringMinMax(1, 255)),
1323
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1324
- is_active: valibot.optional(valibot.boolean()),
1325
- is_organic_social: valibot.optional(valibot.boolean()),
1326
- is_paid_media: valibot.optional(valibot.boolean()),
1327
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1328
- media_platforms: valibot.optional(SAssociateManyEntities)
1329
- });
1330
- const SUpdateMediaMediumDocumentRequest = valibot.object({
1331
- documentId: SAssociateOneEntity,
1332
- data: SUpdateMediaMediumDocument
1333
- });
1334
- //#endregion
1335
- //#region src/schemas/media-platform.schemas.ts
1336
- const MediaPlatformSortKeys = [
1337
- "id",
1338
- "title",
1339
- "slug",
1340
- "utm_key",
1341
- "is_active",
1342
- "is_organic_social",
1343
- "is_paid_media",
1344
- "createdAt",
1345
- "updatedAt",
1346
- "clients.title",
1347
- "clients.teamwork_id",
1348
- "clients.teamwork_name",
1349
- "clients.is_organic_social",
1350
- "clients.is_paid_media",
1351
- "clients.createdAt",
1352
- "clients.updatedAt",
1353
- "media_content_types.title",
1354
- "media_content_types.slug",
1355
- "media_content_types.is_active",
1356
- "media_content_types.is_organic_social",
1357
- "media_content_types.is_paid_media",
1358
- "media_content_types.createdAt",
1359
- "media_content_types.updatedAt",
1360
- "media_mediums.title",
1361
- "media_mediums.slug",
1362
- "media_mediums.is_active",
1363
- "media_mediums.is_organic_social",
1364
- "media_mediums.is_paid_media",
1365
- "media_mediums.createdAt",
1366
- "media_mediums.updatedAt"
1367
- ];
1368
- const QuerySortMediaPlatforms = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MediaPlatformSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MediaPlatformSortKeys.length)));
1369
- const QueryStrapiSearchMediaPlatforms = valibot.object({
1370
- page: VPage(),
1371
- size: VSize(require_constants.LIMIT_PAGINATION_MAX_SIZE),
1372
- title: valibot.optional(VStringMax()),
1373
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1374
- utm_key: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1375
- is_active: valibot.optional(valibot.boolean()),
1376
- is_organic_social: valibot.optional(valibot.boolean()),
1377
- is_paid_media: valibot.optional(valibot.boolean()),
1378
- clients: valibot.optional(SQueryManyEntities),
1379
- media_content_types: valibot.optional(SQueryManyEntities),
1380
- media_mediums: valibot.optional(SQueryManyEntities),
1381
- sort: QuerySortMediaPlatforms
1382
- });
1383
- const SCreateMediaPlatformDocument = valibot.object({
1384
- title: VStringMinMax(1, 255),
1385
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1386
- utm_key: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG),
1387
- is_active: valibot.boolean(),
1388
- is_organic_social: valibot.boolean(),
1389
- is_paid_media: valibot.boolean(),
1390
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1391
- clients: valibot.optional(SAssociateManyEntities),
1392
- media_content_types: valibot.optional(SAssociateManyEntities),
1393
- media_mediums: valibot.optional(SAssociateManyEntities)
1394
- });
1395
- const SUpdateMediaPlatformDocument = valibot.object({
1396
- title: valibot.optional(VStringMinMax(1, 255)),
1397
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1398
- utm_key: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)),
1399
- is_active: valibot.optional(valibot.boolean()),
1400
- is_organic_social: valibot.optional(valibot.boolean()),
1401
- is_paid_media: valibot.optional(valibot.boolean()),
1402
- description: valibot.optional(valibot.nullable(VStringMax(255))),
1403
- clients: valibot.optional(SAssociateManyEntities),
1404
- media_content_types: valibot.optional(SAssociateManyEntities),
1405
- media_mediums: valibot.optional(SAssociateManyEntities)
1406
- });
1407
- const SUpdateMediaPlatformDocumentRequest = valibot.object({
1408
- documentId: SAssociateOneEntity,
1409
- data: SUpdateMediaPlatformDocument
1410
- });
1411
- //#endregion
1412
- //#region src/schemas/monday-workspace.schemas.ts
1413
- const MondayWorkspaceSortKeys = [
1414
- "id",
1415
- "clients.title",
1416
- "clients.teamwork_name",
1417
- "title",
1418
- "workspace_id",
1419
- "createdAt",
1420
- "updatedAt"
1421
- ];
1422
- const QuerySortMondayWorkspaces = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MondayWorkspaceSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MondayWorkspaceSortKeys.length)));
1423
- const QueryStrapiSearchMondayWorkspaces = valibot.object({
1424
- page: VPage(),
1425
- size: VSize(require_constants.LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE),
1426
- title: valibot.optional(VStringMax()),
1427
- workspace_id: valibot.optional(VStringMax()),
1428
- clients: valibot.optional(SQueryManyEntities),
1429
- sort: QuerySortMondayWorkspaces
1430
- });
1431
- const SCreateMondayWorkspaceDocument = valibot.object({
1432
- title: VStringShort(),
1433
- workspace_id: VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
1434
- clients: valibot.optional(SAssociateManyEntities)
1435
- });
1436
- const SUpdateMondayWorkspaceDocument = valibot.object({
1437
- title: valibot.optional(VStringShort()),
1438
- workspace_id: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1439
- clients: valibot.optional(SAssociateManyEntities)
1440
- });
1441
- const SUpdateMondayWorkspaceDocumentRequest = valibot.object({
1442
- documentId: SAssociateOneEntity,
1443
- data: SUpdateMondayWorkspaceDocument
1444
- });
1445
- //#endregion
1446
- //#region src/schemas/newsletter.schemas.ts
1447
- const SCreateNewsletterSignup = valibot.object({
1448
- first_name: VStringMinMax(1, 255),
1449
- last_name: VStringMinMax(1, 255),
1450
- email: VStringEmail(),
1451
- download_key: valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(255)),
1452
- product_interest: valibot.pipe(valibot.string(require_constants.ERROR_MESSAGE_ROBOT), valibot.trim(), valibot.maxLength(255)),
1453
- email_consent: valibot.boolean(),
1454
- sms_consent: valibot.boolean(),
1455
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1456
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
1457
- middle_name: valibot.string()
1458
- });
1459
- const SCreateNewsletterSignupDocument = valibot.object({
1460
- first_name: VStringMinMax(1, 255),
1461
- last_name: VStringMinMax(1, 255),
1462
- email: VStringEmail(),
1463
- download_key: valibot.optional(valibot.nullable(VStringMax())),
1464
- product_interest: valibot.optional(valibot.nullable(VStringMax(255))),
1465
- email_consent: valibot.boolean(),
1466
- sms_consent: valibot.boolean(),
1467
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1468
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1469
- });
1470
- const SUpdateNewsletterSignupDocument = valibot.object({
1471
- first_name: valibot.optional(VStringMinMax(1, 255)),
1472
- last_name: valibot.optional(VStringMinMax(1, 255)),
1473
- email: valibot.optional(VStringEmail()),
1474
- download_key: valibot.optional(valibot.nullable(VStringMax())),
1475
- product_interest: valibot.optional(valibot.nullable(VStringMax(255))),
1476
- email_consent: valibot.optional(valibot.boolean()),
1477
- sms_consent: valibot.optional(valibot.boolean()),
1478
- on_page: valibot.optional(VStringMax(require_constants.LIMIT_MAX_DESTINATION)),
1479
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1480
- });
1481
- const SUpdateNewsletterSignupRequest = valibot.object({
1482
- documentId: SAssociateOneEntity,
1483
- data: SUpdateNewsletterSignupDocument
1484
- });
1485
- //#endregion
1486
- //#region src/schemas/resume.schemas.ts
1487
- const checkIsValidUrlList = (input) => {
1488
- if (input === "") return true;
1489
- const urls = input.split(",");
1490
- if (urls.length > 0) {
1491
- const truthy = [];
1492
- for (let i = 0; i < urls.length; i++) {
1493
- const result = valibot.safeParse(valibot.pipe(valibot.string(), valibot.trim(), valibot.startsWith("http", require_constants.ERROR_MESSAGE_URL_PREFIX), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL)), urls[i]);
1494
- truthy.push(result.success);
1495
- }
1496
- return truthy.every((item) => item === true);
1497
- }
1498
- return false;
1499
- };
1500
- const SValidFileObject = valibot.object({
1501
- id: valibot.number(),
1502
- src: valibot.optional(valibot.string())
1503
- });
1504
- const SValidSocialProfiles = valibot.pipe(valibot.string(), valibot.trim(), valibot.maxLength(require_constants.LIMIT_LONG_STRING_MAX_LENGTH), valibot.check(checkIsValidUrlList, require_constants.ERROR_MESSAGE_COMMA_SEPPARATED_URLS));
1505
- const SCreateResume = valibot.object({
1506
- first_name: VStringMinMax(1, 255),
1507
- last_name: VStringMinMax(1, 255),
1508
- email: VStringEmail(),
1509
- phone: valibot.optional(VStringPhone()),
1510
- message: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
1511
- social_profiles: valibot.optional(SValidSocialProfiles),
1512
- file: valibot.nullable(valibot.pipe(valibot.file("Please upload a PDF or Word document."), valibot.mimeType([
1513
- "application/pdf",
1514
- "application/msword",
1515
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1516
- "application/rtf",
1517
- "text/plain",
1518
- "application/vnd.oasis.opendocument.text"
1519
- ], "Please upload a PDF or Word document."))),
1520
- email_consent: valibot.boolean(),
1521
- sms_consent: valibot.boolean(),
1522
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1523
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1524
- });
1525
- const SCreateResumeInfo = valibot.object({
1526
- first_name: VStringMinMax(1, 255),
1527
- last_name: VStringMinMax(1, 255),
1528
- email: VStringEmail(),
1529
- phone: valibot.optional(VStringPhone()),
1530
- message: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
1531
- social_profiles: valibot.optional(SValidSocialProfiles),
1532
- file: SValidFileObject,
1533
- email_consent: valibot.boolean(),
1534
- sms_consent: valibot.boolean(),
1535
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1536
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1537
- });
1538
- const SCreateResumeInfoDocument = valibot.object({
1539
- first_name: VStringMinMax(1, 255),
1540
- last_name: VStringMinMax(1, 255),
1541
- email: VStringEmail(),
1542
- phone: VStringPhoneNullable(),
1543
- message: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
1544
- social_profiles: valibot.optional(SValidSocialProfiles),
1545
- file: SValidFileObject,
1546
- email_consent: valibot.boolean(),
1547
- sms_consent: valibot.boolean(),
1548
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1549
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1550
- });
1551
- const SUpdateResumeInfo = valibot.object({
1552
- first_name: valibot.optional(VStringMinMax(1, 255)),
1553
- last_name: valibot.optional(VStringMinMax(1, 255)),
1554
- email: valibot.optional(VStringEmail()),
1555
- phone: VStringPhoneNullable(),
1556
- message: valibot.optional(VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)),
1557
- social_profiles: valibot.optional(valibot.nullable(valibot.optional(SValidSocialProfiles))),
1558
- file: valibot.optional(SValidFileObject),
1559
- email_consent: valibot.optional(valibot.boolean()),
1560
- sms_consent: valibot.optional(valibot.boolean()),
1561
- on_page: valibot.optional(VStringMax(require_constants.LIMIT_MAX_DESTINATION)),
1562
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1563
- });
1564
- const SUpdateResumeInfoDocument = valibot.object({
1565
- first_name: valibot.optional(VStringMinMax(1, 255)),
1566
- last_name: valibot.optional(VStringMinMax(1, 255)),
1567
- email: valibot.optional(VStringEmail()),
1568
- phone: valibot.optional(VStringPhone()),
1569
- message: valibot.optional(VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)),
1570
- social_profiles: valibot.optional(valibot.optional(SValidSocialProfiles)),
1571
- file: valibot.optional(SValidFileObject),
1572
- email_consent: valibot.optional(valibot.boolean()),
1573
- sms_consent: valibot.optional(valibot.boolean()),
1574
- on_page: valibot.optional(VStringMax(require_constants.LIMIT_MAX_DESTINATION)),
1575
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
1576
- });
1577
- const SUpdateResumeInfoRequest = valibot.object({
1578
- documentId: SAssociateOneEntity,
1579
- data: SUpdateResumeInfo
1580
- });
1581
- //#endregion
1582
- //#region src/schemas/sharpspring.schemas.ts
1583
- const SharpSpringSignUpToDownload = valibot.object({
1584
- first_name: VStringMinMax(1, 255),
1585
- last_name: VStringMinMax(1, 255),
1586
- email: VStringEmail(),
1587
- download_key: VStringMax(255),
1588
- email_consent: valibot.boolean(),
1589
- on_page: VStringMax(require_constants.LIMIT_MAX_DESTINATION),
1590
- captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH),
1591
- middle_name: valibot.string()
1592
- });
1593
- //#endregion
1594
- //#region src/schemas/strapi-media-upload.schemas.ts
1595
- /**
1596
- * @documentation [Strapi Rest API Upload Files](https://docs.strapi.io/cms/api/rest/upload)
1597
- */
1598
- const SValidFileUpload10MB = valibot.pipe(valibot.file(), valibot.minSize(1), valibot.maxSize(10485760, `File size cannot exceed 10MB.`));
1599
- const SCreateStrapiMediaUploadDocument = valibot.object({
1600
- files: SValidFileUpload10MB,
1601
- ref: VStringMax(),
1602
- refId: VStringMinMax(1, 255),
1603
- field: VStringMax()
1604
- });
1605
- const SCreateMultipleStrapiMediaUploadDocument = valibot.object({
1606
- files: valibot.pipe(valibot.array(SValidFileUpload10MB), valibot.minLength(1)),
1607
- ref: VStringMax(),
1608
- refId: VStringMinMax(1, 255),
1609
- field: VStringMax()
1610
- });
1611
- const SUpdateStrapiMediaFileInfo = valibot.object({
1612
- name: VStringMinMax(1, 255),
1613
- alternativeText: valibot.optional(VStringMinMax(1, 255)),
1614
- caption: valibot.optional(VStringMinMax(1, 255))
1615
- });
1616
- //#endregion
1617
- //#region src/schemas/tag.schemas.ts
1618
- const TagSortKeys = [
1619
- "id",
1620
- "label",
1621
- "slug",
1622
- "createdAt",
1623
- "updatedAt"
1624
- ];
1625
- const QuerySortTags = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(TagSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(TagSortKeys.length)));
1626
- const QueryStrapiSearchTags = valibot.object({
1627
- page: VPage(),
1628
- size: VSize(20),
1629
- label: valibot.optional(VStringMax()),
1630
- slug: valibot.optional(VStringMax()),
1631
- sort: QuerySortTags
1632
- });
1633
- const SCreateTagDocument = valibot.object({
1634
- label: VStringMinMax(1, 255),
1635
- slug: VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG)
1636
- });
1637
- const SUpdateTagDocument = valibot.object({
1638
- label: valibot.optional(VStringMinMax(1, 255)),
1639
- slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG))
1640
- });
1641
- const SUpdateTagDocumentRequest = valibot.object({
1642
- documentId: SAssociateOneEntity,
1643
- data: SUpdateTagDocument
1644
- });
1645
- //#endregion
1646
- //#region src/schemas/team-member.schemas.ts
1647
- const TeamMemberSortKeys = [
1648
- "id",
1649
- "name",
1650
- "order",
1651
- "tier",
1652
- "group",
1653
- "is_employed",
1654
- "createdAt",
1655
- "updatedAt"
1656
- ];
1657
- const QuerySortTeamMembers = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(TeamMemberSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(TeamMemberSortKeys.length)));
1658
- const QueryStrapiSearchTeamMembers = valibot.object({
1659
- page: VPage(),
1660
- size: VSize(20),
1661
- name: valibot.optional(VStringMax()),
1662
- slug: valibot.optional(VStringMax()),
1663
- order: VIntegerNullable(),
1664
- tier: valibot.optional(valibot.picklist([
1665
- "owner",
1666
- "manager",
1667
- "employee"
1668
- ])),
1669
- group: valibot.optional(valibot.picklist([
1670
- "account",
1671
- "media",
1672
- "creative"
1673
- ])),
1674
- is_employed: valibot.optional(valibot.boolean()),
1675
- sort: QuerySortTeamMembers
1676
- });
1677
- //#endregion
1678
- //#region src/schemas/teamwork.schemas.ts
1679
- const TeamworkProjectHealthSelectSortOptions = [{
1680
- label: "Name",
1681
- value: "name"
1682
- }, {
1683
- label: "Health",
1684
- value: "health"
1685
- }];
1686
- const TeamworkProjectHealthProjectStatusOptions = [
1687
- {
1688
- label: "Active",
1689
- value: "active",
1690
- description: "Projects that are currently active"
1691
- },
1692
- {
1693
- label: "Current",
1694
- value: "current",
1695
- description: "Projects that are currently ongoing"
1696
- },
1697
- {
1698
- label: "Late",
1699
- value: "late",
1700
- description: "Projects that are behind schedule"
1701
- },
1702
- {
1703
- label: "Upcoming",
1704
- value: "upcoming",
1705
- description: "Projects that are scheduled to start soon"
1706
- },
1707
- {
1708
- label: "Completed",
1709
- value: "completed",
1710
- description: "Projects that have been completed"
1711
- },
1712
- {
1713
- label: "Archived",
1714
- value: "archived",
1715
- description: "Projects that have been archived"
1716
- }
1717
- ];
1718
- const QuerySortTeamworkProjectHealth = valibot.optional(valibot.object({
1719
- key: valibot.picklist(TeamworkProjectHealthSelectSortOptions.map((option) => option.value)),
1720
- order: valibot.picklist(["ASC", "DESC"])
1721
- }));
1722
- const QueryStrapiSearchTeamworkProjectHealth = valibot.object({
1723
- page: VPage(),
1724
- size: VSize(100),
1725
- lastPeriodDays: VIntegerNullable(),
1726
- searchTerm: valibot.optional(VStringMax()),
1727
- excludeTagIds: valibot.optional(valibot.array(VStringMinMax(1, 255))),
1728
- includeArchivedProjects: valibot.optional(valibot.boolean()),
1729
- projectCategoryIds: valibot.optional(valibot.array(VStringMinMax(1, 255))),
1730
- projectCompanyIds: valibot.optional(valibot.array(VStringMinMax(1, 255))),
1731
- projectTagIds: valibot.optional(valibot.array(VStringMinMax(1, 255))),
1732
- projectHealths: valibot.optional(VStringMax()),
1733
- projectStatuses: valibot.optional(valibot.picklist(TeamworkProjectHealthProjectStatusOptions.map((option) => option.value)), TeamworkProjectHealthProjectStatusOptions[0].value),
1734
- sort: QuerySortTeamworkProjectHealth
1735
- });
1736
- //#endregion
1737
- //#region src/schemas/trend.schemas.ts
1738
- const SUpdateTrendsLikes = valibot.object({
1739
- documentId: SAssociateOneEntity,
1740
- likes: valibot.number()
1741
- });
1742
- //#endregion
1743
- //#region src/schemas/url-redirect.schemas.ts
1744
- const UrlRedirectSortKeys = [
1745
- "id",
1746
- "from",
1747
- "to",
1748
- "status_code",
1749
- "query_params",
1750
- "is_active",
1751
- "createdAt",
1752
- "updatedAt"
1753
- ];
1754
- const QuerySortUrlRedirects = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(UrlRedirectSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(UrlRedirectSortKeys.length)));
1755
- const QueryStrapiPaginatedUrlRedirects = valibot.object({
1756
- page: valibot.fallback(valibot.optional(VPage(), 1), 1),
1757
- size: valibot.fallback(valibot.optional(valibot.pipe(valibot.number(), valibot.minValue(1), valibot.maxValue(20)), require_constants.LIMIT_REDIRECT_PAGINATION_DEFAULT_SIZE), require_constants.LIMIT_REDIRECT_PAGINATION_DEFAULT_SIZE),
1758
- sort: QuerySortUrlRedirects
1759
- });
1760
- const QueryStrapiUrlRedirectsByFrom = valibot.object({ from: valibot.string() });
1761
- //#endregion
1762
- //#region src/schemas/user-account.schemas.ts
1763
- const SReadUserAccountById = valibot.object({ id: valibot.number() });
1764
- const SReadUserAccountByDocumentId = valibot.object({ documentId: SAssociateOneEntity });
1765
- const SUpdateUserAccount = valibot.object({
1766
- documentId: SAssociateOneEntity,
1767
- first_name: VStringMinMax(1, 255),
1768
- last_name: VStringMinMax(1, 255),
1769
- preferred_name: valibot.nullable(VStringMinMax(1, 255))
1770
- });
1771
- const SUpdateUserAccountFirstName = valibot.object({
1772
- documentId: SAssociateOneEntity,
1773
- first_name: VStringMinMax(1, 255)
1774
- });
1775
- const SUpdateUserAccountLastName = valibot.object({
1776
- documentId: SAssociateOneEntity,
1777
- last_name: VStringMinMax(1, 255)
1778
- });
1779
- const SUpdateUserAccountPreferredName = valibot.object({
1780
- documentId: SAssociateOneEntity,
1781
- preferred_name: valibot.nullable(VStringMinMax(1, 255))
1782
- });
1783
- //#endregion
1784
- //#region src/schemas/user-auth.schemas.ts
1785
- const SUserToken = valibot.object({ token: valibot.string() });
1786
- const SLoginUser = valibot.object({
1787
- identifier: VStringEmail(),
1788
- password: VStringMinMax(8, 255)
1789
- });
1790
- const SRegisterUser = valibot.object({
1791
- username: VStringMinMaxRegex(3, 255, require_constants.REGEX_UTM_VALUE, "username must be alphanumeric"),
1792
- email: VStringEmail(),
1793
- password: VStringMinMax(8, 255)
1794
- });
1795
- const SForgotUserPassword = valibot.object({ email: VStringEmail() });
1796
- const SRequestConfirmEmail = valibot.object({ email: VStringEmail() });
1797
- const SResetUserPassword = valibot.object({
1798
- password: VStringMinMax(8, 255),
1799
- passwordConfirmation: VStringMinMax(8, 255),
1800
- code: valibot.string()
1801
- });
1802
- const SChangePassword = valibot.pipe(valibot.object({
1803
- currentPassword: VStringMinMax(8, 255),
1804
- password: VStringMinMax(8, 255),
1805
- passwordConfirmation: VStringMinMax(8, 255)
1806
- }), valibot.forward(valibot.partialCheck([["password"], ["passwordConfirmation"]], (input) => input.password === input.passwordConfirmation, "Your new passwords do not match."), ["passwordConfirmation"]));
1807
- const SAuthRawAccessToken = valibot.object({
1808
- access_token: valibot.optional(valibot.string()),
1809
- expires_in: VIntegerNullable(),
1810
- scope: valibot.optional(valibot.string()),
1811
- token_type: valibot.optional(valibot.string()),
1812
- id_token: valibot.optional(valibot.string())
1813
- });
1814
- const SAuthConnectProviderRedirectSearch = valibot.object({
1815
- id_token: valibot.string(),
1816
- access_token: valibot.string(),
1817
- raw: valibot.optional(SAuthRawAccessToken)
1818
- });
1819
- const SAuthConnectProviderConfirmation = valibot.object({
1820
- provider: valibot.string(),
1821
- search: SAuthConnectProviderRedirectSearch
1822
- });
1823
- //#endregion
1824
- //#region src/schemas/user.schemas.ts
1825
- const UserSortKeys = [
1826
- "id",
1827
- "username",
1828
- "email",
1829
- "confirmed",
1830
- "blocked",
1831
- "createdAt",
1832
- "updatedAt"
1833
- ];
1834
- const QuerySortUsers = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(UserSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(UserSortKeys.length)));
1835
- const QueryStrapiUsers = valibot.object({
1836
- page: VPage(),
1837
- size: VSize(10),
1838
- sort: QuerySortUsers
1839
- });
1840
- const QueryStrapiUsersByIdentifier = valibot.object({
1841
- identifier: VStringShort(0),
1842
- page: VPage(),
1843
- size: VSize(10)
1844
- });
1845
- const SCreateUserDocument = valibot.object({
1846
- username: VStringMinMaxRegex(3, 255, require_constants.REGEX_UTM_VALUE, "username must be alphanumeric"),
1847
- email: VStringEmail(),
1848
- password: VStringMinMax(8, 255),
1849
- blocked: valibot.boolean(),
1850
- confirmed: valibot.boolean(),
1851
- role: valibot.number()
1852
- });
1853
- //#endregion
1854
- //#region src/schemas/utm-link-builder.schemas.ts
1855
- const SUtmLinkBuilderPartCampaignDateOptions = [
1856
- "annually",
1857
- "quarterly",
1858
- "monthly",
1859
- "on a specific date",
1860
- "no date"
1861
- ];
1862
- const SUtmLinkBuilderCampaign = valibot.object({
1863
- campaign_phase: VStringMinMax(1, 255),
1864
- campaign_product: valibot.optional(VStringMax()),
1865
- campaign_targeting: valibot.optional(valibot.pipe(valibot.array(VStringMaxRegex(255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)), valibot.maxLength(10))),
1866
- campaign_key: valibot.optional(VStringMaxRegex(255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1867
- campaign_date: valibot.object({
1868
- format: valibot.picklist(SUtmLinkBuilderPartCampaignDateOptions),
1869
- value: valibot.object({
1870
- year: valibot.number(),
1871
- quarter: VIntegerNullable(),
1872
- month: VIntegerNullable(),
1873
- day: VIntegerNullable()
1874
- })
1875
- })
1876
- });
1877
- const SUtmLinkBuilderCreativeFormat = valibot.object({
1878
- creative_format: valibot.optional(VStringMax(255)),
1879
- creative_format_variants: valibot.optional(valibot.array(VStringMax(255))),
1880
- creative_size: valibot.optional(valibot.object({
1881
- width: VIntegerNullable(),
1882
- height: VIntegerNullable(),
1883
- key: valibot.optional(VStringMax(255))
1884
- }))
1885
- });
1886
- const SUtmLinkBuilderTableForm = valibot.object({
1887
- creator: SAssociateOneEntity,
1888
- client: SAssociateOneEntity,
1889
- variants: valibot.pipe(valibot.array(valibot.object({
1890
- url_destinations: valibot.pipe(valibot.array(valibot.object({ url: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
1891
- if (input === "") return false;
1892
- return input.indexOf("?") === -1;
1893
- }, require_constants.ERROR_MESSAGE_URL_NO_QUERY_PARAMS)) })), valibot.minLength(1), valibot.maxLength(100)),
1894
- source: VStringMax(255),
1895
- mediums: valibot.pipe(valibot.array(VStringMax(255)), valibot.minLength(1), valibot.maxLength(10)),
1896
- campaign: SUtmLinkBuilderCampaign,
1897
- content: valibot.optional(VStringMax(255)),
1898
- creative_formats: valibot.optional(valibot.pipe(valibot.array(SUtmLinkBuilderCreativeFormat), valibot.maxLength(10))),
1899
- id: valibot.optional(VStringMinMax(1, 255))
1900
- })), valibot.minLength(1), valibot.maxLength(10)),
1901
- notes: valibot.optional(VStringMax())
1902
- });
1903
- const SUtmLinkBuilderSingleForm = valibot.object({
1904
- creator: SAssociateOneEntity,
1905
- client: SAssociateOneEntity,
1906
- url_destination: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
1907
- if (input === "") return false;
1908
- return input.indexOf("?") === -1;
1909
- }, require_constants.ERROR_MESSAGE_URL_NO_QUERY_PARAMS)),
1910
- source: VStringMax(255),
1911
- medium: VStringMax(255),
1912
- campaign: SUtmLinkBuilderCampaign,
1913
- content: valibot.optional(VStringMax(255)),
1914
- creative_format: valibot.optional(SUtmLinkBuilderCreativeFormat),
1915
- id: valibot.optional(VStringMinMax(1, 255)),
1916
- url: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
1917
- return input.includes("utm_");
1918
- }, require_constants.ERROR_MESSAGE_UTM_URL)),
1919
- notes: valibot.optional(VStringMax())
1920
- });
1921
- //#endregion
1922
- //#region src/schemas/utm-tracking-link.schemas.ts
1923
- const UtmTrackingLinkSortKeys = [
1924
- "id",
1925
- "creator",
1926
- "client",
1927
- "url_destination",
1928
- "utm_medium",
1929
- "utm_source",
1930
- "utm_campaign",
1931
- "utm_content",
1932
- "utm_creative_format",
1933
- "utm_id",
1934
- "campaign_phase",
1935
- "campaign_product",
1936
- "campaign_targeting",
1937
- "campaign_key",
1938
- "creative_format",
1939
- "creative_format_variants",
1940
- "url",
1941
- "is_active",
1942
- "createdAt",
1943
- "updatedAt"
1944
- ];
1945
- const QuerySortUtmTrackingLinks = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(UtmTrackingLinkSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(UtmTrackingLinkSortKeys.length)));
1946
- const QueryStrapiSearchUtmTrackingLinks = valibot.object({
1947
- page: VPage(),
1948
- size: VSize(require_constants.LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE),
1949
- client_id: valibot.optional(VStringShort()),
1950
- creator_id: valibot.optional(VStringShort()),
1951
- clients: valibot.optional(SQueryManyEntities),
1952
- users: valibot.optional(SQueryManyEntities),
1953
- url_destination: valibot.optional(valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
1954
- if (input === "") return false;
1955
- return input.indexOf("?") === -1;
1956
- }, require_constants.ERROR_MESSAGE_URL_NO_QUERY_PARAMS))),
1957
- utm_medium: valibot.optional(VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_MEDIUM, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1958
- utm_source: valibot.optional(VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_SOURCE, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1959
- utm_campaign: valibot.optional(VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CAMPAIGN, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1960
- utm_content: valibot.optional(VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CONTENT, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1961
- utm_creative_format: valibot.optional(VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CREATIVE_FORMAT, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1962
- utm_id: valibot.optional(VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_ID, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
1963
- campaign_phase: valibot.optional(VStringShort(0)),
1964
- campaign_product: valibot.optional(VStringShort(0)),
1965
- campaign_targeting: valibot.optional(VStringShort(0)),
1966
- campaign_key: valibot.optional(VStringShort(0)),
1967
- creative_format: valibot.optional(VStringShort(0)),
1968
- creative_format_variants: valibot.optional(valibot.array(VStringShort())),
1969
- url: valibot.optional(valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
1970
- return input.includes("utm_");
1971
- }, require_constants.ERROR_MESSAGE_UTM_URL))),
1972
- is_active: valibot.optional(valibot.boolean()),
1973
- notes: valibot.optional(VStringShort(0)),
1974
- sort: QuerySortUtmTrackingLinks
1975
- });
1976
- const SCreateUtmTrackingLinkDocument = valibot.object({
1977
- creator: VStringShort(),
1978
- client: VStringShort(),
1979
- url_destination: VStringUrlNoUtm(),
1980
- utm_source: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_SOURCE, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
1981
- utm_medium: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_MEDIUM, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
1982
- utm_campaign: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CAMPAIGN, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
1983
- utm_content: VStringShortNullable(),
1984
- utm_creative_format: VStringShortNullable(),
1985
- utm_id: VStringShortNullable(),
1986
- campaign_phase: VStringShort(),
1987
- campaign_product: VStringShortNullable(),
1988
- campaign_targeting: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(VStringMax()), valibot.transform((value) => value.join(","))))),
1989
- campaign_key: valibot.optional(valibot.nullable(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE))),
1990
- creative_format: VStringShortNullable(),
1991
- creative_format_variants: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(VStringMax()), valibot.transform((value) => value.join(","))))),
1992
- url: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
1993
- return input.includes("utm_");
1994
- }, require_constants.ERROR_MESSAGE_UTM_URL)),
1995
- is_active: valibot.boolean(),
1996
- notes: VStringLongNullable()
1997
- });
1998
- const SCreateUtmTrackingLinkDocumentRequest = valibot.object({
1999
- creator: VStringShort(),
2000
- client: VStringShort(),
2001
- url_destination: VStringUrlNoUtm(),
2002
- utm_source: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_SOURCE, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2003
- utm_medium: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_MEDIUM, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2004
- utm_campaign: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CAMPAIGN, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2005
- utm_content: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2006
- utm_creative_format: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2007
- utm_id: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2008
- campaign_phase: VStringShort(),
2009
- campaign_product: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2010
- campaign_targeting: VStringShortNullable(),
2011
- campaign_key: valibot.optional(valibot.nullable(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE))),
2012
- creative_format: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2013
- creative_format_variants: VStringShortNullable(),
2014
- url: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
2015
- return input.includes("utm_");
2016
- }, require_constants.ERROR_MESSAGE_UTM_URL)),
2017
- is_active: valibot.boolean(),
2018
- notes: valibot.optional(valibot.nullable(VStringMinMaxRegex(1, require_constants.LIMIT_LONG_STRING_MAX_LENGTH, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)))
2019
- });
2020
- const SCreateUtmTrackingLinkParts = valibot.object({
2021
- url_destination: VStringUrlNoUtm(),
2022
- utm_source: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_SOURCE, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2023
- utm_medium: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_MEDIUM, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2024
- utm_campaign: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CAMPAIGN, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2025
- utm_content: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2026
- utm_creative_format: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2027
- utm_id: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2028
- campaign_phase: VStringShort(),
2029
- campaign_product: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2030
- campaign_targeting: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(VStringShort()), valibot.transform((value) => value.join(","))))),
2031
- campaign_key: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)),
2032
- creative_format: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2033
- creative_format_variants: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(VStringShort()), valibot.transform((value) => value.join(","))))),
2034
- url: VStringUrlUtm(),
2035
- is_active: valibot.boolean(),
2036
- notes: valibot.optional(valibot.nullable(VStringMinMaxRegex(1, require_constants.LIMIT_LONG_STRING_MAX_LENGTH, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)))
2037
- });
2038
- const SFormCreateMultipleUtmTrackingLinkDocuments = valibot.object({
2039
- creator: VStringShort(),
2040
- client: VStringShort(),
2041
- links: valibot.pipe(valibot.array(SCreateUtmTrackingLinkParts), valibot.minLength(1), valibot.maxLength(100))
2042
- });
2043
- const SReadUtmTrackingLinkDocumentByUrl = valibot.object({ url: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_constants.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
2044
- return input.includes("utm_");
2045
- }, require_constants.ERROR_MESSAGE_UTM_URL)) });
2046
- const SUpdateUtmTrackingLinkDocument = valibot.object({
2047
- creator: valibot.optional(VStringShort()),
2048
- client: valibot.optional(VStringShort()),
2049
- url_destination: VStringUrlNoUtm(),
2050
- utm_source: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_SOURCE, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2051
- utm_medium: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_MEDIUM, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2052
- utm_campaign: VStringMinMaxRegex(1, require_constants.LIMIT_MAX_UTM_CAMPAIGN, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE),
2053
- utm_content: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2054
- utm_creative_format: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2055
- utm_id: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2056
- campaign_phase: VStringShort(),
2057
- campaign_product: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2058
- campaign_targeting: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(VStringShort()), valibot.transform((value) => value.join(","))))),
2059
- campaign_key: valibot.optional(valibot.nullable(VStringMinMaxRegex(1, 255, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE))),
2060
- creative_format: valibot.optional(valibot.nullable(VStringMinMax(1, 255))),
2061
- creative_format_variants: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(SAssociateOneEntity), valibot.transform((value) => value.join(","))))),
2062
- url: VStringUrlUtm(),
2063
- is_active: valibot.boolean(),
2064
- notes: valibot.optional(valibot.nullable(VStringMinMaxRegex(1, require_constants.LIMIT_LONG_STRING_MAX_LENGTH, require_constants.REGEX_UTM_VALUE, require_constants.ERROR_MESSAGE_REGEX_UTM_VALUE)))
2065
- });
2066
- const SUpdateUtmTrackingLinkDocumentRequest = valibot.object({
2067
- documentId: SAssociateOneEntity,
2068
- data: SUpdateUtmTrackingLinkDocument
2069
- });
2070
- //#endregion
2071
- exports.AuditLogSortKeys = AuditLogSortKeys;
2072
- exports.BlogPostSortKeys = BlogPostSortKeys;
2073
- exports.CategorySortKeys = CategorySortKeys;
2074
- exports.ClientContentPillarSortKeys = ClientContentPillarSortKeys;
2075
- exports.ClientMediaPlatformSortKeys = ClientMediaPlatformSortKeys;
2076
- exports.ClientProjectSortKeys = ClientProjectSortKeys;
2077
- exports.ClientReportSortKeys = ClientReportSortKeys;
2078
- exports.ClientSortKeys = ClientSortKeys;
2079
- exports.ClientStyleguideSortKeys = ClientStyleguideSortKeys;
2080
- exports.ClientUserSortKeys = ClientUserSortKeys;
2081
- exports.ContentPillarSortKeys = ContentPillarSortKeys;
2082
- exports.EntitySortKeys = EntitySortKeys;
2083
- exports.FORMATTER_TEXT_MAX_LENGTH = FORMATTER_TEXT_MAX_LENGTH;
2084
- exports.GCFlyTourSnapSortKeys = GCFlyTourSnapSortKeys;
2085
- exports.GCFlyTourSortKeys = GCFlyTourSortKeys;
2086
- exports.HTMLMimeTypes = HTMLMimeTypes;
2087
- exports.HtmlConfigSchema = HtmlConfigSchema;
2088
- exports.INLINE_FIRST_PRINT_WIDTH = INLINE_FIRST_PRINT_WIDTH;
2089
- exports.JSONMimeTypes = JSONMimeTypes;
2090
- exports.JsonConfigSchema = JsonConfigSchema;
2091
- exports.JsonSchema = JsonSchema;
2092
- exports.MediaContentTypeSortKeys = MediaContentTypeSortKeys;
2093
- exports.MediaCreativeFormatSortKeys = MediaCreativeFormatSortKeys;
2094
- exports.MediaMediumSortKeys = MediaMediumSortKeys;
2095
- exports.MediaPlatformSortKeys = MediaPlatformSortKeys;
2096
- exports.MondayWorkspaceSortKeys = MondayWorkspaceSortKeys;
2097
- exports.QueryFilterStrapiComments = QueryFilterStrapiComments;
2098
- exports.QuerySortAuditLogs = QuerySortAuditLogs;
2099
- exports.QuerySortBlogPosts = QuerySortBlogPosts;
2100
- exports.QuerySortCategories = QuerySortCategories;
2101
- exports.QuerySortClientContentPillars = QuerySortClientContentPillars;
2102
- exports.QuerySortClientMediaPlatforms = QuerySortClientMediaPlatforms;
2103
- exports.QuerySortClientProjects = QuerySortClientProjects;
2104
- exports.QuerySortClientReports = QuerySortClientReports;
2105
- exports.QuerySortClientStyleguides = QuerySortClientStyleguides;
2106
- exports.QuerySortClientUsers = QuerySortClientUsers;
2107
- exports.QuerySortClients = QuerySortClients;
2108
- exports.QuerySortContentPillars = QuerySortContentPillars;
2109
- exports.QuerySortEntities = QuerySortEntities;
2110
- exports.QuerySortGCFlyTourSnaps = QuerySortGCFlyTourSnaps;
2111
- exports.QuerySortGCFlyTours = QuerySortGCFlyTours;
2112
- exports.QuerySortMediaContentType = QuerySortMediaContentType;
2113
- exports.QuerySortMediaCreativeFormat = QuerySortMediaCreativeFormat;
2114
- exports.QuerySortMediaMedium = QuerySortMediaMedium;
2115
- exports.QuerySortMediaPlatforms = QuerySortMediaPlatforms;
2116
- exports.QuerySortMondayWorkspaces = QuerySortMondayWorkspaces;
2117
- exports.QuerySortStrapiComments = QuerySortStrapiComments;
2118
- exports.QuerySortTags = QuerySortTags;
2119
- exports.QuerySortTeamMembers = QuerySortTeamMembers;
2120
- exports.QuerySortTeamworkProjectHealth = QuerySortTeamworkProjectHealth;
2121
- exports.QuerySortUrlRedirects = QuerySortUrlRedirects;
2122
- exports.QuerySortUsers = QuerySortUsers;
2123
- exports.QuerySortUtmTrackingLinks = QuerySortUtmTrackingLinks;
2124
- exports.QueryStrapiByDocumentId = QueryStrapiByDocumentId;
2125
- exports.QueryStrapiByEmail = QueryStrapiByEmail;
2126
- exports.QueryStrapiById = QueryStrapiById;
2127
- exports.QueryStrapiByName = QueryStrapiByName;
2128
- exports.QueryStrapiByPhone = QueryStrapiByPhone;
2129
- exports.QueryStrapiBySlug = QueryStrapiBySlug;
2130
- exports.QueryStrapiCommentsFlat = QueryStrapiCommentsFlat;
2131
- exports.QueryStrapiCommentsInHeirarchy = QueryStrapiCommentsInHeirarchy;
2132
- exports.QueryStrapiPaginated = QueryStrapiPaginated;
2133
- exports.QueryStrapiPaginatedUrlRedirects = QueryStrapiPaginatedUrlRedirects;
2134
- exports.QueryStrapiSearchAuditLogs = QueryStrapiSearchAuditLogs;
2135
- exports.QueryStrapiSearchBlogPosts = QueryStrapiSearchBlogPosts;
2136
- exports.QueryStrapiSearchBlogPostsBySlug = QueryStrapiSearchBlogPostsBySlug;
2137
- exports.QueryStrapiSearchCategories = QueryStrapiSearchCategories;
2138
- exports.QueryStrapiSearchClientContentPillars = QueryStrapiSearchClientContentPillars;
2139
- exports.QueryStrapiSearchClientMediaPlatforms = QueryStrapiSearchClientMediaPlatforms;
2140
- exports.QueryStrapiSearchClientProjects = QueryStrapiSearchClientProjects;
2141
- exports.QueryStrapiSearchClientReports = QueryStrapiSearchClientReports;
2142
- exports.QueryStrapiSearchClientStyleguide = QueryStrapiSearchClientStyleguide;
2143
- exports.QueryStrapiSearchClients = QueryStrapiSearchClients;
2144
- exports.QueryStrapiSearchContentPillars = QueryStrapiSearchContentPillars;
2145
- exports.QueryStrapiSearchGCFlyTourSnaps = QueryStrapiSearchGCFlyTourSnaps;
2146
- exports.QueryStrapiSearchGCFlyTours = QueryStrapiSearchGCFlyTours;
2147
- exports.QueryStrapiSearchMediaContentTypes = QueryStrapiSearchMediaContentTypes;
2148
- exports.QueryStrapiSearchMediaCreativeFormats = QueryStrapiSearchMediaCreativeFormats;
2149
- exports.QueryStrapiSearchMediaMediums = QueryStrapiSearchMediaMediums;
2150
- exports.QueryStrapiSearchMediaPlatforms = QueryStrapiSearchMediaPlatforms;
2151
- exports.QueryStrapiSearchMondayWorkspaces = QueryStrapiSearchMondayWorkspaces;
2152
- exports.QueryStrapiSearchTags = QueryStrapiSearchTags;
2153
- exports.QueryStrapiSearchTeamMembers = QueryStrapiSearchTeamMembers;
2154
- exports.QueryStrapiSearchTeamworkProjectHealth = QueryStrapiSearchTeamworkProjectHealth;
2155
- exports.QueryStrapiSearchUtmTrackingLinks = QueryStrapiSearchUtmTrackingLinks;
2156
- exports.QueryStrapiUrlRedirectsByFrom = QueryStrapiUrlRedirectsByFrom;
2157
- exports.QueryStrapiUsers = QueryStrapiUsers;
2158
- exports.QueryStrapiUsersByIdentifier = QueryStrapiUsersByIdentifier;
2159
- exports.SAssociateClientToClientProjectDocument = SAssociateClientToClientProjectDocument;
2160
- exports.SAssociateEntityPosition = SAssociateEntityPosition;
2161
- exports.SAssociateEntityPositionDocumentRequest = SAssociateEntityPositionDocumentRequest;
2162
- exports.SAssociateEntityRelationshipRequest = SAssociateEntityRelationshipRequest;
2163
- exports.SAssociateManyEntities = SAssociateManyEntities;
2164
- exports.SAssociateOneEntity = SAssociateOneEntity;
2165
- exports.SAuditLogMethod = SAuditLogMethod;
2166
- exports.SAuthConnectProviderConfirmation = SAuthConnectProviderConfirmation;
2167
- exports.SAuthConnectProviderRedirectSearch = SAuthConnectProviderRedirectSearch;
2168
- exports.SAuthRawAccessToken = SAuthRawAccessToken;
2169
- exports.SChangePassword = SChangePassword;
2170
- exports.SContentFile = SContentFile;
2171
- exports.SContentText = SContentText;
2172
- exports.SCreateAuditLogDocument = SCreateAuditLogDocument;
2173
- exports.SCreateCategoryDocument = SCreateCategoryDocument;
2174
- exports.SCreateClientContentPillarDocument = SCreateClientContentPillarDocument;
2175
- exports.SCreateClientDocument = SCreateClientDocument;
2176
- exports.SCreateClientMediaPlatformDocument = SCreateClientMediaPlatformDocument;
2177
- exports.SCreateClientProjectDocument = SCreateClientProjectDocument;
2178
- exports.SCreateClientReportDocument = SCreateClientReportDocument;
2179
- exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
2180
- exports.SCreateClientUserDocument = SCreateClientUserDocument;
2181
- exports.SCreateCommentDocument = SCreateCommentDocument;
2182
- exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
2183
- exports.SCreateGCFlyTourDocument = SCreateGCFlyTourDocument;
2184
- exports.SCreateGCFlyTourSnapDocument = SCreateGCFlyTourSnapDocument;
2185
- exports.SCreateLeadDocument = SCreateLeadDocument;
2186
- exports.SCreateMediaContentTypeDocument = SCreateMediaContentTypeDocument;
2187
- exports.SCreateMediaCreativeFormatDocument = SCreateMediaCreativeFormatDocument;
2188
- exports.SCreateMediaMediumDocument = SCreateMediaMediumDocument;
2189
- exports.SCreateMediaPlatformDocument = SCreateMediaPlatformDocument;
2190
- exports.SCreateMondayWorkspaceDocument = SCreateMondayWorkspaceDocument;
2191
- exports.SCreateMultipleStrapiMediaUploadDocument = SCreateMultipleStrapiMediaUploadDocument;
2192
- exports.SCreateNewsletterSignup = SCreateNewsletterSignup;
2193
- exports.SCreateNewsletterSignupDocument = SCreateNewsletterSignupDocument;
2194
- exports.SCreateResume = SCreateResume;
2195
- exports.SCreateResumeInfo = SCreateResumeInfo;
2196
- exports.SCreateResumeInfoDocument = SCreateResumeInfoDocument;
2197
- exports.SCreateStrapiMediaUploadDocument = SCreateStrapiMediaUploadDocument;
2198
- exports.SCreateTagDocument = SCreateTagDocument;
2199
- exports.SCreateUserDocument = SCreateUserDocument;
2200
- exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
2201
- exports.SCreateUtmTrackingLinkDocumentRequest = SCreateUtmTrackingLinkDocumentRequest;
2202
- exports.SCreateUtmTrackingLinkParts = SCreateUtmTrackingLinkParts;
2203
- exports.SDeleteCommentDocument = SDeleteCommentDocument;
2204
- exports.SEntityPosition = SEntityPosition;
2205
- exports.SForgotUserPassword = SForgotUserPassword;
2206
- exports.SFormCreateMultipleUtmTrackingLinkDocuments = SFormCreateMultipleUtmTrackingLinkDocuments;
2207
- exports.SFormatterForm = SFormatterForm;
2208
- exports.SFormatterMode = SFormatterMode;
2209
- exports.SFormatterRequest = SFormatterRequest;
2210
- exports.SIndentLevel = SIndentLevel;
2211
- exports.SLoginUser = SLoginUser;
2212
- exports.SQueryListClientUserDocuments = SQueryListClientUserDocuments;
2213
- exports.SQueryManyEntities = SQueryManyEntities;
2214
- exports.SReadUserAccountByDocumentId = SReadUserAccountByDocumentId;
2215
- exports.SReadUserAccountById = SReadUserAccountById;
2216
- exports.SReadUtmTrackingLinkDocumentByUrl = SReadUtmTrackingLinkDocumentByUrl;
2217
- exports.SRegisterUser = SRegisterUser;
2218
- exports.SReportCommentDocument = SReportCommentDocument;
2219
- exports.SRequestConfirmEmail = SRequestConfirmEmail;
2220
- exports.SResetUserPassword = SResetUserPassword;
2221
- exports.SSetEntityRelationshipRequest = SSetEntityRelationshipRequest;
2222
- exports.SUpdateAuditLogDocument = SUpdateAuditLogDocument;
2223
- exports.SUpdateAuditLogDocumentRequest = SUpdateAuditLogDocumentRequest;
2224
- exports.SUpdateCategoryDocument = SUpdateCategoryDocument;
2225
- exports.SUpdateCategoryDocumentRequest = SUpdateCategoryDocumentRequest;
2226
- exports.SUpdateClientContentPillarDocument = SUpdateClientContentPillarDocument;
2227
- exports.SUpdateClientContentPillarDocumentRequest = SUpdateClientContentPillarDocumentRequest;
2228
- exports.SUpdateClientDocument = SUpdateClientDocument;
2229
- exports.SUpdateClientDocumentRequest = SUpdateClientDocumentRequest;
2230
- exports.SUpdateClientMediaPlatformDocument = SUpdateClientMediaPlatformDocument;
2231
- exports.SUpdateClientMediaPlatformDocumentRequest = SUpdateClientMediaPlatformDocumentRequest;
2232
- exports.SUpdateClientProjectDocument = SUpdateClientProjectDocument;
2233
- exports.SUpdateClientProjectDocumentRequest = SUpdateClientProjectDocumentRequest;
2234
- exports.SUpdateClientReportDocument = SUpdateClientReportDocument;
2235
- exports.SUpdateClientReportDocumentRequest = SUpdateClientReportDocumentRequest;
2236
- exports.SUpdateClientStyleguideDocument = SUpdateClientStyleguideDocument;
2237
- exports.SUpdateClientStyleguideDocumentRequest = SUpdateClientStyleguideDocumentRequest;
2238
- exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
2239
- exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
2240
- exports.SUpdateCommentDocument = SUpdateCommentDocument;
2241
- exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
2242
- exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
2243
- exports.SUpdateGCFlyTourDocument = SUpdateGCFlyTourDocument;
2244
- exports.SUpdateGCFlyTourDocumentRequest = SUpdateGCFlyTourDocumentRequest;
2245
- exports.SUpdateGCFlyTourSnapDocument = SUpdateGCFlyTourSnapDocument;
2246
- exports.SUpdateGCFlyTourSnapDocumentRequest = SUpdateGCFlyTourSnapDocumentRequest;
2247
- exports.SUpdateLeadDocument = SUpdateLeadDocument;
2248
- exports.SUpdateLeadRequest = SUpdateLeadRequest;
2249
- exports.SUpdateMediaContentTypeDocument = SUpdateMediaContentTypeDocument;
2250
- exports.SUpdateMediaContentTypeDocumentRequest = SUpdateMediaContentTypeDocumentRequest;
2251
- exports.SUpdateMediaCreativeFormatDocument = SUpdateMediaCreativeFormatDocument;
2252
- exports.SUpdateMediaCreativeFormatDocumentRequest = SUpdateMediaCreativeFormatDocumentRequest;
2253
- exports.SUpdateMediaMediumDocument = SUpdateMediaMediumDocument;
2254
- exports.SUpdateMediaMediumDocumentRequest = SUpdateMediaMediumDocumentRequest;
2255
- exports.SUpdateMediaPlatformDocument = SUpdateMediaPlatformDocument;
2256
- exports.SUpdateMediaPlatformDocumentRequest = SUpdateMediaPlatformDocumentRequest;
2257
- exports.SUpdateMondayWorkspaceDocument = SUpdateMondayWorkspaceDocument;
2258
- exports.SUpdateMondayWorkspaceDocumentRequest = SUpdateMondayWorkspaceDocumentRequest;
2259
- exports.SUpdateNewsletterSignupDocument = SUpdateNewsletterSignupDocument;
2260
- exports.SUpdateNewsletterSignupRequest = SUpdateNewsletterSignupRequest;
2261
- exports.SUpdateResumeInfo = SUpdateResumeInfo;
2262
- exports.SUpdateResumeInfoDocument = SUpdateResumeInfoDocument;
2263
- exports.SUpdateResumeInfoRequest = SUpdateResumeInfoRequest;
2264
- exports.SUpdateStrapiMediaFileInfo = SUpdateStrapiMediaFileInfo;
2265
- exports.SUpdateTagDocument = SUpdateTagDocument;
2266
- exports.SUpdateTagDocumentRequest = SUpdateTagDocumentRequest;
2267
- exports.SUpdateTrendsLikes = SUpdateTrendsLikes;
2268
- exports.SUpdateUserAccount = SUpdateUserAccount;
2269
- exports.SUpdateUserAccountFirstName = SUpdateUserAccountFirstName;
2270
- exports.SUpdateUserAccountLastName = SUpdateUserAccountLastName;
2271
- exports.SUpdateUserAccountPreferredName = SUpdateUserAccountPreferredName;
2272
- exports.SUpdateUtmTrackingLinkDocument = SUpdateUtmTrackingLinkDocument;
2273
- exports.SUpdateUtmTrackingLinkDocumentRequest = SUpdateUtmTrackingLinkDocumentRequest;
2274
- exports.SUserToken = SUserToken;
2275
- exports.SUtmLinkBuilderCampaign = SUtmLinkBuilderCampaign;
2276
- exports.SUtmLinkBuilderCreativeFormat = SUtmLinkBuilderCreativeFormat;
2277
- exports.SUtmLinkBuilderPartCampaignDateOptions = SUtmLinkBuilderPartCampaignDateOptions;
2278
- exports.SUtmLinkBuilderSingleForm = SUtmLinkBuilderSingleForm;
2279
- exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
2280
- exports.SVerifyClientUserDocument = SVerifyClientUserDocument;
2281
- exports.SharpSpringSignUpToDownload = SharpSpringSignUpToDownload;
2282
- exports.StrapiCollectionEntities = StrapiCollectionEntities;
2283
- exports.StrapiCommentSortKeys = StrapiCommentSortKeys;
2284
- exports.StrapiSingleEntities = StrapiSingleEntities;
2285
- exports.TXTMimeTypes = TXTMimeTypes;
2286
- exports.TagSortKeys = TagSortKeys;
2287
- exports.TeamMemberSortKeys = TeamMemberSortKeys;
2288
- exports.TeamworkProjectHealthProjectStatusOptions = TeamworkProjectHealthProjectStatusOptions;
2289
- exports.TeamworkProjectHealthSelectSortOptions = TeamworkProjectHealthSelectSortOptions;
2290
- exports.UrlRedirectSortKeys = UrlRedirectSortKeys;
2291
- exports.UserSortKeys = UserSortKeys;
2292
- exports.UtmTrackingLinkSortKeys = UtmTrackingLinkSortKeys;
2293
- exports.VIntegerNullable = VIntegerNullable;
2294
- exports.VNumberNullable = VNumberNullable;
2295
- exports.VPage = VPage;
2296
- exports.VSize = VSize;
2297
- exports.VString = VString;
2298
- exports.VStringEmail = VStringEmail;
2299
- exports.VStringLong = VStringLong;
2300
- exports.VStringLongNullable = VStringLongNullable;
2301
- exports.VStringMax = VStringMax;
2302
- exports.VStringMaxRegex = VStringMaxRegex;
2303
- exports.VStringMinMax = VStringMinMax;
2304
- exports.VStringMinMaxRegex = VStringMinMaxRegex;
2305
- exports.VStringPhone = VStringPhone;
2306
- exports.VStringPhoneNullable = VStringPhoneNullable;
2307
- exports.VStringShort = VStringShort;
2308
- exports.VStringShortNullable = VStringShortNullable;
2309
- exports.VStringSlug = VStringSlug;
2310
- exports.VStringUrl = VStringUrl;
2311
- exports.VStringUrlNoUtm = VStringUrlNoUtm;
2312
- exports.VStringUrlNullable = VStringUrlNullable;
2313
- exports.VStringUrlUtm = VStringUrlUtm;
2314
- exports.ValidStrapiCollectionEntity = ValidStrapiCollectionEntity;
2315
- exports.ValidStrapiSingleEntity = ValidStrapiSingleEntity;
2316
- exports.XMLMimeTypes = XMLMimeTypes;
2317
- exports.XmlConfigSchema = XmlConfigSchema;
2318
- exports.allowedMimeTypes = allowedMimeTypes;
2319
- exports.buildPrettierConfigHTML = buildPrettierConfigHTML;
2320
- exports.buildPrettierConfigJSON = buildPrettierConfigJSON;
2321
- exports.buildPrettierConfigXML = buildPrettierConfigXML;
2322
- exports.checkIsValidUrlList = checkIsValidUrlList;
2323
- exports.formatterModeOptions = formatterModeOptions;
2324
- exports.formatterModeValues = formatterModeValues;
2325
- exports.indentLevelOptions = indentLevelOptions;
2326
- exports.indentLevelValues = indentLevelValues;