@getcommunity/gc-validators 0.0.271-alpha.1 → 0.0.271-alpha.11

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 (260) hide show
  1. package/dist/abac-BeKQtxIF.cjs +648 -0
  2. package/dist/abac-DPd9oLKR.mjs +643 -0
  3. package/dist/base/index.cjs +19 -19
  4. package/dist/base/index.d.cts +2 -3
  5. package/dist/base/index.d.mts +3 -4
  6. package/dist/base/index.mjs +2 -2
  7. package/dist/components/blocks/index.cjs +16 -14
  8. package/dist/components/blocks/index.d.cts +2 -1322
  9. package/dist/components/blocks/index.d.mts +2 -1322
  10. package/dist/components/blocks/index.mjs +16 -14
  11. package/dist/components/brand/index.d.cts +1 -314
  12. package/dist/components/brand/index.d.mts +1 -314
  13. package/dist/components/forms/index.cjs +10 -8
  14. package/dist/components/forms/index.d.cts +6 -3
  15. package/dist/components/forms/index.d.mts +6 -3
  16. package/dist/components/forms/index.mjs +10 -8
  17. package/dist/components/shared/index.cjs +3 -1
  18. package/dist/components/shared/index.d.cts +1 -916
  19. package/dist/components/shared/index.d.mts +1 -916
  20. package/dist/components/shared/index.mjs +3 -1
  21. package/dist/components/slideshow/index.cjs +15 -13
  22. package/dist/components/slideshow/index.d.cts +7 -5
  23. package/dist/components/slideshow/index.d.mts +7 -5
  24. package/dist/components/slideshow/index.mjs +15 -13
  25. package/dist/components/utm/index.cjs +7 -5
  26. package/dist/components/utm/index.d.cts +2 -32
  27. package/dist/components/utm/index.d.mts +2 -32
  28. package/dist/components/utm/index.mjs +7 -5
  29. package/dist/{document-BMxLOdrT.d.cts → document-BVhB_t1g.d.mts} +158 -104
  30. package/dist/document-CTozOkYP.mjs +457 -0
  31. package/dist/{document-Bpr9mbCs.d.mts → document-CbE38CzE.d.mts} +6 -6
  32. package/dist/document-Ccvtwgy_.cjs +26 -0
  33. package/dist/document-CrnqUGRk.cjs +243 -0
  34. package/dist/document-Cx4Klv8A.mjs +128 -0
  35. package/dist/document-D060zybc.mjs +19 -0
  36. package/dist/document-DaICHS9G.cjs +17 -0
  37. package/dist/{document-Gx2Vrg_w.d.mts → document-DtDSYDbn.d.cts} +158 -104
  38. package/dist/document-c3GNPelp.mjs +10 -0
  39. package/dist/{document-hEBlSep8.d.cts → document-i-h3Orv7.d.cts} +6 -6
  40. package/dist/document-rndDoVSo.cjs +728 -0
  41. package/dist/entities/audit-log/index.cjs +2 -2
  42. package/dist/entities/audit-log/index.d.cts +2 -2
  43. package/dist/entities/audit-log/index.d.mts +3 -3
  44. package/dist/entities/audit-log/index.mjs +1 -1
  45. package/dist/entities/blog-page/index.d.mts +1 -1
  46. package/dist/entities/blog-post/index.cjs +1 -1
  47. package/dist/entities/blog-post/index.d.cts +1 -916
  48. package/dist/entities/blog-post/index.d.mts +1 -916
  49. package/dist/entities/blog-post/index.mjs +1 -1
  50. package/dist/entities/careers-page/index.d.mts +1 -1
  51. package/dist/entities/category/index.cjs +4 -13
  52. package/dist/entities/category/index.d.cts +1 -258
  53. package/dist/entities/category/index.d.mts +1 -258
  54. package/dist/entities/category/index.mjs +2 -11
  55. package/dist/entities/client/index.cjs +3 -3
  56. package/dist/entities/client/index.d.cts +1 -84
  57. package/dist/entities/client/index.d.mts +1 -84
  58. package/dist/entities/client/index.mjs +2 -2
  59. package/dist/entities/client-content-pillar/index.cjs +10 -20
  60. package/dist/entities/client-content-pillar/index.d.cts +1 -48
  61. package/dist/entities/client-content-pillar/index.d.mts +1 -48
  62. package/dist/entities/client-content-pillar/index.mjs +2 -12
  63. package/dist/entities/client-media-platform/index.cjs +10 -17
  64. package/dist/entities/client-media-platform/index.d.cts +1 -52
  65. package/dist/entities/client-media-platform/index.d.mts +1 -52
  66. package/dist/entities/client-media-platform/index.mjs +2 -9
  67. package/dist/entities/client-project/index.cjs +22 -129
  68. package/dist/entities/client-project/index.d.cts +1 -146
  69. package/dist/entities/client-project/index.d.mts +1 -146
  70. package/dist/entities/client-project/index.mjs +2 -109
  71. package/dist/entities/client-report/index.cjs +7 -18
  72. package/dist/entities/client-report/index.d.cts +1 -62
  73. package/dist/entities/client-report/index.d.mts +1 -62
  74. package/dist/entities/client-report/index.mjs +2 -13
  75. package/dist/entities/client-styleguide/index.cjs +7 -27
  76. package/dist/entities/client-styleguide/index.d.cts +1 -47
  77. package/dist/entities/client-styleguide/index.d.mts +1 -47
  78. package/dist/entities/client-styleguide/index.mjs +2 -22
  79. package/dist/entities/client-user/index.cjs +17 -53
  80. package/dist/entities/client-user/index.d.cts +2 -47
  81. package/dist/entities/client-user/index.d.mts +2 -47
  82. package/dist/entities/client-user/index.mjs +5 -41
  83. package/dist/entities/comment/index.d.cts +1 -1
  84. package/dist/entities/comment/index.d.mts +1 -1
  85. package/dist/entities/content-pillar/index.cjs +5 -5
  86. package/dist/entities/content-pillar/index.d.cts +1 -49
  87. package/dist/entities/content-pillar/index.d.mts +1 -49
  88. package/dist/entities/content-pillar/index.mjs +2 -2
  89. package/dist/entities/faq-page/index.d.mts +1 -1
  90. package/dist/entities/gcflytour/index.cjs +9 -19
  91. package/dist/entities/gcflytour/index.d.cts +1 -60
  92. package/dist/entities/gcflytour/index.d.mts +1 -60
  93. package/dist/entities/gcflytour/index.mjs +2 -12
  94. package/dist/entities/gcflytour-snap/index.cjs +7 -17
  95. package/dist/entities/gcflytour-snap/index.d.cts +1 -58
  96. package/dist/entities/gcflytour-snap/index.d.mts +1 -58
  97. package/dist/entities/gcflytour-snap/index.mjs +2 -12
  98. package/dist/entities/landing-page/index.cjs +1 -1
  99. package/dist/entities/landing-page/index.d.cts +3 -2
  100. package/dist/entities/landing-page/index.d.mts +4 -3
  101. package/dist/entities/landing-page/index.mjs +1 -1
  102. package/dist/entities/lead/index.cjs +2 -2
  103. package/dist/entities/lead/index.mjs +1 -1
  104. package/dist/entities/media-content-type/index.cjs +10 -23
  105. package/dist/entities/media-content-type/index.d.cts +3 -3
  106. package/dist/entities/media-content-type/index.d.mts +3 -3
  107. package/dist/entities/media-content-type/index.mjs +2 -15
  108. package/dist/entities/media-creative-format/index.cjs +7 -16
  109. package/dist/entities/media-creative-format/index.d.cts +3 -3
  110. package/dist/entities/media-creative-format/index.d.mts +3 -3
  111. package/dist/entities/media-creative-format/index.mjs +2 -11
  112. package/dist/entities/media-medium/index.cjs +7 -18
  113. package/dist/entities/media-medium/index.d.cts +3 -18
  114. package/dist/entities/media-medium/index.d.mts +3 -18
  115. package/dist/entities/media-medium/index.mjs +2 -13
  116. package/dist/entities/media-platform/index.cjs +13 -29
  117. package/dist/entities/media-platform/index.d.cts +1 -73
  118. package/dist/entities/media-platform/index.d.mts +1 -73
  119. package/dist/entities/media-platform/index.mjs +2 -18
  120. package/dist/entities/monday-workspace/index.cjs +7 -14
  121. package/dist/entities/monday-workspace/index.d.cts +1 -46
  122. package/dist/entities/monday-workspace/index.d.mts +1 -46
  123. package/dist/entities/monday-workspace/index.mjs +2 -9
  124. package/dist/entities/newsletter-signup/index.cjs +2 -2
  125. package/dist/entities/newsletter-signup/index.mjs +1 -1
  126. package/dist/entities/policy-page/index.d.cts +1 -0
  127. package/dist/entities/policy-page/index.d.mts +2 -1
  128. package/dist/entities/product/index.cjs +2 -21
  129. package/dist/entities/product/index.d.cts +1 -319
  130. package/dist/entities/product/index.d.mts +1 -319
  131. package/dist/entities/product/index.mjs +1 -18
  132. package/dist/entities/product-highlight/index.cjs +2 -21
  133. package/dist/entities/product-highlight/index.d.cts +1 -244
  134. package/dist/entities/product-highlight/index.d.mts +1 -244
  135. package/dist/entities/product-highlight/index.mjs +1 -18
  136. package/dist/entities/resume/index.cjs +2 -2
  137. package/dist/entities/resume/index.mjs +1 -1
  138. package/dist/entities/tag/index.cjs +4 -11
  139. package/dist/entities/tag/index.d.cts +1 -12
  140. package/dist/entities/tag/index.d.mts +1 -12
  141. package/dist/entities/tag/index.mjs +2 -9
  142. package/dist/entities/team-member/index.cjs +1 -1
  143. package/dist/entities/team-member/index.d.cts +1 -209
  144. package/dist/entities/team-member/index.d.mts +1 -209
  145. package/dist/entities/team-member/index.mjs +1 -1
  146. package/dist/entities/team-page/index.d.mts +1 -1
  147. package/dist/entities/trend/index.cjs +4 -18
  148. package/dist/entities/trend/index.d.cts +1 -333
  149. package/dist/entities/trend/index.d.mts +1 -333
  150. package/dist/entities/trend/index.mjs +2 -16
  151. package/dist/entities/up-auth/index.d.cts +1 -1
  152. package/dist/entities/up-auth/index.d.mts +1 -1
  153. package/dist/entities/up-permission/index.cjs +2 -11
  154. package/dist/entities/up-permission/index.d.cts +1 -13
  155. package/dist/entities/up-permission/index.d.mts +1 -13
  156. package/dist/entities/up-permission/index.mjs +1 -8
  157. package/dist/entities/up-role/index.cjs +4 -27
  158. package/dist/entities/up-role/index.d.cts +1 -2
  159. package/dist/entities/up-role/index.d.mts +1 -2
  160. package/dist/entities/up-role/index.mjs +1 -22
  161. package/dist/entities/up-user/index.cjs +9 -63
  162. package/dist/entities/up-user/index.d.cts +1 -37
  163. package/dist/entities/up-user/index.d.mts +1 -37
  164. package/dist/entities/up-user/index.mjs +1 -53
  165. package/dist/entities/url-redirect/index.d.cts +2 -2
  166. package/dist/entities/url-redirect/index.d.mts +2 -2
  167. package/dist/entities/user-account/index.cjs +10 -18
  168. package/dist/entities/user-account/index.d.cts +2 -2
  169. package/dist/entities/user-account/index.d.mts +2 -2
  170. package/dist/entities/user-account/index.mjs +3 -11
  171. package/dist/entities/utm-link-builder/index.cjs +9 -8
  172. package/dist/entities/utm-link-builder/index.d.cts +2 -3
  173. package/dist/entities/utm-link-builder/index.d.mts +2 -3
  174. package/dist/entities/utm-link-builder/index.mjs +6 -4
  175. package/dist/entities/utm-meta/index.d.cts +7 -7
  176. package/dist/entities/utm-meta/index.d.mts +7 -7
  177. package/dist/entities/utm-tracking-link/index.cjs +7 -28
  178. package/dist/entities/utm-tracking-link/index.d.cts +1 -234
  179. package/dist/entities/utm-tracking-link/index.d.mts +1 -234
  180. package/dist/entities/utm-tracking-link/index.mjs +2 -23
  181. package/dist/index--PSda81w.d.cts +4744 -0
  182. package/dist/index-B3VtiObV.d.mts +317 -0
  183. package/dist/index-BbwsFaWE.d.cts +921 -0
  184. package/dist/{index-DYPjS1qh.d.mts → index-Brw4Hq18.d.cts} +3 -3
  185. package/dist/index-C2eyUQu3.d.mts +4744 -0
  186. package/dist/index-CGetOe65.d.mts +940 -0
  187. package/dist/{index-Bht1Jd5l.d.mts → index-CJ2_Z1gW.d.mts} +97 -140
  188. package/dist/index-CQP_vcmO.d.cts +317 -0
  189. package/dist/index-CRoWUxGV.d.cts +1324 -0
  190. package/dist/index-C_UxUxQs.d.cts +940 -0
  191. package/dist/index-D11tQdCv.d.cts +34 -0
  192. package/dist/{index-BLE_fX1Q.d.cts → index-D6rOxDlM.d.mts} +3 -3
  193. package/dist/index-DJ-0EDJN.d.mts +921 -0
  194. package/dist/index-DLICmJ_-.d.mts +34 -0
  195. package/dist/{index-ZBDWYTfn.d.cts → index-efk0FfOP.d.cts} +96 -139
  196. package/dist/index-oCLNrzIj.d.mts +1324 -0
  197. package/dist/media-upload-D-nP8FR1.d.cts +140 -0
  198. package/dist/media-upload-DKeA1eD-.d.mts +140 -0
  199. package/dist/permissions/index.cjs +3 -663
  200. package/dist/permissions/index.d.cts +2 -2
  201. package/dist/permissions/index.d.mts +2 -2
  202. package/dist/permissions/index.mjs +3 -661
  203. package/dist/{query.schema-DHTf6rTw.cjs → query-7g1AOXN9.cjs} +3 -3
  204. package/dist/{query.schema-YKoOuBnk.mjs → query-CeUev0uJ.mjs} +2 -2
  205. package/dist/{relations-C04F46xL.mjs → relationships-BosK0kyG.mjs} +1 -1
  206. package/dist/{relations-CGu18hfT.cjs → relationships-CWVJebkQ.cjs} +1 -1
  207. package/dist/utilities/index.cjs +20 -0
  208. package/dist/utilities/index.d.cts +7 -2
  209. package/dist/utilities/index.d.mts +7 -2
  210. package/dist/utilities/index.mjs +19 -1
  211. package/package.json +1 -1
  212. package/dist/document-BAzLIprH.d.mts +0 -100
  213. package/dist/document-BFukanLe.mjs +0 -54
  214. package/dist/document-BK1ASowb.d.cts +0 -17
  215. package/dist/document-BNoXPGwF.d.mts +0 -27
  216. package/dist/document-B_pJW777.d.mts +0 -30
  217. package/dist/document-Bd2AyLs8.d.mts +0 -16
  218. package/dist/document-BezYxNmb.d.cts +0 -16
  219. package/dist/document-Bj7SRTOn.d.cts +0 -18
  220. package/dist/document-Bo869pZx.d.mts +0 -18
  221. package/dist/document-Bs8c1mok.d.cts +0 -15
  222. package/dist/document-C0c7azOe.d.mts +0 -434
  223. package/dist/document-CTTDXzOF.mjs +0 -13
  224. package/dist/document-CUl_Ys6-.mjs +0 -23
  225. package/dist/document-CWYzG60q.d.cts +0 -19
  226. package/dist/document-Ccszj8lR.cjs +0 -20
  227. package/dist/document-CjNHI7Eb.d.cts +0 -27
  228. package/dist/document-Cu_HUDC5.mjs +0 -51
  229. package/dist/document-D-KvyEb5.d.cts +0 -238
  230. package/dist/document-D2nLVGig.d.mts +0 -238
  231. package/dist/document-D4fJt3zX.d.cts +0 -12223
  232. package/dist/document-D5yDIDIx.d.mts +0 -15
  233. package/dist/document-D73dqRle.d.cts +0 -19
  234. package/dist/document-DA6YVZz-.d.cts +0 -100
  235. package/dist/document-DJ0YiVte.d.cts +0 -30
  236. package/dist/document-DMHIUE3J.d.mts +0 -17
  237. package/dist/document-DN3g0EFx.d.cts +0 -434
  238. package/dist/document-DYzRVV1C.d.mts +0 -16
  239. package/dist/document-D_ZMbzn6.d.cts +0 -18
  240. package/dist/document-DdRo9TdG.d.mts +0 -12223
  241. package/dist/document-DeoRGh7p.d.mts +0 -19
  242. package/dist/document-DsIPBTG8.cjs +0 -30
  243. package/dist/document-DsSaMVGb.cjs +0 -106
  244. package/dist/document-IIJpsOIO.d.cts +0 -16
  245. package/dist/document-WHS8GHY5.d.mts +0 -18
  246. package/dist/document-dqrWptdY.d.cts +0 -244
  247. package/dist/document-rbMXLGxt.cjs +0 -103
  248. package/dist/document-si7GYS5g.d.mts +0 -19
  249. package/dist/document-vq-7rcU5.d.mts +0 -244
  250. package/dist/fields-BQHSYj70.d.cts +0 -7
  251. package/dist/fields-qx-5saY5.d.mts +0 -7
  252. package/dist/index-BI8tN-QZ.d.mts +0 -99
  253. package/dist/index-DpYYzY_9.d.cts +0 -99
  254. package/dist/query.schema-BOn5Kk_p.d.mts +0 -41
  255. package/dist/query.schema-CItKlb0x.d.cts +0 -41
  256. package/dist/response-C-7nyNVD.d.mts +0 -57
  257. package/dist/response-c6SgLvi9.d.cts +0 -57
  258. /package/dist/{constants-L2goO7Eg.mjs → constants-Htf-MeCA.mjs} +0 -0
  259. /package/dist/{constants-PBZKggHL.cjs → constants-f1GP2eiq.cjs} +0 -0
  260. /package/dist/{json-CqAaKeHA.d.mts → json-CiA5ZRzc.d.mts} +0 -0
