@warlock.js/seal 4.0.134 → 4.0.136

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 (379) hide show
  1. package/cjs/factory/validators.d.ts +1 -1
  2. package/cjs/factory/validators.d.ts.map +1 -1
  3. package/cjs/factory/validators.js +2 -2
  4. package/cjs/factory/validators.js.map +1 -1
  5. package/cjs/helpers/validation-helpers.d.ts +22 -0
  6. package/cjs/helpers/validation-helpers.d.ts.map +1 -1
  7. package/cjs/helpers/validation-helpers.js +56 -34
  8. package/cjs/helpers/validation-helpers.js.map +1 -1
  9. package/cjs/index.js +1 -1
  10. package/cjs/mutators/date-mutators.js +1 -1
  11. package/cjs/mutators/date-mutators.js.map +1 -1
  12. package/cjs/rules/array/array-rules.d.ts.map +1 -1
  13. package/cjs/rules/array/array-rules.js +1 -0
  14. package/cjs/rules/array/array-rules.js.map +1 -1
  15. package/cjs/rules/common/enum.d.ts.map +1 -1
  16. package/cjs/rules/common/enum.js +17 -3
  17. package/cjs/rules/common/enum.js.map +1 -1
  18. package/cjs/rules/common/equals-field-rules.d.ts.map +1 -1
  19. package/cjs/rules/common/equals-field-rules.js +1 -0
  20. package/cjs/rules/common/equals-field-rules.js.map +1 -1
  21. package/cjs/rules/common/type-rules.d.ts +4 -0
  22. package/cjs/rules/common/type-rules.d.ts.map +1 -1
  23. package/cjs/rules/common/type-rules.js +14 -1
  24. package/cjs/rules/common/type-rules.js.map +1 -1
  25. package/cjs/rules/common/unknown-key.js +2 -2
  26. package/cjs/rules/common/unknown-key.js.map +1 -1
  27. package/cjs/rules/conditional/forbidden-if-rules.d.ts.map +1 -1
  28. package/cjs/rules/conditional/forbidden-if-rules.js +6 -0
  29. package/cjs/rules/conditional/forbidden-if-rules.js.map +1 -1
  30. package/cjs/rules/conditional/index.d.ts +1 -0
  31. package/cjs/rules/conditional/index.d.ts.map +1 -1
  32. package/cjs/rules/conditional/present-if-rules.d.ts.map +1 -1
  33. package/cjs/rules/conditional/present-if-rules.js +2 -0
  34. package/cjs/rules/conditional/present-if-rules.js.map +1 -1
  35. package/cjs/rules/conditional/present-unless-rules.d.ts.map +1 -1
  36. package/cjs/rules/conditional/present-unless-rules.js +2 -0
  37. package/cjs/rules/conditional/present-unless-rules.js.map +1 -1
  38. package/cjs/rules/conditional/present-with-rules.d.ts.map +1 -1
  39. package/cjs/rules/conditional/present-with-rules.js +9 -2
  40. package/cjs/rules/conditional/present-with-rules.js.map +1 -1
  41. package/cjs/rules/conditional/present-without-rules.d.ts.map +1 -1
  42. package/cjs/rules/conditional/present-without-rules.js +9 -2
  43. package/cjs/rules/conditional/present-without-rules.js.map +1 -1
  44. package/cjs/rules/conditional/required-if-rules.d.ts.map +1 -1
  45. package/cjs/rules/conditional/required-if-rules.js +22 -7
  46. package/cjs/rules/conditional/required-if-rules.js.map +1 -1
  47. package/cjs/rules/conditional/required-unless-rules.d.ts.map +1 -1
  48. package/cjs/rules/conditional/required-unless-rules.js +2 -0
  49. package/cjs/rules/conditional/required-unless-rules.js.map +1 -1
  50. package/cjs/rules/conditional/required-when-rule.d.ts +18 -0
  51. package/cjs/rules/conditional/required-when-rule.d.ts.map +1 -0
  52. package/cjs/rules/conditional/required-when-rule.js +26 -0
  53. package/cjs/rules/conditional/required-when-rule.js.map +1 -0
  54. package/cjs/rules/conditional/required-with-rules.d.ts.map +1 -1
  55. package/cjs/rules/conditional/required-with-rules.js +1 -0
  56. package/cjs/rules/conditional/required-with-rules.js.map +1 -1
  57. package/cjs/rules/conditional/required-without-rules.d.ts.map +1 -1
  58. package/cjs/rules/conditional/required-without-rules.js +1 -0
  59. package/cjs/rules/conditional/required-without-rules.js.map +1 -1
  60. package/cjs/rules/core/equal.d.ts.map +1 -1
  61. package/cjs/rules/core/equal.js +1 -0
  62. package/cjs/rules/core/equal.js.map +1 -1
  63. package/cjs/rules/core/required.d.ts +1 -1
  64. package/cjs/rules/core/required.js +1 -1
  65. package/cjs/rules/date/date-comparison-rules.d.ts.map +1 -1
  66. package/cjs/rules/date/date-comparison-rules.js +2 -0
  67. package/cjs/rules/date/date-comparison-rules.js.map +1 -1
  68. package/cjs/rules/date/date-day-rules.d.ts.map +1 -1
  69. package/cjs/rules/date/date-day-rules.js +4 -1
  70. package/cjs/rules/date/date-day-rules.js.map +1 -1
  71. package/cjs/rules/date/date-field-comparison-rules.d.ts.map +1 -1
  72. package/cjs/rules/date/date-field-comparison-rules.js +4 -0
  73. package/cjs/rules/date/date-field-comparison-rules.js.map +1 -1
  74. package/cjs/rules/date/date-period-rules.d.ts +20 -4
  75. package/cjs/rules/date/date-period-rules.d.ts.map +1 -1
  76. package/cjs/rules/date/date-period-rules.js +44 -5
  77. package/cjs/rules/date/date-period-rules.js.map +1 -1
  78. package/cjs/rules/date/date-relative-rules.d.ts.map +1 -1
  79. package/cjs/rules/date/date-relative-rules.js +3 -0
  80. package/cjs/rules/date/date-relative-rules.js.map +1 -1
  81. package/cjs/rules/date/date-special-rules.d.ts.map +1 -1
  82. package/cjs/rules/date/date-special-rules.js +5 -6
  83. package/cjs/rules/date/date-special-rules.js.map +1 -1
  84. package/cjs/rules/date/date.d.ts.map +1 -1
  85. package/cjs/rules/date/date.js +15 -6
  86. package/cjs/rules/date/date.js.map +1 -1
  87. package/cjs/rules/file/dimensions.d.ts.map +1 -1
  88. package/cjs/rules/file/dimensions.js +4 -0
  89. package/cjs/rules/file/dimensions.js.map +1 -1
  90. package/cjs/rules/file/file-size.d.ts.map +1 -1
  91. package/cjs/rules/file/file-size.js +4 -22
  92. package/cjs/rules/file/file-size.js.map +1 -1
  93. package/cjs/rules/length/length-rules.d.ts.map +1 -1
  94. package/cjs/rules/length/length-rules.js +13 -22
  95. package/cjs/rules/length/length-rules.js.map +1 -1
  96. package/cjs/rules/number/number-rules.d.ts.map +1 -1
  97. package/cjs/rules/number/number-rules.js +13 -2
  98. package/cjs/rules/number/number-rules.js.map +1 -1
  99. package/cjs/rules/scalar/accepted-rule.d.ts.map +1 -1
  100. package/cjs/rules/scalar/accepted-rule.js +12 -5
  101. package/cjs/rules/scalar/accepted-rule.js.map +1 -1
  102. package/cjs/rules/scalar/declined-rule.d.ts.map +1 -1
  103. package/cjs/rules/scalar/declined-rule.js +12 -5
  104. package/cjs/rules/scalar/declined-rule.js.map +1 -1
  105. package/cjs/rules/string/matches.d.ts.map +1 -1
  106. package/cjs/rules/string/matches.js +1 -0
  107. package/cjs/rules/string/matches.js.map +1 -1
  108. package/cjs/rules/string/pattern.d.ts.map +1 -1
  109. package/cjs/rules/string/pattern.js +1 -0
  110. package/cjs/rules/string/pattern.js.map +1 -1
  111. package/cjs/rules/string/string-comparison.d.ts.map +1 -1
  112. package/cjs/rules/string/string-comparison.js +4 -0
  113. package/cjs/rules/string/string-comparison.js.map +1 -1
  114. package/cjs/types/context-types.d.ts +0 -1
  115. package/cjs/types/context-types.d.ts.map +1 -1
  116. package/cjs/types/inference-types.d.ts +10 -5
  117. package/cjs/types/inference-types.d.ts.map +1 -1
  118. package/cjs/types/rule-types.d.ts +4 -0
  119. package/cjs/types/rule-types.d.ts.map +1 -1
  120. package/cjs/validators/array-validator.d.ts +2 -2
  121. package/cjs/validators/array-validator.d.ts.map +1 -1
  122. package/cjs/validators/array-validator.js +13 -23
  123. package/cjs/validators/array-validator.js.map +1 -1
  124. package/cjs/validators/base-validator.d.ts +79 -369
  125. package/cjs/validators/base-validator.d.ts.map +1 -1
  126. package/cjs/validators/base-validator.js +144 -826
  127. package/cjs/validators/base-validator.js.map +1 -1
  128. package/cjs/validators/boolean-validator.d.ts +18 -15
  129. package/cjs/validators/boolean-validator.d.ts.map +1 -1
  130. package/cjs/validators/boolean-validator.js +46 -16
  131. package/cjs/validators/boolean-validator.js.map +1 -1
  132. package/cjs/validators/date-validator.d.ts +8 -3
  133. package/cjs/validators/date-validator.d.ts.map +1 -1
  134. package/cjs/validators/date-validator.js +176 -246
  135. package/cjs/validators/date-validator.js.map +1 -1
  136. package/cjs/validators/float-validator.js +1 -1
  137. package/cjs/validators/float-validator.js.map +1 -1
  138. package/cjs/validators/index.d.ts +5 -0
  139. package/cjs/validators/index.d.ts.map +1 -1
  140. package/cjs/validators/int-validator.js +1 -1
  141. package/cjs/validators/int-validator.js.map +1 -1
  142. package/cjs/validators/methods/equality-conditional-methods.d.ts +88 -0
  143. package/cjs/validators/methods/equality-conditional-methods.d.ts.map +1 -0
  144. package/cjs/validators/methods/equality-conditional-methods.js +118 -0
  145. package/cjs/validators/methods/equality-conditional-methods.js.map +1 -0
  146. package/cjs/validators/methods/forbidden-methods.d.ts +58 -0
  147. package/cjs/validators/methods/forbidden-methods.d.ts.map +1 -0
  148. package/cjs/validators/methods/forbidden-methods.js +122 -0
  149. package/cjs/validators/methods/forbidden-methods.js.map +1 -0
  150. package/cjs/validators/methods/present-methods.d.ts +102 -0
  151. package/cjs/validators/methods/present-methods.d.ts.map +1 -0
  152. package/cjs/validators/methods/present-methods.js +229 -0
  153. package/cjs/validators/methods/present-methods.js.map +1 -0
  154. package/cjs/validators/methods/required-methods.d.ts +174 -0
  155. package/cjs/validators/methods/required-methods.d.ts.map +1 -0
  156. package/cjs/validators/methods/required-methods.js +246 -0
  157. package/cjs/validators/methods/required-methods.js.map +1 -0
  158. package/cjs/validators/number-validator.d.ts +11 -13
  159. package/cjs/validators/number-validator.d.ts.map +1 -1
  160. package/cjs/validators/number-validator.js +60 -78
  161. package/cjs/validators/number-validator.js.map +1 -1
  162. package/cjs/validators/numeric-validator.js +1 -1
  163. package/cjs/validators/numeric-validator.js.map +1 -1
  164. package/cjs/validators/object-validator.d.ts +1 -0
  165. package/cjs/validators/object-validator.d.ts.map +1 -1
  166. package/cjs/validators/object-validator.js +21 -15
  167. package/cjs/validators/object-validator.js.map +1 -1
  168. package/cjs/validators/primitive-validator.d.ts +70 -0
  169. package/cjs/validators/primitive-validator.d.ts.map +1 -0
  170. package/cjs/validators/primitive-validator.js +80 -0
  171. package/cjs/validators/primitive-validator.js.map +1 -0
  172. package/cjs/validators/record-validator.d.ts +4 -0
  173. package/cjs/validators/record-validator.d.ts.map +1 -1
  174. package/cjs/validators/record-validator.js +7 -1
  175. package/cjs/validators/record-validator.js.map +1 -1
  176. package/cjs/validators/scalar-validator.d.ts +5 -15
  177. package/cjs/validators/scalar-validator.d.ts.map +1 -1
  178. package/cjs/validators/scalar-validator.js +20 -78
  179. package/cjs/validators/scalar-validator.js.map +1 -1
  180. package/cjs/validators/string-validator.d.ts +2 -18
  181. package/cjs/validators/string-validator.d.ts.map +1 -1
  182. package/cjs/validators/string-validator.js +71 -164
  183. package/cjs/validators/string-validator.js.map +1 -1
  184. package/cjs/validators/tuple-validator.d.ts.map +1 -1
  185. package/cjs/validators/tuple-validator.js +2 -2
  186. package/cjs/validators/tuple-validator.js.map +1 -1
  187. package/cjs/validators/union-validator.d.ts.map +1 -1
  188. package/cjs/validators/union-validator.js +1 -3
  189. package/cjs/validators/union-validator.js.map +1 -1
  190. package/esm/factory/validators.d.ts +1 -1
  191. package/esm/factory/validators.d.ts.map +1 -1
  192. package/esm/factory/validators.js +2 -2
  193. package/esm/factory/validators.js.map +1 -1
  194. package/esm/helpers/validation-helpers.d.ts +22 -0
  195. package/esm/helpers/validation-helpers.d.ts.map +1 -1
  196. package/esm/helpers/validation-helpers.js +56 -34
  197. package/esm/helpers/validation-helpers.js.map +1 -1
  198. package/esm/index.js +1 -1
  199. package/esm/mutators/date-mutators.js +1 -1
  200. package/esm/mutators/date-mutators.js.map +1 -1
  201. package/esm/rules/array/array-rules.d.ts.map +1 -1
  202. package/esm/rules/array/array-rules.js +1 -0
  203. package/esm/rules/array/array-rules.js.map +1 -1
  204. package/esm/rules/common/enum.d.ts.map +1 -1
  205. package/esm/rules/common/enum.js +18 -4
  206. package/esm/rules/common/enum.js.map +1 -1
  207. package/esm/rules/common/equals-field-rules.d.ts.map +1 -1
  208. package/esm/rules/common/equals-field-rules.js +1 -0
  209. package/esm/rules/common/equals-field-rules.js.map +1 -1
  210. package/esm/rules/common/type-rules.d.ts +4 -0
  211. package/esm/rules/common/type-rules.d.ts.map +1 -1
  212. package/esm/rules/common/type-rules.js +15 -2
  213. package/esm/rules/common/type-rules.js.map +1 -1
  214. package/esm/rules/common/unknown-key.js +2 -2
  215. package/esm/rules/common/unknown-key.js.map +1 -1
  216. package/esm/rules/conditional/forbidden-if-rules.d.ts.map +1 -1
  217. package/esm/rules/conditional/forbidden-if-rules.js +6 -0
  218. package/esm/rules/conditional/forbidden-if-rules.js.map +1 -1
  219. package/esm/rules/conditional/index.d.ts +1 -0
  220. package/esm/rules/conditional/index.d.ts.map +1 -1
  221. package/esm/rules/conditional/present-if-rules.d.ts.map +1 -1
  222. package/esm/rules/conditional/present-if-rules.js +2 -0
  223. package/esm/rules/conditional/present-if-rules.js.map +1 -1
  224. package/esm/rules/conditional/present-unless-rules.d.ts.map +1 -1
  225. package/esm/rules/conditional/present-unless-rules.js +2 -0
  226. package/esm/rules/conditional/present-unless-rules.js.map +1 -1
  227. package/esm/rules/conditional/present-with-rules.d.ts.map +1 -1
  228. package/esm/rules/conditional/present-with-rules.js +9 -2
  229. package/esm/rules/conditional/present-with-rules.js.map +1 -1
  230. package/esm/rules/conditional/present-without-rules.d.ts.map +1 -1
  231. package/esm/rules/conditional/present-without-rules.js +9 -2
  232. package/esm/rules/conditional/present-without-rules.js.map +1 -1
  233. package/esm/rules/conditional/required-if-rules.d.ts.map +1 -1
  234. package/esm/rules/conditional/required-if-rules.js +22 -7
  235. package/esm/rules/conditional/required-if-rules.js.map +1 -1
  236. package/esm/rules/conditional/required-unless-rules.d.ts.map +1 -1
  237. package/esm/rules/conditional/required-unless-rules.js +2 -0
  238. package/esm/rules/conditional/required-unless-rules.js.map +1 -1
  239. package/esm/rules/conditional/required-when-rule.d.ts +18 -0
  240. package/esm/rules/conditional/required-when-rule.d.ts.map +1 -0
  241. package/esm/rules/conditional/required-when-rule.js +26 -0
  242. package/esm/rules/conditional/required-when-rule.js.map +1 -0
  243. package/esm/rules/conditional/required-with-rules.d.ts.map +1 -1
  244. package/esm/rules/conditional/required-with-rules.js +1 -0
  245. package/esm/rules/conditional/required-with-rules.js.map +1 -1
  246. package/esm/rules/conditional/required-without-rules.d.ts.map +1 -1
  247. package/esm/rules/conditional/required-without-rules.js +1 -0
  248. package/esm/rules/conditional/required-without-rules.js.map +1 -1
  249. package/esm/rules/core/equal.d.ts.map +1 -1
  250. package/esm/rules/core/equal.js +1 -0
  251. package/esm/rules/core/equal.js.map +1 -1
  252. package/esm/rules/core/required.d.ts +1 -1
  253. package/esm/rules/core/required.js +1 -1
  254. package/esm/rules/date/date-comparison-rules.d.ts.map +1 -1
  255. package/esm/rules/date/date-comparison-rules.js +2 -0
  256. package/esm/rules/date/date-comparison-rules.js.map +1 -1
  257. package/esm/rules/date/date-day-rules.d.ts.map +1 -1
  258. package/esm/rules/date/date-day-rules.js +4 -1
  259. package/esm/rules/date/date-day-rules.js.map +1 -1
  260. package/esm/rules/date/date-field-comparison-rules.d.ts.map +1 -1
  261. package/esm/rules/date/date-field-comparison-rules.js +4 -0
  262. package/esm/rules/date/date-field-comparison-rules.js.map +1 -1
  263. package/esm/rules/date/date-period-rules.d.ts +20 -4
  264. package/esm/rules/date/date-period-rules.d.ts.map +1 -1
  265. package/esm/rules/date/date-period-rules.js +44 -5
  266. package/esm/rules/date/date-period-rules.js.map +1 -1
  267. package/esm/rules/date/date-relative-rules.d.ts.map +1 -1
  268. package/esm/rules/date/date-relative-rules.js +3 -0
  269. package/esm/rules/date/date-relative-rules.js.map +1 -1
  270. package/esm/rules/date/date-special-rules.d.ts.map +1 -1
  271. package/esm/rules/date/date-special-rules.js +5 -6
  272. package/esm/rules/date/date-special-rules.js.map +1 -1
  273. package/esm/rules/date/date.d.ts.map +1 -1
  274. package/esm/rules/date/date.js +15 -6
  275. package/esm/rules/date/date.js.map +1 -1
  276. package/esm/rules/file/dimensions.d.ts.map +1 -1
  277. package/esm/rules/file/dimensions.js +4 -0
  278. package/esm/rules/file/dimensions.js.map +1 -1
  279. package/esm/rules/file/file-size.d.ts.map +1 -1
  280. package/esm/rules/file/file-size.js +4 -22
  281. package/esm/rules/file/file-size.js.map +1 -1
  282. package/esm/rules/length/length-rules.d.ts.map +1 -1
  283. package/esm/rules/length/length-rules.js +13 -22
  284. package/esm/rules/length/length-rules.js.map +1 -1
  285. package/esm/rules/number/number-rules.d.ts.map +1 -1
  286. package/esm/rules/number/number-rules.js +13 -2
  287. package/esm/rules/number/number-rules.js.map +1 -1
  288. package/esm/rules/scalar/accepted-rule.d.ts.map +1 -1
  289. package/esm/rules/scalar/accepted-rule.js +12 -5
  290. package/esm/rules/scalar/accepted-rule.js.map +1 -1
  291. package/esm/rules/scalar/declined-rule.d.ts.map +1 -1
  292. package/esm/rules/scalar/declined-rule.js +12 -5
  293. package/esm/rules/scalar/declined-rule.js.map +1 -1
  294. package/esm/rules/string/matches.d.ts.map +1 -1
  295. package/esm/rules/string/matches.js +1 -0
  296. package/esm/rules/string/matches.js.map +1 -1
  297. package/esm/rules/string/pattern.d.ts.map +1 -1
  298. package/esm/rules/string/pattern.js +1 -0
  299. package/esm/rules/string/pattern.js.map +1 -1
  300. package/esm/rules/string/string-comparison.d.ts.map +1 -1
  301. package/esm/rules/string/string-comparison.js +4 -0
  302. package/esm/rules/string/string-comparison.js.map +1 -1
  303. package/esm/types/context-types.d.ts +0 -1
  304. package/esm/types/context-types.d.ts.map +1 -1
  305. package/esm/types/inference-types.d.ts +10 -5
  306. package/esm/types/inference-types.d.ts.map +1 -1
  307. package/esm/types/rule-types.d.ts +4 -0
  308. package/esm/types/rule-types.d.ts.map +1 -1
  309. package/esm/validators/array-validator.d.ts +2 -2
  310. package/esm/validators/array-validator.d.ts.map +1 -1
  311. package/esm/validators/array-validator.js +13 -23
  312. package/esm/validators/array-validator.js.map +1 -1
  313. package/esm/validators/base-validator.d.ts +79 -369
  314. package/esm/validators/base-validator.d.ts.map +1 -1
  315. package/esm/validators/base-validator.js +144 -826
  316. package/esm/validators/base-validator.js.map +1 -1
  317. package/esm/validators/boolean-validator.d.ts +18 -15
  318. package/esm/validators/boolean-validator.d.ts.map +1 -1
  319. package/esm/validators/boolean-validator.js +46 -16
  320. package/esm/validators/boolean-validator.js.map +1 -1
  321. package/esm/validators/date-validator.d.ts +8 -3
  322. package/esm/validators/date-validator.d.ts.map +1 -1
  323. package/esm/validators/date-validator.js +176 -246
  324. package/esm/validators/date-validator.js.map +1 -1
  325. package/esm/validators/float-validator.js +1 -1
  326. package/esm/validators/float-validator.js.map +1 -1
  327. package/esm/validators/index.d.ts +5 -0
  328. package/esm/validators/index.d.ts.map +1 -1
  329. package/esm/validators/int-validator.js +1 -1
  330. package/esm/validators/int-validator.js.map +1 -1
  331. package/esm/validators/methods/equality-conditional-methods.d.ts +88 -0
  332. package/esm/validators/methods/equality-conditional-methods.d.ts.map +1 -0
  333. package/esm/validators/methods/equality-conditional-methods.js +118 -0
  334. package/esm/validators/methods/equality-conditional-methods.js.map +1 -0
  335. package/esm/validators/methods/forbidden-methods.d.ts +58 -0
  336. package/esm/validators/methods/forbidden-methods.d.ts.map +1 -0
  337. package/esm/validators/methods/forbidden-methods.js +122 -0
  338. package/esm/validators/methods/forbidden-methods.js.map +1 -0
  339. package/esm/validators/methods/present-methods.d.ts +102 -0
  340. package/esm/validators/methods/present-methods.d.ts.map +1 -0
  341. package/esm/validators/methods/present-methods.js +229 -0
  342. package/esm/validators/methods/present-methods.js.map +1 -0
  343. package/esm/validators/methods/required-methods.d.ts +174 -0
  344. package/esm/validators/methods/required-methods.d.ts.map +1 -0
  345. package/esm/validators/methods/required-methods.js +246 -0
  346. package/esm/validators/methods/required-methods.js.map +1 -0
  347. package/esm/validators/number-validator.d.ts +11 -13
  348. package/esm/validators/number-validator.d.ts.map +1 -1
  349. package/esm/validators/number-validator.js +60 -78
  350. package/esm/validators/number-validator.js.map +1 -1
  351. package/esm/validators/numeric-validator.js +1 -1
  352. package/esm/validators/numeric-validator.js.map +1 -1
  353. package/esm/validators/object-validator.d.ts +1 -0
  354. package/esm/validators/object-validator.d.ts.map +1 -1
  355. package/esm/validators/object-validator.js +21 -15
  356. package/esm/validators/object-validator.js.map +1 -1
  357. package/esm/validators/primitive-validator.d.ts +70 -0
  358. package/esm/validators/primitive-validator.d.ts.map +1 -0
  359. package/esm/validators/primitive-validator.js +80 -0
  360. package/esm/validators/primitive-validator.js.map +1 -0
  361. package/esm/validators/record-validator.d.ts +4 -0
  362. package/esm/validators/record-validator.d.ts.map +1 -1
  363. package/esm/validators/record-validator.js +8 -2
  364. package/esm/validators/record-validator.js.map +1 -1
  365. package/esm/validators/scalar-validator.d.ts +5 -15
  366. package/esm/validators/scalar-validator.d.ts.map +1 -1
  367. package/esm/validators/scalar-validator.js +20 -78
  368. package/esm/validators/scalar-validator.js.map +1 -1
  369. package/esm/validators/string-validator.d.ts +2 -18
  370. package/esm/validators/string-validator.d.ts.map +1 -1
  371. package/esm/validators/string-validator.js +71 -164
  372. package/esm/validators/string-validator.js.map +1 -1
  373. package/esm/validators/tuple-validator.d.ts.map +1 -1
  374. package/esm/validators/tuple-validator.js +2 -2
  375. package/esm/validators/tuple-validator.js.map +1 -1
  376. package/esm/validators/union-validator.d.ts.map +1 -1
  377. package/esm/validators/union-validator.js +1 -3
  378. package/esm/validators/union-validator.js.map +1 -1
  379. package/package.json +1 -1
