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

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 (259) hide show
  1. package/README.md +16 -0
  2. package/dist/abac-BeKQtxIF.cjs +648 -0
  3. package/dist/abac-DPd9oLKR.mjs +643 -0
  4. package/dist/base/index.cjs +19 -19
  5. package/dist/base/index.d.cts +2 -3
  6. package/dist/base/index.d.mts +3 -4
  7. package/dist/base/index.mjs +2 -2
  8. package/dist/components/blocks/index.cjs +16 -14
  9. package/dist/components/blocks/index.d.cts +2 -1322
  10. package/dist/components/blocks/index.d.mts +2 -1322
  11. package/dist/components/blocks/index.mjs +16 -14
  12. package/dist/components/brand/index.d.cts +1 -314
  13. package/dist/components/brand/index.d.mts +1 -314
  14. package/dist/components/forms/index.cjs +10 -8
  15. package/dist/components/forms/index.d.cts +6 -3
  16. package/dist/components/forms/index.d.mts +6 -3
  17. package/dist/components/forms/index.mjs +10 -8
  18. package/dist/components/shared/index.cjs +3 -1
  19. package/dist/components/shared/index.d.cts +1 -916
  20. package/dist/components/shared/index.d.mts +1 -916
  21. package/dist/components/shared/index.mjs +3 -1
  22. package/dist/components/slideshow/index.cjs +15 -13
  23. package/dist/components/slideshow/index.d.cts +7 -5
  24. package/dist/components/slideshow/index.d.mts +7 -5
  25. package/dist/components/slideshow/index.mjs +15 -13
  26. package/dist/components/utm/index.cjs +7 -5
  27. package/dist/components/utm/index.d.cts +2 -32
  28. package/dist/components/utm/index.d.mts +2 -32
  29. package/dist/components/utm/index.mjs +7 -5
  30. package/dist/{document-BMxLOdrT.d.cts → document-BVhB_t1g.d.mts} +158 -104
  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-D7jG_DvK.cjs +728 -0
  37. package/dist/document-DEUmfrbE.mjs +457 -0
  38. package/dist/document-DaICHS9G.cjs +17 -0
  39. package/dist/{document-Gx2Vrg_w.d.mts → document-DtDSYDbn.d.cts} +158 -104
  40. package/dist/document-c3GNPelp.mjs +10 -0
  41. package/dist/{document-hEBlSep8.d.cts → document-i-h3Orv7.d.cts} +6 -6
  42. package/dist/entities/audit-log/index.cjs +2 -2
  43. package/dist/entities/audit-log/index.d.cts +2 -2
  44. package/dist/entities/audit-log/index.d.mts +3 -3
  45. package/dist/entities/audit-log/index.mjs +1 -1
  46. package/dist/entities/blog-page/index.d.mts +1 -1
  47. package/dist/entities/blog-post/index.cjs +1 -1
  48. package/dist/entities/blog-post/index.d.cts +1 -916
  49. package/dist/entities/blog-post/index.d.mts +1 -916
  50. package/dist/entities/blog-post/index.mjs +1 -1
  51. package/dist/entities/careers-page/index.d.mts +1 -1
  52. package/dist/entities/category/index.cjs +4 -13
  53. package/dist/entities/category/index.d.cts +3 -260
  54. package/dist/entities/category/index.d.mts +3 -260
  55. package/dist/entities/category/index.mjs +2 -11
  56. package/dist/entities/client/index.cjs +3 -3
  57. package/dist/entities/client/index.d.cts +1 -84
  58. package/dist/entities/client/index.d.mts +1 -84
  59. package/dist/entities/client/index.mjs +2 -2
  60. package/dist/entities/client-content-pillar/index.cjs +10 -20
  61. package/dist/entities/client-content-pillar/index.d.cts +1 -48
  62. package/dist/entities/client-content-pillar/index.d.mts +1 -48
  63. package/dist/entities/client-content-pillar/index.mjs +2 -12
  64. package/dist/entities/client-media-platform/index.cjs +10 -17
  65. package/dist/entities/client-media-platform/index.d.cts +1 -52
  66. package/dist/entities/client-media-platform/index.d.mts +1 -52
  67. package/dist/entities/client-media-platform/index.mjs +2 -9
  68. package/dist/entities/client-project/index.cjs +22 -129
  69. package/dist/entities/client-project/index.d.cts +1 -146
  70. package/dist/entities/client-project/index.d.mts +1 -146
  71. package/dist/entities/client-project/index.mjs +2 -109
  72. package/dist/entities/client-report/index.cjs +7 -18
  73. package/dist/entities/client-report/index.d.cts +1 -62
  74. package/dist/entities/client-report/index.d.mts +1 -62
  75. package/dist/entities/client-report/index.mjs +2 -13
  76. package/dist/entities/client-styleguide/index.cjs +7 -27
  77. package/dist/entities/client-styleguide/index.d.cts +1 -47
  78. package/dist/entities/client-styleguide/index.d.mts +1 -47
  79. package/dist/entities/client-styleguide/index.mjs +2 -22
  80. package/dist/entities/client-user/index.cjs +17 -53
  81. package/dist/entities/client-user/index.d.cts +2 -47
  82. package/dist/entities/client-user/index.d.mts +2 -47
  83. package/dist/entities/client-user/index.mjs +5 -41
  84. package/dist/entities/comment/index.d.cts +1 -1
  85. package/dist/entities/comment/index.d.mts +1 -1
  86. package/dist/entities/content-pillar/index.cjs +5 -5
  87. package/dist/entities/content-pillar/index.d.cts +1 -49
  88. package/dist/entities/content-pillar/index.d.mts +1 -49
  89. package/dist/entities/content-pillar/index.mjs +2 -2
  90. package/dist/entities/faq-page/index.d.mts +1 -1
  91. package/dist/entities/gcflytour/index.cjs +9 -19
  92. package/dist/entities/gcflytour/index.d.cts +1 -60
  93. package/dist/entities/gcflytour/index.d.mts +1 -60
  94. package/dist/entities/gcflytour/index.mjs +2 -12
  95. package/dist/entities/gcflytour-snap/index.cjs +7 -17
  96. package/dist/entities/gcflytour-snap/index.d.cts +1 -58
  97. package/dist/entities/gcflytour-snap/index.d.mts +1 -58
  98. package/dist/entities/gcflytour-snap/index.mjs +2 -12
  99. package/dist/entities/landing-page/index.d.cts +1 -0
  100. package/dist/entities/landing-page/index.d.mts +2 -1
  101. package/dist/entities/lead/index.cjs +2 -2
  102. package/dist/entities/lead/index.mjs +1 -1
  103. package/dist/entities/media-content-type/index.cjs +10 -23
  104. package/dist/entities/media-content-type/index.d.cts +3 -3
  105. package/dist/entities/media-content-type/index.d.mts +3 -3
  106. package/dist/entities/media-content-type/index.mjs +2 -15
  107. package/dist/entities/media-creative-format/index.cjs +7 -16
  108. package/dist/entities/media-creative-format/index.d.cts +3 -3
  109. package/dist/entities/media-creative-format/index.d.mts +3 -3
  110. package/dist/entities/media-creative-format/index.mjs +2 -11
  111. package/dist/entities/media-medium/index.cjs +7 -18
  112. package/dist/entities/media-medium/index.d.cts +3 -18
  113. package/dist/entities/media-medium/index.d.mts +3 -18
  114. package/dist/entities/media-medium/index.mjs +2 -13
  115. package/dist/entities/media-platform/index.cjs +13 -29
  116. package/dist/entities/media-platform/index.d.cts +1 -73
  117. package/dist/entities/media-platform/index.d.mts +1 -73
  118. package/dist/entities/media-platform/index.mjs +2 -18
  119. package/dist/entities/monday-workspace/index.cjs +7 -14
  120. package/dist/entities/monday-workspace/index.d.cts +1 -46
  121. package/dist/entities/monday-workspace/index.d.mts +1 -46
  122. package/dist/entities/monday-workspace/index.mjs +2 -9
  123. package/dist/entities/newsletter-signup/index.cjs +2 -2
  124. package/dist/entities/newsletter-signup/index.mjs +1 -1
  125. package/dist/entities/policy-page/index.d.cts +1 -0
  126. package/dist/entities/policy-page/index.d.mts +2 -1
  127. package/dist/entities/product/index.cjs +2 -21
  128. package/dist/entities/product/index.d.cts +1 -319
  129. package/dist/entities/product/index.d.mts +1 -319
  130. package/dist/entities/product/index.mjs +1 -18
  131. package/dist/entities/product-highlight/index.cjs +2 -21
  132. package/dist/entities/product-highlight/index.d.cts +1 -244
  133. package/dist/entities/product-highlight/index.d.mts +1 -244
  134. package/dist/entities/product-highlight/index.mjs +1 -18
  135. package/dist/entities/resume/index.cjs +2 -2
  136. package/dist/entities/resume/index.mjs +1 -1
  137. package/dist/entities/tag/index.cjs +4 -11
  138. package/dist/entities/tag/index.d.cts +3 -14
  139. package/dist/entities/tag/index.d.mts +3 -14
  140. package/dist/entities/tag/index.mjs +2 -9
  141. package/dist/entities/team-member/index.cjs +1 -1
  142. package/dist/entities/team-member/index.d.cts +1 -209
  143. package/dist/entities/team-member/index.d.mts +1 -209
  144. package/dist/entities/team-member/index.mjs +1 -1
  145. package/dist/entities/team-page/index.d.mts +1 -1
  146. package/dist/entities/trend/index.cjs +4 -18
  147. package/dist/entities/trend/index.d.cts +1 -333
  148. package/dist/entities/trend/index.d.mts +1 -333
  149. package/dist/entities/trend/index.mjs +2 -16
  150. package/dist/entities/up-auth/index.d.cts +2 -2
  151. package/dist/entities/up-auth/index.d.mts +2 -2
  152. package/dist/entities/up-permission/index.cjs +2 -11
  153. package/dist/entities/up-permission/index.d.cts +1 -13
  154. package/dist/entities/up-permission/index.d.mts +1 -13
  155. package/dist/entities/up-permission/index.mjs +1 -8
  156. package/dist/entities/up-role/index.cjs +4 -27
  157. package/dist/entities/up-role/index.d.cts +1 -2
  158. package/dist/entities/up-role/index.d.mts +1 -2
  159. package/dist/entities/up-role/index.mjs +1 -22
  160. package/dist/entities/up-user/index.cjs +9 -63
  161. package/dist/entities/up-user/index.d.cts +1 -37
  162. package/dist/entities/up-user/index.d.mts +1 -37
  163. package/dist/entities/up-user/index.mjs +1 -53
  164. package/dist/entities/url-redirect/index.d.cts +2 -2
  165. package/dist/entities/url-redirect/index.d.mts +2 -2
  166. package/dist/entities/user-account/index.cjs +10 -18
  167. package/dist/entities/user-account/index.d.cts +2 -2
  168. package/dist/entities/user-account/index.d.mts +2 -2
  169. package/dist/entities/user-account/index.mjs +3 -11
  170. package/dist/entities/utm-link-builder/index.cjs +9 -8
  171. package/dist/entities/utm-link-builder/index.d.cts +2 -3
  172. package/dist/entities/utm-link-builder/index.d.mts +2 -3
  173. package/dist/entities/utm-link-builder/index.mjs +6 -4
  174. package/dist/entities/utm-meta/index.d.cts +7 -7
  175. package/dist/entities/utm-meta/index.d.mts +7 -7
  176. package/dist/entities/utm-tracking-link/index.cjs +7 -28
  177. package/dist/entities/utm-tracking-link/index.d.cts +1 -234
  178. package/dist/entities/utm-tracking-link/index.d.mts +1 -234
  179. package/dist/entities/utm-tracking-link/index.mjs +2 -23
  180. package/dist/index-4XzJDMTp.d.mts +4744 -0
  181. package/dist/index-B3VtiObV.d.mts +317 -0
  182. package/dist/index-BD4hPqIw.d.cts +940 -0
  183. package/dist/index-BbwsFaWE.d.cts +921 -0
  184. package/dist/{index-DDYmaYSm.d.mts → index-Brw4Hq18.d.cts} +3 -3
  185. package/dist/{index-Dl6KBLdT.d.mts → index-CJ2_Z1gW.d.mts} +99 -142
  186. package/dist/index-CQP_vcmO.d.cts +317 -0
  187. package/dist/index-CRoWUxGV.d.cts +1324 -0
  188. package/dist/index-CrZiM45q.d.cts +4744 -0
  189. package/dist/index-CygWlTrU.d.mts +940 -0
  190. package/dist/index-D11tQdCv.d.cts +34 -0
  191. package/dist/{index-DmLVZdb3.d.cts → index-D6rOxDlM.d.mts} +3 -3
  192. package/dist/index-DJ-0EDJN.d.mts +921 -0
  193. package/dist/index-DLICmJ_-.d.mts +34 -0
  194. package/dist/{index-Dv9bgrpo.d.cts → index-efk0FfOP.d.cts} +98 -141
  195. package/dist/index-oCLNrzIj.d.mts +1324 -0
  196. package/dist/media-upload-D-nP8FR1.d.cts +140 -0
  197. package/dist/media-upload-DKeA1eD-.d.mts +140 -0
  198. package/dist/permissions/index.cjs +3 -663
  199. package/dist/permissions/index.d.cts +2 -2
  200. package/dist/permissions/index.d.mts +2 -2
  201. package/dist/permissions/index.mjs +3 -661
  202. package/dist/{query.schema-DHTf6rTw.cjs → query-7g1AOXN9.cjs} +3 -3
  203. package/dist/{query.schema-YKoOuBnk.mjs → query-CeUev0uJ.mjs} +2 -2
  204. package/dist/{relations-C04F46xL.mjs → relationships-BosK0kyG.mjs} +1 -1
  205. package/dist/{relations-CGu18hfT.cjs → relationships-CWVJebkQ.cjs} +1 -1
  206. package/dist/utilities/index.cjs +20 -0
  207. package/dist/utilities/index.d.cts +7 -2
  208. package/dist/utilities/index.d.mts +7 -2
  209. package/dist/utilities/index.mjs +19 -1
  210. package/package.json +1 -1
  211. package/dist/document-BAzLIprH.d.mts +0 -100
  212. package/dist/document-BFukanLe.mjs +0 -54
  213. package/dist/document-BK1ASowb.d.cts +0 -17
  214. package/dist/document-BNoXPGwF.d.mts +0 -27
  215. package/dist/document-B_pJW777.d.mts +0 -30
  216. package/dist/document-Bd2AyLs8.d.mts +0 -16
  217. package/dist/document-BezYxNmb.d.cts +0 -16
  218. package/dist/document-Bj7SRTOn.d.cts +0 -18
  219. package/dist/document-Bo869pZx.d.mts +0 -18
  220. package/dist/document-Bs8c1mok.d.cts +0 -15
  221. package/dist/document-C0c7azOe.d.mts +0 -434
  222. package/dist/document-CTTDXzOF.mjs +0 -13
  223. package/dist/document-CUl_Ys6-.mjs +0 -23
  224. package/dist/document-CWYzG60q.d.cts +0 -19
  225. package/dist/document-Ccszj8lR.cjs +0 -20
  226. package/dist/document-CjNHI7Eb.d.cts +0 -27
  227. package/dist/document-Cu_HUDC5.mjs +0 -51
  228. package/dist/document-D-KvyEb5.d.cts +0 -238
  229. package/dist/document-D2nLVGig.d.mts +0 -238
  230. package/dist/document-D5yDIDIx.d.mts +0 -15
  231. package/dist/document-D73dqRle.d.cts +0 -19
  232. package/dist/document-DA6YVZz-.d.cts +0 -100
  233. package/dist/document-DJ0YiVte.d.cts +0 -30
  234. package/dist/document-DMHIUE3J.d.mts +0 -17
  235. package/dist/document-DN3g0EFx.d.cts +0 -434
  236. package/dist/document-DWapIF7V.d.cts +0 -12223
  237. package/dist/document-DYzRVV1C.d.mts +0 -16
  238. package/dist/document-D_ZMbzn6.d.cts +0 -18
  239. package/dist/document-DeoRGh7p.d.mts +0 -19
  240. package/dist/document-DsIPBTG8.cjs +0 -30
  241. package/dist/document-DsSaMVGb.cjs +0 -106
  242. package/dist/document-IIJpsOIO.d.cts +0 -16
  243. package/dist/document-WHS8GHY5.d.mts +0 -18
  244. package/dist/document-dqrWptdY.d.cts +0 -244
  245. package/dist/document-qcC-10Nd.d.mts +0 -12223
  246. package/dist/document-rbMXLGxt.cjs +0 -103
  247. package/dist/document-si7GYS5g.d.mts +0 -19
  248. package/dist/document-vq-7rcU5.d.mts +0 -244
  249. package/dist/fields-BQHSYj70.d.cts +0 -7
  250. package/dist/fields-qx-5saY5.d.mts +0 -7
  251. package/dist/index-CPUGB8lZ.d.mts +0 -95
  252. package/dist/index-H4RC0v4h.d.cts +0 -95
  253. package/dist/query.schema-BOn5Kk_p.d.mts +0 -41
  254. package/dist/query.schema-CItKlb0x.d.cts +0 -41
  255. package/dist/response-C-7nyNVD.d.mts +0 -57
  256. package/dist/response-c6SgLvi9.d.cts +0 -57
  257. /package/dist/{constants-L2goO7Eg.mjs → constants-Htf-MeCA.mjs} +0 -0
  258. /package/dist/{constants-PBZKggHL.cjs → constants-f1GP2eiq.cjs} +0 -0
  259. /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" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "blocked:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "username:DESC" | "email:DESC" | "confirmed:DESC" | "blocked:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "blocked:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "username:DESC" | "email:DESC" | "confirmed:DESC" | "blocked: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" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "blocked:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "username:DESC" | "email:DESC" | "confirmed:DESC" | "blocked:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "blocked:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "username:DESC" | "email:DESC" | "confirmed:DESC" | "blocked: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-4XzJDMTp.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 { E as USER_SORT_KEYS, T as LIMIT_USER_PAGINATION_MAX_SIZE, _ as UserDocument, g as QuerySortUsers, h as CreateUserDocument, m as QueryStrapiUsersByIdentifier, p as QueryStrapiUsers, w as LIMIT_USER_PAGINATION_DEFAULT_SIZE } from "../../document-DEUmfrbE.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" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
30
+ declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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>;
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" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
37
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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>;
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" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
30
+ declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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>;
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" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "is_active:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC" | "is_active:DESC")[], 8, undefined>]>, undefined>;
37
+ readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "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>;
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-D7jG_DvK.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-CrZiM45q.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-4XzJDMTp.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 { y as UserAccountDocument } from "../../document-DEUmfrbE.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-D7jG_DvK.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;