@@ -1,38 +1,2 @@
1
- import { t as UserDocument } from "../../document-si7GYS5g.mjs";
2
- import * as v from "valibot";
3
-
4
- //#region src/entities/up-user/constants.d.ts
5
- declare const LIMIT_USER_PAGINATION_DEFAULT_SIZE = 10;
6
- declare const LIMIT_USER_PAGINATION_MAX_SIZE = 10;
7
- declare const USER_SORT_KEYS: readonly ["id", "username", "email", "confirmed", "blocked", "createdAt", "updatedAt"];
8
- //#endregion
9
- //#region src/entities/up-user/fields.d.ts
10
- declare const QuerySortUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], 7, undefined>]>, undefined>;
11
- type QuerySortUsers = v.InferOutput<typeof QuerySortUsers>;
12
- //#endregion
13
- //#region src/entities/up-user/mutation.d.ts
14
- declare const CreateUserDocument: v.ObjectSchema<{
15
- readonly username: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
16
- readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
17
- readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
18
- readonly blocked: v.BooleanSchema<undefined>;
19
- readonly confirmed: v.BooleanSchema<undefined>;
20
- readonly role: v.NumberSchema<undefined>;
21
- }, undefined>;
22
- type CreateUserDocument = v.InferOutput<typeof CreateUserDocument>;
23
- //#endregion
24
- //#region src/entities/up-user/query.d.ts
25
- declare const QueryStrapiUsers: v.ObjectSchema<{
26
- readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
27
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
28
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], 7, undefined>]>, undefined>;
29
- }, undefined>;
30
- type QueryStrapiUsers = v.InferOutput<typeof QueryStrapiUsers>;
31
- declare const QueryStrapiUsersByIdentifier: v.ObjectSchema<{
32
- readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
33
- readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
34
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
35
- }, undefined>;
36
- type QueryStrapiUsersByIdentifier = v.InferOutput<typeof QueryStrapiUsersByIdentifier>;
37
- //#endregion
1
+ import { An as UserDocument, Fn as CreateUserDocument, In as QuerySortUsers, Ln as LIMIT_USER_PAGINATION_DEFAULT_SIZE, Nn as QueryStrapiUsers, Pn as QueryStrapiUsersByIdentifier, Rn as LIMIT_USER_PAGINATION_MAX_SIZE, zn as USER_SORT_KEYS } from "../../index-C2eyUQu3.mjs";
38
2
  export { CreateUserDocument, LIMIT_USER_PAGINATION_DEFAULT_SIZE, LIMIT_USER_PAGINATION_MAX_SIZE, QuerySortUsers, QueryStrapiUsers, QueryStrapiUsersByIdentifier, USER_SORT_KEYS, UserDocument };