@@ -1,14 +1,31 @@
1
- import type { ContextualSchemaRule, ContextualizedMutator, ContextualizedTransformer, Mutator, SchemaContext, SchemaRule, SchemaRuleOptions, SimpleTransformerCallback, TransformerCallback, ValidationAttributesList, ValidationResult, WhenRuleOptions } from "../types";
1
+ import type { ContextualSchemaRule, ContextualizedMutator, ContextualizedTransformer, Mutator, SchemaContext, SchemaRule, SchemaRuleOptions, SimpleTransformerCallback, TransformerCallback, ValidationAttributesList, ValidationResult } from "../types";
2
2
  /**
3
3
  * Base validator class - foundation for all validators
4
4
  */
5
5
  export declare class BaseValidator {
6
6
  rules: ContextualSchemaRule[];
7
7
  mutators: ContextualizedMutator[];
8
- protected defaultValue: any;
8
+ protected defaultValue: any | (() => any);
9
9
  protected description?: string;
10
10
  protected shouldOmit: boolean;
11
11
  protected isNullable: boolean;
12
+ protected isMutable: boolean;
13
+ /**
14
+ * Whether the field is optional.
15
+ * - false (default): field is required unless a requiredRule governs the condition.
16
+ * - true: field can be absent or empty — set by calling .optional().
17
+ *
18
+ * Also used as a TypeScript literal brand via the optional() return type.
19
+ */
20
+ isOptional: boolean;
21
+ /**
22
+ * The single required-condition rule for this field.
23
+ * - null: field uses strict default (always required when not optional).
24
+ * - set: the rule governs when the field is required (e.g., requiredIf).
25
+ *
26
+ * Stored separately from rules[] and prepended at validate() time.
27
+ */
28
+ requiredRule: ContextualSchemaRule | null;
12
29
  /**
13
30
  * Pipeline to transform the mutated/original data before returning it
14
31
  */
@@ -23,6 +40,20 @@ export declare class BaseValidator {
23
40
  * Attributed that will be always using the attribute translator
24
41
  */
25
42
  protected translatedAttributes: Record<string, string>;
43
+ /**
44
+ * Mark the validator as mutable
45
+ */
46
+ get mutable(): this;
47
+ /**
48
+ * Mark the validator as immutable
49
+ */
50
+ get immutable(): this;
51
+ /**
52
+ * Get the instance to apply changes to.
53
+ * By default (immutable), returns a clone so the original is unchanged.
54
+ * When `.mutable` is set, returns `this` to mutate in place.
55
+ */
56
+ protected get instance(): this;
26
57
  /**
27
58
  * Get the default value
28
59
  * Supports lazy evaluation via callbacks
@@ -55,6 +86,25 @@ export declare class BaseValidator {
55
86
  * ```
56
87
  */
57
88
  addTransformer(transform: TransformerCallback, options?: any): this;
89
+ /**
90
+ * Add transformer with optional options
91
+ *
92
+ * @param transform - The transformer callback function
93
+ * @param options - Optional options to pass to the transformer
94
+ *
95
+ * @example
96
+ * ```ts
97
+ * // Without options
98
+ * v.date().addTransformer(data => data.toISOString())
99
+ *
100
+ * // With options
101
+ * v.date().addTransformer(
102
+ * (data, { options }) => dayjs(data).format(options.format),
103
+ * { format: 'YYYY-MM-DD' }
104
+ * )
105
+ * ```
106
+ */
107
+ addMutableTransformer(transform: TransformerCallback, options?: any): void;
58
108
  /**
59
109
  * Transform the output value - simple one-time transformation
60
110
  *
@@ -211,29 +261,36 @@ export declare class BaseValidator {
211
261
  */
212
262
  isOmitted(): boolean;
213
263
  /**
214
- * Value must be equal to the given value
215
- */
216
- equal(value: any, errorMessage?: string): this;
217
- /**
218
- * Value must be the same as another field's value
219
- */
220
- sameAs(field: string, errorMessage?: string): this;
221
- /**
222
- * Value must be the same as another sibling field's value
264
+ * Add rule to the validator
223
265
  */
224
- sameAsSibling(field: string, errorMessage?: string): this;
266
+ addRule<T extends SchemaRuleOptions = SchemaRuleOptions>(rule: SchemaRule<T>, errorMessage?: string, options?: T): this;
225
267
  /**
226
- * Value must be different from another field's value
268
+ * Set the required-condition rule for this field.
269
+ *
270
+ * Unlike addRule(), this does NOT push to rules[]. The rule is stored in the
271
+ * dedicated `requiredRule` slot and is prepended to the validation pipeline
272
+ * at runtime. Only one required rule can be active per field — this replaces
273
+ * any previously set required rule.
274
+ *
275
+ * Also marks the field as not optional (isOptional = false).
276
+ *
277
+ * @example
278
+ * ```ts
279
+ * // Used internally by required(), requiredIf(), requiredWith(), etc.
280
+ * BaseValidator.prototype.required = function(msg) {
281
+ * return this.setRequiredRule(requiredRule, msg);
282
+ * };
283
+ * ```
227
284
  */
228
- differentFrom(field: string, errorMessage?: string): this;
285
+ setRequiredRule<T extends SchemaRuleOptions = SchemaRuleOptions>(rule: SchemaRule<T>, errorMessage?: string, options?: T): this;
229
286
  /**
230
- * Value must be different from another sibling field's value
287
+ * Add mutable rule
231
288
  */
232
- differentFromSibling(field: string, errorMessage?: string): this;
289
+ addMutableRule<T extends SchemaRuleOptions = SchemaRuleOptions>(rule: SchemaRule<T>, errorMessage?: string, options?: T): ContextualSchemaRule<T>;
233
290
  /**
234
- * Add rule to the validator
291
+ * Create new rule
235
292
  */
236
- addRule<T extends SchemaRuleOptions = SchemaRuleOptions>(rule: SchemaRule<T>, errorMessage?: string): ContextualSchemaRule<T>;
293
+ protected createRule<T extends SchemaRuleOptions = SchemaRuleOptions>(rule: SchemaRule<T>, errorMessage?: string, options?: T): ContextualSchemaRule<T>;
237
294
  /**
238
295
  * Use a custom or pre-built validation rule
239
296
  *
@@ -268,364 +325,17 @@ export declare class BaseValidator {
268
325
  */
269
326
  addMutator(mutator: Mutator, options?: any): this;
270
327
  /**
271
- * Set default value for the field
328
+ * Add mutable mutator
272
329
  */
273
- default(value: any): this;
330
+ addMutableMutator(mutator: Mutator, options?: any): void;
274
331
  /**
275
- * This value must be present and has a value
276
- */
277
- required(errorMessage?: string): this;
278
- /**
279
- * Value must be present but not necessarily has a value
280
- */
281
- present(errorMessage?: string): this;
282
- /**
283
- * Mark the field as optional, so pass it if it has no value or has a value
284
- * Because this is the default behavior, this method is just syntactic sugar
285
- */
286
- optional(): this;
287
- /**
288
- * Value is required if another field exists
289
- */
290
- requiredWith(field: string, errorMessage?: string): this;
291
- /**
292
- * Value is required if another sibling field exists
293
- */
294
- requiredWithSibling(field: string, errorMessage?: string): this;
295
- /**
296
- * Value is required if another field is missing
297
- */
298
- requiredWithout(field: string, errorMessage?: string): this;
299
- /**
300
- * Value is required if another sibling field is missing
301
- */
302
- requiredWithoutSibling(field: string, errorMessage?: string): this;
303
- /**
304
- * Value is required if another field equals a specific value
305
- */
306
- requiredIf(field: string, value: any, errorMessage?: string): this;
307
- /**
308
- * Value is required if another sibling field equals a specific value
309
- */
310
- requiredIfSibling(field: string, value: any, errorMessage?: string): this;
311
- /**
312
- * Value is required unless another field equals a specific value
313
- */
314
- requiredUnless(field: string, value: any, errorMessage?: string): this;
315
- /**
316
- * Value is required unless another sibling field equals a specific value
317
- */
318
- requiredUnlessSibling(field: string, value: any, errorMessage?: string): this;
319
- /**
320
- * Value is required if another field is empty
321
- */
322
- requiredIfEmpty(field: string, errorMessage?: string): this;
323
- /**
324
- * Value is required if another sibling field is empty
325
- */
326
- requiredIfEmptySibling(field: string, errorMessage?: string): this;
327
- /**
328
- * Value is required if another field is not empty
329
- */
330
- requiredIfNotEmpty(field: string, errorMessage?: string): this;
331
- /**
332
- * Value is required if another sibling field is not empty
333
- */
334
- requiredIfNotEmptySibling(field: string, errorMessage?: string): this;
335
- /**
336
- * Value is required if ALL specified fields are empty
337
- */
338
- requiredIfAllEmpty(fields: string[], errorMessage?: string): this;
339
- /**
340
- * Value is required if ALL specified sibling fields are empty
341
- */
342
- requiredIfAllEmptySiblings(fields: string[], errorMessage?: string): this;
343
- /**
344
- * Value is required if ANY of the specified fields is empty
345
- */
346
- requiredIfAnyEmpty(fields: string[], errorMessage?: string): this;
347
- /**
348
- * Value is required if ANY of the specified sibling fields is empty
349
- */
350
- requiredIfAnyEmptySiblings(fields: string[], errorMessage?: string): this;
351
- /**
352
- * Value is required if ALL specified fields are NOT empty
353
- */
354
- requiredIfAllNotEmpty(fields: string[], errorMessage?: string): this;
355
- /**
356
- * Value is required if ALL specified sibling fields are NOT empty
357
- */
358
- requiredIfAllNotEmptySiblings(fields: string[], errorMessage?: string): this;
359
- /**
360
- * Value is required if ANY of the specified fields is NOT empty
361
- */
362
- requiredIfAnyNotEmpty(fields: string[], errorMessage?: string): this;
363
- /**
364
- * Value is required if ANY of the specified sibling fields is NOT empty
365
- */
366
- requiredIfAnyNotEmptySiblings(fields: string[], errorMessage?: string): this;
367
- /**
368
- * Value is required if another field's value is in the given array
369
- */
370
- requiredIfIn(field: string, values: any[], errorMessage?: string): this;
371
- /**
372
- * Value is required if another sibling field's value is in the given array
373
- */
374
- requiredIfInSibling(field: string, values: any[], errorMessage?: string): this;
375
- /**
376
- * Value is required if another field's value is NOT in the given array
377
- */
378
- requiredIfNotIn(field: string, values: any[], errorMessage?: string): this;
379
- /**
380
- * Value is required if another sibling field's value is NOT in the given array
381
- */
382
- requiredIfNotInSibling(field: string, values: any[], errorMessage?: string): this;
383
- /**
384
- * Value is required if all specified fields exist
385
- */
386
- requiredWithAll(fields: string[], errorMessage?: string): this;
387
- /**
388
- * Value is required if all specified sibling fields exist
389
- */
390
- requiredWithAllSiblings(fields: string[], errorMessage?: string): this;
391
- /**
392
- * Value is required if all specified fields are missing
393
- */
394
- requiredWithoutAll(fields: string[], errorMessage?: string): this;
395
- /**
396
- * Value is required if all specified sibling fields are missing
397
- */
398
- requiredWithoutAllSiblings(fields: string[], errorMessage?: string): this;
399
- /**
400
- * Value is required if any of the specified fields exists
401
- */
402
- requiredWithAny(fields: string[], errorMessage?: string): this;
403
- /**
404
- * Value is required if any of the specified sibling fields exists
405
- */
406
- requiredWithAnySiblings(fields: string[], errorMessage?: string): this;
407
- /**
408
- * Value is required if any of the specified fields is missing
409
- */
410
- requiredWithoutAny(fields: string[], errorMessage?: string): this;
411
- /**
412
- * Value is required if any of the specified sibling fields is missing
413
- */
414
- requiredWithoutAnySiblings(fields: string[], errorMessage?: string): this;
415
- /**
416
- * Field must be present if another field exists
417
- */
418
- presentWith(field: string, errorMessage?: string): this;
419
- /**
420
- * Field must be present if another sibling field exists
421
- */
422
- presentWithSibling(field: string, errorMessage?: string): this;
423
- /**
424
- * Field must be present if another field is missing
425
- */
426
- presentWithout(field: string, errorMessage?: string): this;
427
- /**
428
- * Field must be present if another sibling field is missing
429
- */
430
- presentWithoutSibling(field: string, errorMessage?: string): this;
431
- /**
432
- * Field must be present if another field equals a specific value
433
- */
434
- presentIf(field: string, value: any, errorMessage?: string): this;
435
- /**
436
- * Field must be present if another sibling field equals a specific value
437
- */
438
- presentIfSibling(field: string, value: any, errorMessage?: string): this;
439
- /**
440
- * Field must be present unless another field equals a specific value
441
- */
442
- presentUnless(field: string, value: any, errorMessage?: string): this;
443
- /**
444
- * Field must be present unless another sibling field equals a specific value
445
- */
446
- presentUnlessSibling(field: string, value: any, errorMessage?: string): this;
447
- /**
448
- * Field must be present if another field is empty
449
- */
450
- presentIfEmpty(field: string, errorMessage?: string): this;
451
- /**
452
- * Field must be present if another sibling field is empty
453
- */
454
- presentIfEmptySibling(field: string, errorMessage?: string): this;
455
- /**
456
- * Field must be present if another field is not empty
457
- */
458
- presentIfNotEmpty(field: string, errorMessage?: string): this;
459
- /**
460
- * Field must be present if another sibling field is not empty
461
- */
462
- presentIfNotEmptySibling(field: string, errorMessage?: string): this;
463
- /**
464
- * Field must be present if another field's value is in the given array
465
- */
466
- presentIfIn(field: string, values: any[], errorMessage?: string): this;
467
- /**
468
- * Field must be present if another sibling field's value is in the given array
469
- */
470
- presentIfInSibling(field: string, values: any[], errorMessage?: string): this;
471
- /**
472
- * Field must be present if another field's value is NOT in the given array
473
- */
474
- presentIfNotIn(field: string, values: any[], errorMessage?: string): this;
475
- /**
476
- * Field must be present if another sibling field's value is NOT in the given array
477
- */
478
- presentIfNotInSibling(field: string, values: any[], errorMessage?: string): this;
479
- /**
480
- * Field must be present if all specified fields exist
481
- */
482
- presentWithAll(fields: string[], errorMessage?: string): this;
483
- /**
484
- * Field must be present if all specified sibling fields exist
485
- */
486
- presentWithAllSiblings(fields: string[], errorMessage?: string): this;
487
- /**
488
- * Field must be present if all specified fields are missing
489
- */
490
- presentWithoutAll(fields: string[], errorMessage?: string): this;
491
- /**
492
- * Field must be present if all specified sibling fields are missing
493
- */
494
- presentWithoutAllSiblings(fields: string[], errorMessage?: string): this;
495
- /**
496
- * Field must be present if any of the specified fields exists
497
- */
498
- presentWithAny(fields: string[], errorMessage?: string): this;
499
- /**
500
- * Field must be present if any of the specified sibling fields exists
501
- */
502
- presentWithAnySiblings(fields: string[], errorMessage?: string): this;
503
- /**
504
- * Field must be present if any of the specified fields is missing
505
- */
506
- presentWithoutAny(fields: string[], errorMessage?: string): this;
507
- /**
508
- * Field must be present if any of the specified sibling fields is missing
332
+ * Set default value for the field
509
333
  */
510
- presentWithoutAnySiblings(fields: string[], errorMessage?: string): this;
334
+ default(value: any): this;
511
335
  /**
512
336
  * Mutate the data
513
337
  */
514
338
  mutate(data: any, context: SchemaContext): Promise<any>;
515
- /**
516
- * Value is forbidden to be present
517
- */
518
- forbidden(errorMessage?: string): this;
519
- /**
520
- * Value is forbidden if another field equals a specific value (global scope)
521
- */
522
- forbiddenIf(field: string, value: any, errorMessage?: string): this;
523
- /**
524
- * Value is forbidden if another field equals a specific value (sibling scope)
525
- */
526
- forbiddenIfSibling(field: string, value: any, errorMessage?: string): this;
527
- /**
528
- * Value is forbidden if another field does NOT equal a specific value (global scope)
529
- */
530
- forbiddenIfNot(field: string, value: any, errorMessage?: string): this;
531
- /**
532
- * Value is forbidden if another field does NOT equal a specific value (sibling scope)
533
- */
534
- forbiddenIfNotSibling(field: string, value: any, errorMessage?: string): this;
535
- /**
536
- * Value is forbidden if another field is empty (global scope)
537
- */
538
- forbiddenIfEmpty(field: string, errorMessage?: string): this;
539
- /**
540
- * Value is forbidden if another field is empty (sibling scope)
541
- */
542
- forbiddenIfEmptySibling(field: string, errorMessage?: string): this;
543
- /**
544
- * Value is forbidden if another field is not empty (global scope)
545
- */
546
- forbiddenIfNotEmpty(field: string, errorMessage?: string): this;
547
- /**
548
- * Value is forbidden if another field is not empty (sibling scope)
549
- */
550
- forbiddenIfNotEmptySibling(field: string, errorMessage?: string): this;
551
- /**
552
- * Value is forbidden if another field's value is in the given array (global scope)
553
- */
554
- forbiddenIfIn(field: string, values: any[], errorMessage?: string): this;
555
- /**
556
- * Value is forbidden if another field's value is in the given array (sibling scope)
557
- */
558
- forbiddenIfInSibling(field: string, values: any[], errorMessage?: string): this;
559
- /**
560
- * Value is forbidden if another field's value is NOT in the given array (global scope)
561
- */
562
- forbiddenIfNotIn(field: string, values: any[], errorMessage?: string): this;
563
- /**
564
- * Value is forbidden if another field's value is NOT in the given array (sibling scope)
565
- */
566
- forbiddenIfNotInSibling(field: string, values: any[], errorMessage?: string): this;
567
- /**
568
- * Apply different validation rules based on another field's value (global scope)
569
- *
570
- * Use this when you need to apply completely different validators
571
- * based on another field's value (not just required/optional).
572
- *
573
- * @param field - Field name to check (can be nested with dot notation)
574
- * @param options - Validation options per field value
575
- *
576
- * @example
577
- * ```ts
578
- * // Different allowed values based on user type
579
- * v.object({
580
- * userType: v.string().in(['admin', 'user']),
581
- * role: v.string().when('userType', {
582
- * is: {
583
- * admin: v.string().in(['super', 'moderator']),
584
- * user: v.string().in(['member', 'guest'])
585
- * },
586
- * otherwise: v.string().optional()
587
- * })
588
- * })
589
- *
590
- * // Different validation rules based on type
591
- * v.object({
592
- * contactType: v.string().in(['email', 'phone']),
593
- * contact: v.string().when('contactType', {
594
- * is: {
595
- * email: v.string().email(),
596
- * phone: v.string().pattern(/^\d{10}$/)
597
- * }
598
- * })
599
- * })
600
- * ```
601
- * @category Conditional Validation
602
- */
603
- when(field: string, options: Omit<WhenRuleOptions, "field" | "scope">): this;
604
- /**
605
- * Apply different validation rules based on sibling field's value
606
- *
607
- * Use this for nested objects where you need to check a field
608
- * within the same parent object.
609
- *
610
- * @param siblingField - Sibling field name to check
611
- * @param options - Validation options per field value
612
- *
613
- * @example
614
- * ```ts
615
- * // Array of users with role-based permissions
616
- * v.array(v.object({
617
- * userType: v.string().in(['admin', 'user']),
618
- * permissions: v.string().whenSibling('userType', {
619
- * is: {
620
- * admin: v.string().in(['read', 'write', 'delete']),
621
- * user: v.string().in(['read'])
622
- * }
623
- * })
624
- * }))
625
- * ```
626
- * @category Conditional Validation
627
- */
628
- whenSibling(siblingField: string, options: Omit<WhenRuleOptions, "field" | "scope">): this;
629
339
  /**
630
340
  * Set the label for the validator that will be matching the :input attribute
631
341
  */
@@ -1 +1 @@
1
- {"version":3,"file":"base-validator.d.ts","sourceRoot":"","sources":["../../src/validators/base-validator.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,qBAAa,aAAa;IACjB,KAAK,EAAE,oBAAoB,EAAE,CAAM;IACnC,QAAQ,EAAE,qBAAqB,EAAE,CAAM;IAC9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