@@ -1,54 +1,2 @@
1
- import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
2
- import { s as REGEX_UTM_VALUE } from "../../regex-BnKGcdS4.mjs";
3
- import { d as VStringMinMax, f as VStringMinMaxRegex, h as VStringShort, i as VSize, o as VStringEmail, r as VPage } from "../../validators-P5E_3qzc.mjs";
4
- import * as v from "valibot";
5
- //#region src/entities/up-user/constants.ts
6
- const LIMIT_USER_PAGINATION_DEFAULT_SIZE = 10;
7
- const LIMIT_USER_PAGINATION_MAX_SIZE = 10;
8
- const USER_SORT_KEYS = [
9
- "id",
10
- "username",
11
- "email",
12
- "confirmed",
13
- "blocked",
14
- "createdAt",
15
- "updatedAt"
16
- ];
17
- //#endregion
18
- //#region src/entities/up-user/document.ts
19
- const UserDocument = v.object({
20
- ...BaseDocument.entries,
21
- username: v.string(),
22
- email: v.string(),
23
- provider: v.string(),
24
- confirmed: v.boolean(),
25
- blocked: v.boolean(),
26
- clerk_user_id: v.nullable(v.string())
27
- });
28
- //#endregion
29
- //#region src/entities/up-user/fields.ts
30
- const QuerySortUsers = v.optional(v.pipe(v.array(v.picklist(USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(USER_SORT_KEYS.length)));
31
- //#endregion
32
- //#region src/entities/up-user/mutation.ts
33
- const CreateUserDocument = v.object({
34
- username: VStringMinMaxRegex(3, 255, REGEX_UTM_VALUE, "username must be alphanumeric"),
35
- email: VStringEmail(),
36
- password: VStringMinMax(8, 255),
37
- blocked: v.boolean(),
38
- confirmed: v.boolean(),
39
- role: v.number()
40
- });
41
- //#endregion
42
- //#region src/entities/up-user/query.ts
43
- const QueryStrapiUsers = v.object({
44
- page: VPage(),
45
- size: VSize(10),
46
- sort: QuerySortUsers
47
- });
48
- const QueryStrapiUsersByIdentifier = v.object({
49
- identifier: VStringShort(0),
50
- page: VPage(),
51
- size: VSize(10)
52
- });
53
- //#endregion
1
+ import { D as LIMIT_USER_PAGINATION_MAX_SIZE, E as LIMIT_USER_PAGINATION_DEFAULT_SIZE, O as USER_SORT_KEYS, _ as CreateUserDocument, g as QueryStrapiUsersByIdentifier, h as QueryStrapiUsers, v as QuerySortUsers, y as UserDocument } from "../../document-CTozOkYP.mjs";
54
2
  export { CreateUserDocument, LIMIT_USER_PAGINATION_DEFAULT_SIZE, LIMIT_USER_PAGINATION_MAX_SIZE, QuerySortUsers, QueryStrapiUsers, QueryStrapiUsersByIdentifier, USER_SORT_KEYS, UserDocument };
@@ -27,14 +27,14 @@ declare const UrlRedirectStatusCode: v.PicklistSchema<readonly ["found_302", "mo
27
27
  type UrlRedirectStatusCode = v.InferOutput<typeof UrlRedirectStatusCode>;
28
28
  declare const UrlRedirectQueryParams: v.PicklistSchema<readonly ["ignore_and_pass_to_target", "ignore_all_parameters", "exact_match_in_any_order"], undefined>;
29
29
  type UrlRedirectQueryParams = v.InferOutput<typeof UrlRedirectQueryParams>;
30
- declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
30
+ declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
31
31
  type QuerySortUrlRedirects = v.InferOutput<typeof QuerySortUrlRedirects>;
32
32
  //#endregion
33
33
  //#region src/entities/url-redirect/query.d.ts
34
34
  declare const QueryStrapiPaginatedUrlRedirects: v.ObjectSchema<{
35
35
  readonly page: v.SchemaWithFallback<v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, 1>, 1>;
36
36
  readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 100>, 100>;
37
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
37
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
38
38
  }, undefined>;
39
39
  type QueryStrapiPaginatedUrlRedirects = v.InferOutput<typeof QueryStrapiPaginatedUrlRedirects>;
40
40
  declare const QueryStrapiUrlRedirectsByFrom: v.ObjectSchema<{
@@ -27,14 +27,14 @@ declare const UrlRedirectStatusCode: v.PicklistSchema<readonly ["found_302", "mo
27
27
  type UrlRedirectStatusCode = v.InferOutput<typeof UrlRedirectStatusCode>;
28
28
  declare const UrlRedirectQueryParams: v.PicklistSchema<readonly ["ignore_and_pass_to_target", "ignore_all_parameters", "exact_match_in_any_order"], undefined>;
29
29
  type UrlRedirectQueryParams = v.InferOutput<typeof UrlRedirectQueryParams>;
30
- declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
30
+ declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
31
31
  type QuerySortUrlRedirects = v.InferOutput<typeof QuerySortUrlRedirects>;
32
32
  //#endregion
33
33
  //#region src/entities/url-redirect/query.d.ts
34
34
  declare const QueryStrapiPaginatedUrlRedirects: v.ObjectSchema<{
35
35
  readonly page: v.SchemaWithFallback<v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, 1>, 1>;
36
36
  readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 100>, 100>;
37
- readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
37
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
38
38
  }, undefined>;
39
39
  type QueryStrapiPaginatedUrlRedirects = v.InferOutput<typeof QueryStrapiPaginatedUrlRedirects>;
40
40
  declare const QueryStrapiUrlRedirectsByFrom: v.ObjectSchema<{
@@ -1,43 +1,35 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
- const require_document = require("../../document-BAro2Mrj.cjs");
4
- const require_query_schema = require("../../query.schema-DHTf6rTw.cjs");
3
+ const require_query = require("../../query-7g1AOXN9.cjs");
5
4
  require("../../regex-Cl5goNwp.cjs");
6
5
  const require_validators = require("../../validators-Bc9Is5Sr.cjs");
7
- const require_relations = require("../../relations-CGu18hfT.cjs");
6
+ const require_relationships = require("../../relationships-CWVJebkQ.cjs");
7
+ const require_document = require("../../document-rndDoVSo.cjs");
8
8
  let valibot = require("valibot");
9
9
  valibot = require_chunk.__toESM(valibot, 1);
10
- //#region src/entities/user-account/document.ts
11
- const UserAccountDocument = valibot.object({
12
- ...require_document.BaseDocument.entries,
13
- preferred_name: valibot.nullable(valibot.string()),
14
- first_name: valibot.string(),
15
- last_name: valibot.string()
16
- });
17
- //#endregion
18
10
  //#region src/entities/user-account/mutation.ts
19
11
  const UpdateUserAccount = valibot.object({
20
- documentId: require_relations.SAssociateOneEntity,
12
+ documentId: require_relationships.SAssociateOneEntity,
21
13
  first_name: require_validators.VStringMinMax(1, 255),
22
14
  last_name: require_validators.VStringMinMax(1, 255),
23
15
  preferred_name: valibot.nullable(require_validators.VStringMinMax(1, 255))
24
16
  });
25
17
  const UpdateUserAccountFirstName = valibot.object({
26
- documentId: require_relations.SAssociateOneEntity,
18
+ documentId: require_relationships.SAssociateOneEntity,
27
19
  first_name: require_validators.VStringMinMax(1, 255)
28
20
  });
29
21
  const UpdateUserAccountLastName = valibot.object({
30
- documentId: require_relations.SAssociateOneEntity,
22
+ documentId: require_relationships.SAssociateOneEntity,
31
23
  last_name: require_validators.VStringMinMax(1, 255)
32
24
  });
33
25
  const UpdateUserAccountPreferredName = valibot.object({
34
- documentId: require_relations.SAssociateOneEntity,
26
+ documentId: require_relationships.SAssociateOneEntity,
35
27
  preferred_name: valibot.nullable(require_validators.VStringMinMax(1, 255))
36
28
  });
37
29
  //#endregion
38
30
  //#region src/entities/user-account/query.ts
39
- const SReadUserAccountById = require_query_schema.QueryStrapiById;
40
- const SReadUserAccountByDocumentId = require_query_schema.QueryStrapiByDocumentId;
31
+ const SReadUserAccountById = require_query.QueryStrapiById;
32
+ const SReadUserAccountByDocumentId = require_query.QueryStrapiByDocumentId;
41
33
  //#endregion
42
34
  exports.SReadUserAccountByDocumentId = SReadUserAccountByDocumentId;
43
35
  exports.SReadUserAccountById = SReadUserAccountById;
@@ -45,4 +37,4 @@ exports.UpdateUserAccount = UpdateUserAccount;
45
37
  exports.UpdateUserAccountFirstName = UpdateUserAccountFirstName;
46
38
  exports.UpdateUserAccountLastName = UpdateUserAccountLastName;
47
39
  exports.UpdateUserAccountPreferredName = UpdateUserAccountPreferredName;
48
- exports.UserAccountDocument = UserAccountDocument;
40
+ exports.UserAccountDocument = require_document.UserAccountDocument;
@@ -1,5 +1,5 @@
1
- import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-CItKlb0x.cjs";
2
- import { t as UserAccountDocument } from "../../document-IIJpsOIO.cjs";
1
+ import { dt as QueryStrapiById, lt as QueryStrapiByDocumentId } from "../../index-efk0FfOP.cjs";
2
+ import { Mn as UserAccountDocument } from "../../index--PSda81w.cjs";
3
3
  import * as v from "valibot";
4
4
 
5
5
  //#region src/entities/user-account/mutation.d.ts
@@ -1,5 +1,5 @@
1
- import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-BOn5Kk_p.mjs";
2
- import { t as UserAccountDocument } from "../../document-Bd2AyLs8.mjs";
1
+ import { dt as QueryStrapiById, lt as QueryStrapiByDocumentId } from "../../index-CJ2_Z1gW.mjs";
2
+ import { Mn as UserAccountDocument } from "../../index-C2eyUQu3.mjs";
3
3
  import * as v from "valibot";
4
4
 
5
5
  //#region src/entities/user-account/mutation.d.ts
@@ -1,17 +1,9 @@
1
- import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
2
- import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-YKoOuBnk.mjs";
1
+ import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query-CeUev0uJ.mjs";
3
2
  import "../../regex-BnKGcdS4.mjs";
4
3
  import { d as VStringMinMax } from "../../validators-P5E_3qzc.mjs";
5
- import { a as SAssociateOneEntity } from "../../relations-C04F46xL.mjs";
4
+ import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
5
+ import { x as UserAccountDocument } from "../../document-CTozOkYP.mjs";
6
6
  import * as v from "valibot";
7
- //#region src/entities/user-account/document.ts
8
- const UserAccountDocument = v.object({
9
- ...BaseDocument.entries,
10
- preferred_name: v.nullable(v.string()),
11
- first_name: v.string(),
12
- last_name: v.string()
13
- });
14
- //#endregion
15
7
  //#region src/entities/user-account/mutation.ts
16
8
  const UpdateUserAccount = v.object({
17
9
  documentId: SAssociateOneEntity,
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
3
  const require_regex = require("../../regex-Cl5goNwp.cjs");
4
4
  const require_validators = require("../../validators-Bc9Is5Sr.cjs");
5
- const require_relations = require("../../relations-CGu18hfT.cjs");
5
+ const require_relationships = require("../../relationships-CWVJebkQ.cjs");
6
6
  let valibot = require("valibot");
7
7
  valibot = require_chunk.__toESM(valibot, 1);
8
8
  //#region src/entities/utm-link-builder/constants.ts
@@ -14,15 +14,17 @@ const UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS = [
14
14
  "no date"
15
15
  ];
16
16
  //#endregion
17
+ //#region src/entities/utm-link-builder/fields.ts
18
+ const UtmLinkBuilderPartCampaignDate = valibot.picklist(UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS);
19
+ //#endregion
17
20
  //#region src/entities/utm-link-builder/mutation.ts
18
- const SUtmLinkBuilderPartCampaignDateOptions = UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS;
19
21
  const SUtmLinkBuilderCampaign = valibot.object({
20
22
  campaign_phase: require_validators.VStringMinMax(1, 255),
21
23
  campaign_product: valibot.optional(require_validators.VStringMax()),
22
24
  campaign_targeting: valibot.optional(valibot.pipe(valibot.array(require_validators.VStringMaxRegex(255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE)), valibot.maxLength(10))),
23
25
  campaign_key: valibot.optional(require_validators.VStringMaxRegex(255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE)),
24
26
  campaign_date: valibot.object({
25
- format: valibot.picklist(SUtmLinkBuilderPartCampaignDateOptions),
27
+ format: UtmLinkBuilderPartCampaignDate,
26
28
  value: valibot.object({
27
29
  year: valibot.number(),
28
30
  quarter: require_validators.VIntegerNullable(),
@@ -41,8 +43,8 @@ const SUtmLinkBuilderCreativeFormat = valibot.object({
41
43
  }))
42
44
  });
43
45
  const SUtmLinkBuilderTableForm = valibot.object({
44
- creator: require_relations.SAssociateOneEntity,
45
- client: require_relations.SAssociateOneEntity,
46
+ creator: require_relationships.SAssociateOneEntity,
47
+ client: require_relationships.SAssociateOneEntity,
46
48
  variants: valibot.pipe(valibot.array(valibot.object({
47
49
  url_destinations: valibot.pipe(valibot.array(valibot.object({ url: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_regex.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
48
50
  if (input === "") return false;
@@ -58,8 +60,8 @@ const SUtmLinkBuilderTableForm = valibot.object({
58
60
  notes: valibot.optional(require_validators.VStringMax())
59
61
  });
60
62
  const SUtmLinkBuilderSingleForm = valibot.object({
61
- creator: require_relations.SAssociateOneEntity,
62
- client: require_relations.SAssociateOneEntity,
63
+ creator: require_relationships.SAssociateOneEntity,
64
+ client: require_relationships.SAssociateOneEntity,
63
65
  url_destination: valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_regex.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
64
66
  if (input === "") return false;
65
67
  return input.indexOf("?") === -1;
@@ -78,7 +80,6 @@ const SUtmLinkBuilderSingleForm = valibot.object({
78
80
  //#endregion
79
81
  exports.SUtmLinkBuilderCampaign = SUtmLinkBuilderCampaign;
80
82
  exports.SUtmLinkBuilderCreativeFormat = SUtmLinkBuilderCreativeFormat;
81
- exports.SUtmLinkBuilderPartCampaignDateOptions = SUtmLinkBuilderPartCampaignDateOptions;
82
83
  exports.SUtmLinkBuilderSingleForm = SUtmLinkBuilderSingleForm;
83
84
  exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
84
85
  exports.UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS = UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS;
@@ -4,8 +4,7 @@ import * as v from "valibot";
4
4
  declare const UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS: readonly ["annually", "quarterly", "monthly", "on a specific date", "no date"];
5
5
  //#endregion
6
6
  //#region src/entities/utm-link-builder/mutation.d.ts
7
- declare const SUtmLinkBuilderPartCampaignDateOptions: readonly ["annually", "quarterly", "monthly", "on a specific date", "no date"];
8
- type SUtmLinkBuilderPartCampaignDateValue = (typeof SUtmLinkBuilderPartCampaignDateOptions)[number];
7
+ type SUtmLinkBuilderPartCampaignDateValue = (typeof UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS)[number];
9
8
  declare const SUtmLinkBuilderCampaign: v.ObjectSchema<{
10
9
  readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
11
10
  readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -188,4 +187,4 @@ type SUtmLinkBuilderSingleFormIn = v.InferInput<typeof SUtmLinkBuilderSingleForm
188
187
  type SUtmLinkBuilderSingleFormOut = v.InferOutput<typeof SUtmLinkBuilderSingleForm>;
189
188
  type SUtmLinkBuilderSingleForm = v.InferOutput<typeof SUtmLinkBuilderSingleForm>;
190
189
  //#endregion
191
- export { SUtmLinkBuilderCampaign, SUtmLinkBuilderCreativeFormat, SUtmLinkBuilderPartCampaignDateOptions, SUtmLinkBuilderPartCampaignDateValue, SUtmLinkBuilderSingleForm, SUtmLinkBuilderSingleFormIn, SUtmLinkBuilderSingleFormOut, SUtmLinkBuilderTableForm, SUtmLinkBuilderTableFormIn, SUtmLinkBuilderTableFormOut, UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS };
190
+ export { SUtmLinkBuilderCampaign, SUtmLinkBuilderCreativeFormat, SUtmLinkBuilderPartCampaignDateValue, SUtmLinkBuilderSingleForm, SUtmLinkBuilderSingleFormIn, SUtmLinkBuilderSingleFormOut, SUtmLinkBuilderTableForm, SUtmLinkBuilderTableFormIn, SUtmLinkBuilderTableFormOut, UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS };
@@ -4,8 +4,7 @@ import * as v from "valibot";
4
4
  declare const UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS: readonly ["annually", "quarterly", "monthly", "on a specific date", "no date"];
5
5
  //#endregion
6
6
  //#region src/entities/utm-link-builder/mutation.d.ts
7
- declare const SUtmLinkBuilderPartCampaignDateOptions: readonly ["annually", "quarterly", "monthly", "on a specific date", "no date"];
8
- type SUtmLinkBuilderPartCampaignDateValue = (typeof SUtmLinkBuilderPartCampaignDateOptions)[number];
7
+ type SUtmLinkBuilderPartCampaignDateValue = (typeof UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS)[number];
9
8
  declare const SUtmLinkBuilderCampaign: v.ObjectSchema<{
10
9
  readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
11
10
  readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -188,4 +187,4 @@ type SUtmLinkBuilderSingleFormIn = v.InferInput<typeof SUtmLinkBuilderSingleForm
188
187
  type SUtmLinkBuilderSingleFormOut = v.InferOutput<typeof SUtmLinkBuilderSingleForm>;
189
188
  type SUtmLinkBuilderSingleForm = v.InferOutput<typeof SUtmLinkBuilderSingleForm>;
190
189
  //#endregion
191
- export { SUtmLinkBuilderCampaign, SUtmLinkBuilderCreativeFormat, SUtmLinkBuilderPartCampaignDateOptions, SUtmLinkBuilderPartCampaignDateValue, SUtmLinkBuilderSingleForm, SUtmLinkBuilderSingleFormIn, SUtmLinkBuilderSingleFormOut, SUtmLinkBuilderTableForm, SUtmLinkBuilderTableFormIn, SUtmLinkBuilderTableFormOut, UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS };
190
+ export { SUtmLinkBuilderCampaign, SUtmLinkBuilderCreativeFormat, SUtmLinkBuilderPartCampaignDateValue, SUtmLinkBuilderSingleForm, SUtmLinkBuilderSingleFormIn, SUtmLinkBuilderSingleFormOut, SUtmLinkBuilderTableForm, SUtmLinkBuilderTableFormIn, SUtmLinkBuilderTableFormOut, UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS };
@@ -1,6 +1,6 @@
1
1
  import { J as ERROR_MESSAGE_UTM_URL, K as ERROR_MESSAGE_URL_NO_QUERY_PARAMS, U as ERROR_MESSAGE_INVALID_URL, r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE } from "../../regex-BnKGcdS4.mjs";
2
2
  import { d as VStringMinMax, l as VStringMax, t as VIntegerNullable, u as VStringMaxRegex } from "../../validators-P5E_3qzc.mjs";
3
- import { a as SAssociateOneEntity } from "../../relations-C04F46xL.mjs";
3
+ import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
4
4
  import * as v from "valibot";
5
5
  //#region src/entities/utm-link-builder/constants.ts
6
6
  const UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS = [
@@ -11,15 +11,17 @@ const UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS = [
11
11
  "no date"
12
12
  ];
13
13
  //#endregion
14
+ //#region src/entities/utm-link-builder/fields.ts
15
+ const UtmLinkBuilderPartCampaignDate = v.picklist(UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS);
16
+ //#endregion
14
17
  //#region src/entities/utm-link-builder/mutation.ts
15
- const SUtmLinkBuilderPartCampaignDateOptions = UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS;
16
18
  const SUtmLinkBuilderCampaign = v.object({
17
19
  campaign_phase: VStringMinMax(1, 255),
18
20
  campaign_product: v.optional(VStringMax()),
19
21
  campaign_targeting: v.optional(v.pipe(v.array(VStringMaxRegex(255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)), v.maxLength(10))),
20
22
  campaign_key: v.optional(VStringMaxRegex(255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
21
23
  campaign_date: v.object({
22
- format: v.picklist(SUtmLinkBuilderPartCampaignDateOptions),
24
+ format: UtmLinkBuilderPartCampaignDate,
23
25
  value: v.object({
24
26
  year: v.number(),
25
27
  quarter: VIntegerNullable(),
@@ -73,4 +75,4 @@ const SUtmLinkBuilderSingleForm = v.object({
73
75
  notes: v.optional(VStringMax())
74
76
  });
75
77
  //#endregion
76
- export { SUtmLinkBuilderCampaign, SUtmLinkBuilderCreativeFormat, SUtmLinkBuilderPartCampaignDateOptions, SUtmLinkBuilderSingleForm, SUtmLinkBuilderTableForm, UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS };
78
+ export { SUtmLinkBuilderCampaign, SUtmLinkBuilderCreativeFormat, SUtmLinkBuilderSingleForm, SUtmLinkBuilderTableForm, UTM_LINK_BUILDER_PART_CAMPAIGN_DATE_OPTIONS };
@@ -8,7 +8,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
8
8
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
9
9
  readonly is_active: v.BooleanSchema<undefined>;
10
10
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
11
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
11
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
12
12
  readonly id: v.NumberSchema<undefined>;
13
13
  readonly __component: v.StringSchema<undefined>;
14
14
  }, undefined>, undefined>;
@@ -18,7 +18,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
18
18
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
19
19
  readonly is_active: v.BooleanSchema<undefined>;
20
20
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
21
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
21
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
22
22
  readonly id: v.NumberSchema<undefined>;
23
23
  readonly __component: v.StringSchema<undefined>;
24
24
  }, undefined>, undefined>;
@@ -28,7 +28,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
28
28
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
29
29
  readonly is_active: v.BooleanSchema<undefined>;
30
30
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
31
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
31
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
32
32
  readonly id: v.NumberSchema<undefined>;
33
33
  readonly __component: v.StringSchema<undefined>;
34
34
  }, undefined>, undefined>;
@@ -38,7 +38,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
38
38
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
39
39
  readonly is_active: v.BooleanSchema<undefined>;
40
40
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
41
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
41
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
42
42
  readonly id: v.NumberSchema<undefined>;
43
43
  readonly __component: v.StringSchema<undefined>;
44
44
  }, undefined>, undefined>;
@@ -48,7 +48,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
48
48
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
49
  readonly is_active: v.BooleanSchema<undefined>;
50
50
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
51
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
51
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
52
52
  readonly id: v.NumberSchema<undefined>;
53
53
  readonly __component: v.StringSchema<undefined>;
54
54
  }, undefined>, undefined>;
@@ -58,7 +58,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
58
58
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
59
59
  readonly is_active: v.BooleanSchema<undefined>;
60
60
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
61
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
61
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
62
62
  readonly id: v.NumberSchema<undefined>;
63
63
  readonly __component: v.StringSchema<undefined>;
64
64
  }, undefined>, undefined>;
@@ -68,7 +68,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
68
68
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
69
69
  readonly is_active: v.BooleanSchema<undefined>;
70
70
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
71
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
71
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
72
72
  readonly id: v.NumberSchema<undefined>;
73
73
  readonly __component: v.StringSchema<undefined>;
74
74
  }, undefined>, undefined>;
@@ -8,7 +8,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
8
8
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
9
9
  readonly is_active: v.BooleanSchema<undefined>;
10
10
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
11
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
11
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
12
12
  readonly id: v.NumberSchema<undefined>;
13
13
  readonly __component: v.StringSchema<undefined>;
14
14
  }, undefined>, undefined>;
@@ -18,7 +18,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
18
18
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
19
19
  readonly is_active: v.BooleanSchema<undefined>;
20
20
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
21
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
21
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
22
22
  readonly id: v.NumberSchema<undefined>;
23
23
  readonly __component: v.StringSchema<undefined>;
24
24
  }, undefined>, undefined>;
@@ -28,7 +28,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
28
28
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
29
29
  readonly is_active: v.BooleanSchema<undefined>;
30
30
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
31
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
31
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
32
32
  readonly id: v.NumberSchema<undefined>;
33
33
  readonly __component: v.StringSchema<undefined>;
34
34
  }, undefined>, undefined>;
@@ -38,7 +38,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
38
38
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
39
39
  readonly is_active: v.BooleanSchema<undefined>;
40
40
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
41
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
41
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
42
42
  readonly id: v.NumberSchema<undefined>;
43
43
  readonly __component: v.StringSchema<undefined>;
44
44
  }, undefined>, undefined>;
@@ -48,7 +48,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
48
48
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
49
  readonly is_active: v.BooleanSchema<undefined>;
50
50
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
51
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
51
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
52
52
  readonly id: v.NumberSchema<undefined>;
53
53
  readonly __component: v.StringSchema<undefined>;
54
54
  }, undefined>, undefined>;
@@ -58,7 +58,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
58
58
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
59
59
  readonly is_active: v.BooleanSchema<undefined>;
60
60
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
61
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
61
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
62
62
  readonly id: v.NumberSchema<undefined>;
63
63
  readonly __component: v.StringSchema<undefined>;
64
64
  }, undefined>, undefined>;
@@ -68,7 +68,7 @@ declare const UtmMetaPageDocument: v.ObjectSchema<{
68
68
  readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
69
69
  readonly is_active: v.BooleanSchema<undefined>;
70
70
  readonly active_by_classification: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
71
- readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>;
71
+ readonly active_by_source: v.ArraySchema<v.PicklistSchema<readonly ["all", "meta", "meta_facebook", "meta_instagram", "tiktok", "twitter", "linkedin", "pinterest", "google", "youtube", "bing", "sms", "email", "realtor", "zillow", "bdx_nhs", "yelp", "qr_code", "stackadapt", "newswire", "propellant", "mobile_app", "gcflytour", "referral"], undefined>, undefined>;
72
72
  readonly id: v.NumberSchema<undefined>;
73
73
  readonly __component: v.StringSchema<undefined>;
74
74
  }, undefined>, undefined>;
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
- const require_document = require("../../document-BAro2Mrj.cjs");
4
3
  const require_regex = require("../../regex-Cl5goNwp.cjs");
5
4
  const require_validators = require("../../validators-Bc9Is5Sr.cjs");
6
- const require_relations = require("../../relations-CGu18hfT.cjs");
5
+ const require_relationships = require("../../relationships-CWVJebkQ.cjs");
6
+ const require_document = require("../../document-rndDoVSo.cjs");
7
7
  let valibot = require("valibot");
8
8
  valibot = require_chunk.__toESM(valibot, 1);
9
9
  //#region src/entities/utm-tracking-link/constants.ts
@@ -32,27 +32,6 @@ const UTM_TRACKING_LINK_SORT_KEYS = [
32
32
  "updatedAt"
33
33
  ];
34
34
  //#endregion
35
- //#region src/entities/utm-tracking-link/document.ts
36
- const UtmTrackingLinkDocument = valibot.object({
37
- ...require_document.BaseDocument.entries,
38
- url_destination: valibot.string(),
39
- utm_medium: valibot.string(),
40
- utm_source: valibot.string(),
41
- utm_campaign: valibot.string(),
42
- utm_content: valibot.nullable(valibot.string()),
43
- utm_creative_format: valibot.nullable(valibot.string()),
44
- utm_id: valibot.nullable(valibot.string()),
45
- campaign_phase: valibot.string(),
46
- campaign_product: valibot.nullable(valibot.string()),
47
- campaign_targeting: valibot.nullable(valibot.string()),
48
- campaign_key: valibot.nullable(valibot.string()),
49
- creative_format: valibot.nullable(valibot.string()),
50
- creative_format_variants: valibot.nullable(valibot.string()),
51
- url: valibot.string(),
52
- is_active: valibot.boolean(),
53
- notes: valibot.nullable(valibot.string())
54
- });
55
- //#endregion
56
35
  //#region src/entities/utm-tracking-link/fields.ts
57
36
  const QuerySortUtmTrackingLinks = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(UTM_TRACKING_LINK_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(UTM_TRACKING_LINK_SORT_KEYS.length)));
58
37
  //#endregion
@@ -142,13 +121,13 @@ const UpdateUtmTrackingLinkDocument = valibot.object({
142
121
  campaign_targeting: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(require_validators.VStringShort()), valibot.transform((value) => value.join(","))))),
143
122
  campaign_key: valibot.optional(valibot.nullable(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE))),
144
123
  creative_format: valibot.optional(valibot.nullable(require_validators.VStringMinMax(1, 255))),
145
- creative_format_variants: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(require_relations.SAssociateOneEntity), valibot.transform((value) => value.join(","))))),
124
+ creative_format_variants: valibot.optional(valibot.nullable(valibot.pipe(valibot.array(require_relationships.SAssociateOneEntity), valibot.transform((value) => value.join(","))))),
146
125
  url: require_validators.VStringUrlUtm(),
147
126
  is_active: valibot.boolean(),
148
127
  notes: valibot.optional(valibot.nullable(require_validators.VStringMinMaxRegex(1, require_regex.LIMIT_LONG_STRING_MAX_LENGTH, require_regex.REGEX_UTM_VALUE, require_regex.ERROR_MESSAGE_REGEX_UTM_VALUE)))
149
128
  });
150
129
  const UpdateUtmTrackingLinkDocumentRequest = valibot.object({
151
- documentId: require_relations.SAssociateOneEntity,
130
+ documentId: require_relationships.SAssociateOneEntity,
152
131
  data: UpdateUtmTrackingLinkDocument
153
132
  });
154
133
  //#endregion
@@ -158,8 +137,8 @@ const QueryStrapiSearchUtmTrackingLinks = valibot.object({
158
137
  size: require_validators.VSize(100),
159
138
  client_id: valibot.optional(require_validators.VStringShort()),
160
139
  creator_id: valibot.optional(require_validators.VStringShort()),
161
- clients: valibot.optional(require_relations.SQueryManyEntities),
162
- users: valibot.optional(require_relations.SQueryManyEntities),
140
+ clients: valibot.optional(require_relationships.SQueryManyEntities),
141
+ users: valibot.optional(require_relationships.SQueryManyEntities),
163
142
  url_destination: valibot.optional(valibot.pipe(valibot.string(), valibot.trim(), valibot.url(require_regex.ERROR_MESSAGE_INVALID_URL), valibot.check((input) => {
164
143
  if (input === "") return false;
165
144
  return input.indexOf("?") === -1;
@@ -196,4 +175,4 @@ exports.SReadUtmTrackingLinkDocumentByUrl = SReadUtmTrackingLinkDocumentByUrl;
196
175
  exports.UTM_TRACKING_LINK_SORT_KEYS = UTM_TRACKING_LINK_SORT_KEYS;
197
176
  exports.UpdateUtmTrackingLinkDocument = UpdateUtmTrackingLinkDocument;
198
177
  exports.UpdateUtmTrackingLinkDocumentRequest = UpdateUtmTrackingLinkDocumentRequest;
199
- exports.UtmTrackingLinkDocument = UtmTrackingLinkDocument;
178
+ exports.UtmTrackingLinkDocument = require_document.UtmTrackingLinkDocument;