@astral/validations 4.24.2 → 4.24.4

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 (208) hide show
  1. package/array/array.d.ts +1 -1
  2. package/boolean/boolean.d.ts +1 -1
  3. package/containsPunctuationMarks/containsPunctuationMarks.js +1 -1
  4. package/core/compose/compose.d.ts +1 -1
  5. package/core/composeAsync/composeAsync.d.ts +1 -1
  6. package/core/context/createContext/createContext.d.ts +1 -1
  7. package/core/errors/ArrayError/ArrayError.d.ts +1 -1
  8. package/core/errors/ErrorMap/ErrorMap.d.ts +1 -1
  9. package/core/errors/ErrorMap/index.d.ts +1 -1
  10. package/core/errors/ErrorMap/index.js +1 -1
  11. package/core/errors/SimpleError/SimpleError.d.ts +5 -5
  12. package/core/errors/SimpleError/createSimpleError/createSimpleError.d.ts +1 -1
  13. package/core/errors/SimpleError/index.d.ts +1 -1
  14. package/core/errors/SimpleError/index.js +1 -1
  15. package/core/errors/index.d.ts +3 -3
  16. package/core/errors/index.js +3 -3
  17. package/core/errors/types.d.ts +1 -1
  18. package/core/guard/createGuard/createGuard.d.ts +10 -10
  19. package/core/guard/createGuard/createGuard.js +1 -1
  20. package/core/index.d.ts +4 -4
  21. package/core/index.js +4 -4
  22. package/core/logger/logger.js +1 -0
  23. package/core/rule/callAsyncRule/callAsyncRule.d.ts +2 -2
  24. package/core/rule/callRule/callRule.d.ts +2 -2
  25. package/core/rule/createRule/createRule.d.ts +5 -5
  26. package/core/rule/index.d.ts +3 -3
  27. package/core/rule/index.js +3 -3
  28. package/core/rule/required/index.d.ts +1 -1
  29. package/core/rule/required/index.js +1 -1
  30. package/core/rule/required/required.js +3 -1
  31. package/core/types.d.ts +1 -1
  32. package/core/utils/index.d.ts +1 -1
  33. package/core/utils/index.js +1 -1
  34. package/core/utils/isHasConsecutiveChars/isHasConsecutiveChars.js +1 -1
  35. package/core/utils/isStringOfZeros/isStringOfZeros.js +1 -1
  36. package/date/date.d.ts +1 -1
  37. package/deepPartial/deepPartial.d.ts +2 -2
  38. package/email/email.js +3 -1
  39. package/emailOrPhone/constants.js +1 -1
  40. package/emailOrPhone/emailOrPhone.js +4 -5
  41. package/index.d.ts +48 -48
  42. package/index.js +48 -48
  43. package/innFL/index.d.ts +1 -1
  44. package/innFL/index.js +1 -1
  45. package/innIP/index.d.ts +1 -1
  46. package/innIP/index.js +1 -1
  47. package/innTwelveSymbols/index.d.ts +1 -1
  48. package/innTwelveSymbols/index.js +1 -1
  49. package/innUL/index.d.ts +1 -1
  50. package/innUL/index.js +1 -1
  51. package/length/index.d.ts +1 -1
  52. package/length/index.js +1 -1
  53. package/max/index.d.ts +1 -1
  54. package/max/index.js +1 -1
  55. package/max/max.d.ts +6 -6
  56. package/max/max.js +1 -0
  57. package/min/index.d.ts +1 -1
  58. package/min/index.js +1 -1
  59. package/min/min.d.ts +6 -6
  60. package/min/min.js +1 -0
  61. package/minYearsOld/index.d.ts +1 -1
  62. package/minYearsOld/index.js +1 -1
  63. package/minYearsOld/minYearsOld.d.ts +1 -1
  64. package/mobilePhone/index.d.ts +1 -1
  65. package/mobilePhone/index.js +1 -1
  66. package/node/array/array.d.ts +1 -1
  67. package/node/boolean/boolean.d.ts +1 -1
  68. package/node/containsPunctuationMarks/containsPunctuationMarks.js +1 -1
  69. package/node/core/compose/compose.d.ts +1 -1
  70. package/node/core/composeAsync/composeAsync.d.ts +1 -1
  71. package/node/core/context/createContext/createContext.d.ts +1 -1
  72. package/node/core/errors/ArrayError/ArrayError.d.ts +1 -1
  73. package/node/core/errors/ErrorMap/ErrorMap.d.ts +1 -1
  74. package/node/core/errors/ErrorMap/index.d.ts +1 -1
  75. package/node/core/errors/ErrorMap/index.js +1 -1
  76. package/node/core/errors/SimpleError/SimpleError.d.ts +5 -5
  77. package/node/core/errors/SimpleError/createSimpleError/createSimpleError.d.ts +1 -1
  78. package/node/core/errors/SimpleError/index.d.ts +1 -1
  79. package/node/core/errors/SimpleError/index.js +1 -1
  80. package/node/core/errors/index.d.ts +3 -3
  81. package/node/core/errors/index.js +3 -3
  82. package/node/core/errors/types.d.ts +1 -1
  83. package/node/core/guard/createGuard/createGuard.d.ts +10 -10
  84. package/node/core/guard/createGuard/createGuard.js +1 -1
  85. package/node/core/index.d.ts +4 -4
  86. package/node/core/index.js +4 -4
  87. package/node/core/logger/logger.js +1 -0
  88. package/node/core/rule/callAsyncRule/callAsyncRule.d.ts +2 -2
  89. package/node/core/rule/callRule/callRule.d.ts +2 -2
  90. package/node/core/rule/createRule/createRule.d.ts +5 -5
  91. package/node/core/rule/index.d.ts +3 -3
  92. package/node/core/rule/index.js +3 -3
  93. package/node/core/rule/required/index.d.ts +1 -1
  94. package/node/core/rule/required/index.js +1 -1
  95. package/node/core/rule/required/required.js +3 -1
  96. package/node/core/types.d.ts +1 -1
  97. package/node/core/utils/index.d.ts +1 -1
  98. package/node/core/utils/index.js +1 -1
  99. package/node/core/utils/isHasConsecutiveChars/isHasConsecutiveChars.js +1 -1
  100. package/node/core/utils/isStringOfZeros/isStringOfZeros.js +1 -1
  101. package/node/date/date.d.ts +1 -1
  102. package/node/deepPartial/deepPartial.d.ts +2 -2
  103. package/node/email/email.js +3 -1
  104. package/node/emailOrPhone/emailOrPhone.js +4 -5
  105. package/node/index.d.ts +48 -48
  106. package/node/index.js +136 -136
  107. package/node/innFL/index.d.ts +1 -1
  108. package/node/innFL/index.js +1 -1
  109. package/node/innIP/index.d.ts +1 -1
  110. package/node/innIP/index.js +1 -1
  111. package/node/innTwelveSymbols/index.d.ts +1 -1
  112. package/node/innTwelveSymbols/index.js +1 -1
  113. package/node/innUL/index.d.ts +1 -1
  114. package/node/innUL/index.js +1 -1
  115. package/node/length/index.d.ts +1 -1
  116. package/node/length/index.js +1 -1
  117. package/node/max/index.d.ts +1 -1
  118. package/node/max/index.js +1 -1
  119. package/node/max/max.d.ts +6 -6
  120. package/node/max/max.js +1 -0
  121. package/node/min/index.d.ts +1 -1
  122. package/node/min/index.js +1 -1
  123. package/node/min/min.d.ts +6 -6
  124. package/node/min/min.js +1 -0
  125. package/node/minYearsOld/index.d.ts +1 -1
  126. package/node/minYearsOld/index.js +1 -1
  127. package/node/minYearsOld/minYearsOld.d.ts +1 -1
  128. package/node/mobilePhone/index.d.ts +1 -1
  129. package/node/mobilePhone/index.js +1 -1
  130. package/node/number/index.d.ts +1 -1
  131. package/node/number/index.js +1 -1
  132. package/node/number/number.d.ts +1 -1
  133. package/node/object/index.d.ts +1 -1
  134. package/node/object/index.js +1 -1
  135. package/node/object/object.d.ts +6 -6
  136. package/node/object/object.js +6 -4
  137. package/node/object/objectAsync/objectAsync.d.ts +9 -9
  138. package/node/object/objectAsync/objectAsync.js +7 -5
  139. package/node/ogrnIP/index.d.ts +1 -1
  140. package/node/ogrnIP/index.js +1 -1
  141. package/node/ogrnUL/index.d.ts +1 -1
  142. package/node/ogrnUL/index.js +1 -1
  143. package/node/or/or.js +1 -1
  144. package/node/partial/partial.d.ts +1 -1
  145. package/node/passportNumber/passportNumber.js +1 -1
  146. package/node/pattern/index.d.ts +1 -1
  147. package/node/pattern/index.js +1 -1
  148. package/node/rangeDate/rangeDate.d.ts +1 -1
  149. package/node/rangeDate/rangeDate.js +9 -3
  150. package/node/rangeDateMinMax/rangeDateMinMax.js +3 -1
  151. package/node/snils/index.d.ts +1 -1
  152. package/node/snils/index.js +1 -1
  153. package/node/snils/snils.js +3 -1
  154. package/node/string/index.d.ts +1 -1
  155. package/node/string/index.js +1 -1
  156. package/node/string/string.d.ts +1 -1
  157. package/node/string/stringAsync/stringAsync.d.ts +1 -1
  158. package/node/string/stringAsync/stringAsync.js +1 -1
  159. package/node/toPlainError/toPlainError.js +1 -4
  160. package/node/toPlainError/utils/index.d.ts +1 -1
  161. package/node/toPlainError/utils/index.js +1 -1
  162. package/node/uploadedFile/index.d.ts +1 -1
  163. package/node/uploadedFile/index.js +1 -1
  164. package/node/uploadedFile/uploadedFile.d.ts +1 -1
  165. package/node/uploadedFileList/index.d.ts +1 -1
  166. package/node/uploadedFileList/index.js +1 -1
  167. package/node/uploadedFileList/uploadedFileList.d.ts +1 -1
  168. package/node/uploadedFileList/uploadedFileList.js +1 -1
  169. package/number/index.d.ts +1 -1
  170. package/number/index.js +1 -1
  171. package/number/number.d.ts +1 -1
  172. package/object/index.d.ts +1 -1
  173. package/object/index.js +1 -1
  174. package/object/object.d.ts +6 -6
  175. package/object/object.js +6 -4
  176. package/object/objectAsync/objectAsync.d.ts +9 -9
  177. package/object/objectAsync/objectAsync.js +7 -5
  178. package/ogrnIP/index.d.ts +1 -1
  179. package/ogrnIP/index.js +1 -1
  180. package/ogrnUL/index.d.ts +1 -1
  181. package/ogrnUL/index.js +1 -1
  182. package/or/or.js +1 -1
  183. package/package.json +1 -1
  184. package/partial/partial.d.ts +1 -1
  185. package/passportNumber/passportNumber.js +1 -1
  186. package/pattern/index.d.ts +1 -1
  187. package/pattern/index.js +1 -1
  188. package/rangeDate/rangeDate.d.ts +1 -1
  189. package/rangeDate/rangeDate.js +9 -3
  190. package/rangeDateMinMax/rangeDateMinMax.js +3 -1
  191. package/snils/index.d.ts +1 -1
  192. package/snils/index.js +1 -1
  193. package/snils/snils.js +3 -1
  194. package/string/index.d.ts +1 -1
  195. package/string/index.js +1 -1
  196. package/string/string.d.ts +1 -1
  197. package/string/stringAsync/stringAsync.d.ts +1 -1
  198. package/string/stringAsync/stringAsync.js +1 -1
  199. package/toPlainError/toPlainError.js +1 -4
  200. package/toPlainError/utils/index.d.ts +1 -1
  201. package/toPlainError/utils/index.js +1 -1
  202. package/uploadedFile/index.d.ts +1 -1
  203. package/uploadedFile/index.js +1 -1
  204. package/uploadedFile/uploadedFile.d.ts +1 -1
  205. package/uploadedFileList/index.d.ts +1 -1
  206. package/uploadedFileList/index.js +1 -1
  207. package/uploadedFileList/uploadedFileList.d.ts +1 -1
  208. package/uploadedFileList/uploadedFileList.js +1 -1
@@ -1,19 +1,19 @@
1
- import { type ValidationResult, type ValidationTypes } from '../../types';
2
1
  import { type ValidationContext } from '../../context';
2
+ import { type ValidationResult, type ValidationTypes } from '../../types';
3
3
  import { type IndependentValidationRule } from '../types';
4
4
  /**
5
5
  * Единые параметры для всех правил
6
6
  */
7
- export type CommonRuleParams<ValidationType extends ValidationTypes> = {
7
+ export type CommonRuleParams<TValidationType extends ValidationTypes> = {
8
8
  /**
9
9
  * Функция, позволяющая для каждого правила указать исключение
10
10
  */
11
- exclude?: (value: ValidationType, ctx: ValidationContext) => boolean;
11
+ exclude?: (value: TValidationType, ctx: ValidationContext) => boolean;
12
12
  };
13
13
  /**
14
14
  * Функция, которая позволяет определять частную логику для guard
15
15
  */
16
- type RuleExecutor<ValidationType extends ValidationTypes, TLastSchemaValues extends Record<string, unknown>> = (value: ValidationType, ctx: ValidationContext<TLastSchemaValues>) => ValidationResult;
16
+ type RuleExecutor<TValidationType extends ValidationTypes, TLastSchemaValues extends Record<string, unknown>> = (value: TValidationType, ctx: ValidationContext<TLastSchemaValues>) => ValidationResult;
17
17
  /**
18
18
  * Создает правила валидации, которые можно использовать внутри guard или по отдельности
19
19
  * @param executor - функция, которая позволяет определять частную логику для guard
@@ -30,5 +30,5 @@ type RuleExecutor<ValidationType extends ValidationTypes, TLastSchemaValues exte
30
30
  * }, params);
31
31
  * ```
32
32
  */
33
- export declare const createRule: <ValidationType extends ValidationTypes, TLastSchemaValues extends Record<string, unknown> = {}>(executor: RuleExecutor<ValidationType, TLastSchemaValues>, commonParams?: CommonRuleParams<ValidationType>) => (value: Parameters<IndependentValidationRule<ValidationType, TLastSchemaValues>>[0], prevCtx?: Parameters<IndependentValidationRule<ValidationType, TLastSchemaValues>>[1]) => ReturnType<IndependentValidationRule<ValidationType, TLastSchemaValues>>;
33
+ export declare const createRule: <TValidationType extends ValidationTypes, TLastSchemaValues extends Record<string, unknown> = {}>(executor: RuleExecutor<TValidationType, TLastSchemaValues>, commonParams?: CommonRuleParams<TValidationType>) => (value: Parameters<IndependentValidationRule<TValidationType, TLastSchemaValues>>[0], prevCtx?: Parameters<IndependentValidationRule<TValidationType, TLastSchemaValues>>[1]) => ReturnType<IndependentValidationRule<TValidationType, TLastSchemaValues>>;
34
34
  export {};
@@ -1,5 +1,5 @@
1
+ export * from './callAsyncRule';
2
+ export * from './callRule';
1
3
  export * from './createRule';
2
- export * from './types';
3
4
  export * from './required';
4
- export * from './callRule';
5
- export * from './callAsyncRule';
5
+ export * from './types';
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./callAsyncRule"), exports);
18
+ __exportStar(require("./callRule"), exports);
17
19
  __exportStar(require("./createRule"), exports);
18
- __exportStar(require("./types"), exports);
19
20
  __exportStar(require("./required"), exports);
20
- __exportStar(require("./callRule"), exports);
21
- __exportStar(require("./callAsyncRule"), exports);
21
+ __exportStar(require("./types"), exports);
@@ -1,2 +1,2 @@
1
- export * from './required';
2
1
  export * from './constants';
2
+ export * from './required';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./required"), exports);
18
17
  __exportStar(require("./constants"), exports);
18
+ __exportStar(require("./required"), exports);
@@ -7,7 +7,9 @@ const constants_1 = require("./constants");
7
7
  * Проверяет value на пустоту. Если значение пустое, то возвращает ошибку.
8
8
  * Правило универсально для всех типов данных
9
9
  */
10
- const required = ({ message, } = {}) => (0, createRule_1.createRule)((value, ctx) => {
10
+ const required = ({ message, } = {}) =>
11
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <>
12
+ (0, createRule_1.createRule)((value, ctx) => {
11
13
  const createRequiredError = () => ctx.createError(Object.assign(Object.assign({}, constants_1.REQUIRED_ERROR_INFO), { message: message || constants_1.REQUIRED_ERROR_INFO.message }));
12
14
  if (value === null) {
13
15
  return createRequiredError();
@@ -6,4 +6,4 @@ export type ValidationResult = ValidationError | undefined;
6
6
  /**
7
7
  * Доступные для валидации типы value
8
8
  */
9
- export type ValidationTypes = unknown | object | string | number | Date | Array<unknown>;
9
+ export type ValidationTypes = unknown | object | string | number | Date | unknown[];
@@ -5,5 +5,5 @@ export * from './isNoDoubleZeroStart';
5
5
  export * from './isStartsWithAndEndsWithLetter';
6
6
  export * from './isStringOfZeros';
7
7
  export * from './isValidFullNameLength';
8
- export * from './resetTime';
9
8
  export * from './removeNonDigits';
9
+ export * from './resetTime';
@@ -21,5 +21,5 @@ __exportStar(require("./isNoDoubleZeroStart"), exports);
21
21
  __exportStar(require("./isStartsWithAndEndsWithLetter"), exports);
22
22
  __exportStar(require("./isStringOfZeros"), exports);
23
23
  __exportStar(require("./isValidFullNameLength"), exports);
24
- __exportStar(require("./resetTime"), exports);
25
24
  __exportStar(require("./removeNonDigits"), exports);
25
+ __exportStar(require("./resetTime"), exports);
@@ -4,5 +4,5 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.isHasConsecutiveChars = void 0;
7
- const isHasConsecutiveChars = (value) => /([`~!@#$%^&*()\-_=+[{\]}\|;:'",<.>/?\s])([`~!@#$%^&*()\-_=+[{\]}\|;:'",<.>/?\s])/.test(value);
7
+ const isHasConsecutiveChars = (value) => /([`~!@#$%^&*()\-_=+[{\]}|;:'",<.>/?\s])([`~!@#$%^&*()\-_=+[{\]}|;:'",<.>/?\s])/.test(value);
8
8
  exports.isHasConsecutiveChars = isHasConsecutiveChars;
@@ -6,7 +6,7 @@ exports.isStringOfZeros = void 0;
6
6
  */
7
7
  const isStringOfZeros = (value) => {
8
8
  if (value) {
9
- return !Boolean(value.replace(/0/g, ''));
9
+ return !value.replace(/0/g, '');
10
10
  }
11
11
  return false;
12
12
  };
@@ -15,5 +15,5 @@ type AdditionalDefOptions = {
15
15
  * validate(new Date('22.22.2022'));
16
16
  * ```
17
17
  */
18
- export declare const date: <TLastSchemaValues extends Record<string, unknown>>(...rules: ValidationRule<Date, TLastSchemaValues>[]) => import("../core").Guard<TLastSchemaValues, AdditionalDefOptions>;
18
+ export declare const date: <TLastSchemaValues extends Record<string, unknown>>(...rules: ValidationRule<Date, TLastSchemaValues>[]) => import("../core").IGuard<TLastSchemaValues, AdditionalDefOptions>;
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { type Guard } from '../core';
1
+ import { type IGuard } from '../core';
2
2
  /**
3
3
  * Делает partial все object в схеме, независимо от уровня вложенности правил
4
4
  * @param guard - любой guard
@@ -18,4 +18,4 @@ import { type Guard } from '../core';
18
18
  * const result = validate({ info: { info: {} } });
19
19
  * ```
20
20
  */
21
- export declare const deepPartial: <TLastSchemaValues extends Record<string, unknown>>(guard: Guard<TLastSchemaValues>) => (value: unknown, prevCtx?: import("../core").ValidationContext<TLastSchemaValues> | undefined) => ReturnType<import("../core").IndependentValidationRule<unknown, TLastSchemaValues>>;
21
+ export declare const deepPartial: <TLastSchemaValues extends Record<string, unknown>>(guard: IGuard<TLastSchemaValues>) => (value: unknown, prevCtx?: import("../core").ValidationContext<TLastSchemaValues> | undefined) => ReturnType<import("../core").IndependentValidationRule<unknown, TLastSchemaValues>>;
@@ -13,7 +13,9 @@ const constants_1 = require("./constants");
13
13
  * validate('example@mail.ru');
14
14
  * ```
15
15
  */
16
- const email = (params) => (0, core_1.createRule)((value, ctx) => {
16
+ const email = (params) =>
17
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <>
18
+ (0, core_1.createRule)((value, ctx) => {
17
19
  const invalidEmailError = ctx.createError(Object.assign(Object.assign({}, constants_1.INVALID_EMAIL_ERROR_INFO), { message: (params === null || params === void 0 ? void 0 : params.message) || constants_1.INVALID_EMAIL_ERROR_INFO.message }));
18
20
  const emailRegexp = (params === null || params === void 0 ? void 0 : params.allowCyrillic)
19
21
  ? constants_1.EMAIL_CYRILLIC_PUNYCODE_REGEXP
@@ -17,11 +17,10 @@ const constants_1 = require("./constants");
17
17
  * ```
18
18
  */
19
19
  // Отдельная функциональная обертка необходима для работы с guard optional
20
- const emailOrPhone = () => (value, ctx) => (0, core_1.createGuard)((_, innerCtx) => {
21
- const requiredValue = value &&
22
- typeof value === 'object' &&
23
- 'value' in value &&
24
- !Boolean(value.value);
20
+ const emailOrPhone = () => (value, ctx) =>
21
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <>
22
+ (0, core_1.createGuard)((_, innerCtx) => {
23
+ const requiredValue = value && typeof value === 'object' && 'value' in value && !value.value;
25
24
  const checkValidObject = !value ||
26
25
  typeof value !== 'object' ||
27
26
  !('value' in value) ||
package/node/index.d.ts CHANGED
@@ -1,54 +1,54 @@
1
- export { object, objectAsync, OBJECT_TYPE_ERROR_INFO, type Schema, type SchemaValue, type ObjectGuard, type ObjectAsyncGuard, } from './object';
2
- export { optional, optionalAsync } from './optional';
3
- export { string, STRING_TYPE_ERROR_INFO, stringAsync } from './string';
4
- export { textField, INVALID_TEXT_FIELD_ERROR_INFO, LENGTH_TEXT_FIELD_ERROR_INFO, } from './textField';
5
- export { date, INVALID_DATE_ERROR_INFO, DATE_TYPE_ERROR_INFO } from './date';
6
- export { number, NAN_NUMBER_ERROR_INFO, NUMBER_TYPE_ERROR_INFO, INFINITY_NUMBER_ERROR_INFO, } from './number';
7
- export { boolean, BOOLEAN_TYPE_ERROR_INFO } from './boolean';
8
- export { array, ARRAY_TYPE_ERROR_INFO } from './array';
1
+ export { any } from './any';
2
+ export { ARRAY_TYPE_ERROR_INFO, array } from './array';
9
3
  export { arrayItem } from './arrayItem';
4
+ export { BOOLEAN_TYPE_ERROR_INFO, boolean } from './boolean';
5
+ export { CONTAINS_DIFFERENT_CASES_ERROR_CODE, containsDifferentCases, } from './containsDifferentCases';
6
+ export { CONTAINS_NUMBERS_ERROR_CODE, containsNumbers, } from './containsNumbers';
7
+ export { CONTAINS_PUNCTUATION_MARKS_ERROR_CODE, containsPunctuationMarks, } from './containsPunctuationMarks';
8
+ export { createRule, REQUIRED_ERROR_INFO, type ValidationRule } from './core';
9
+ export { DATE_TYPE_ERROR_INFO, date, INVALID_DATE_ERROR_INFO } from './date';
10
10
  export { deepPartial } from './deepPartial';
11
- export { partial } from './partial';
12
- export { minYearsOld, BIRTH_DATE_MIN_ERROR_CODE, BIRTH_DATE_MAX_ERROR_CODE, } from './minYearsOld';
13
- export { min, STRING_MIN_ERROR_CODE, ARRAY_MIN_ERROR_CODE, DATE_MIN_ERROR_CODE, NUMBER_MIN_ERROR_CODE, } from './min';
14
- export { max, STRING_MAX_ERROR_CODE, ARRAY_MAX_ERROR_CODE, DATE_MAX_ERROR_CODE, NUMBER_MAX_ERROR_CODE, } from './max';
15
- export { integer, INTEGER_ERROR_INFO } from './integer';
16
- export { positiveNumber, POSITIVE_NUMBER_ERROR_INFO } from './positiveNumber';
17
- export { or } from './or';
18
- export { pattern, PATTERN_ERROR_CODE } from './pattern';
19
- export { onlyNumber, ONLY_NUMBER_ERROR_CODE } from './onlyNumber';
20
- export { containsNumbers, CONTAINS_NUMBERS_ERROR_CODE, } from './containsNumbers';
21
- export { containsPunctuationMarks, CONTAINS_PUNCTUATION_MARKS_ERROR_CODE, } from './containsPunctuationMarks';
22
- export { containsDifferentCases, CONTAINS_DIFFERENT_CASES_ERROR_CODE, } from './containsDifferentCases';
23
- export { toPlainError } from './toPlainError';
24
- export { email, LENGTH_EMAIL_ERROR_INFO, INVALID_EMAIL_ERROR_INFO, } from './email';
25
- export { emailOrPhone, EMAIL_OR_PHONE_ERROR_INFO } from './emailOrPhone';
11
+ export { email, INVALID_EMAIL_ERROR_INFO, LENGTH_EMAIL_ERROR_INFO, } from './email';
12
+ export { EMAIL_OR_PHONE_ERROR_INFO, emailOrPhone } from './emailOrPhone';
13
+ export { enabled } from './enabled';
26
14
  export { guid, INVALID_GUID_ERROR_INFO } from './guid';
15
+ export { INN_FL_ERROR_INFO, innFL } from './innFL';
16
+ export { INN_IP_ERROR_INFO, innIP } from './innIP';
17
+ export { INN_12_SYMBOLS_ERROR_INFO, innTwelveSymbols, } from './innTwelveSymbols';
18
+ export { INN_UL_ERROR_INFO, innUL } from './innUL';
19
+ export { INTEGER_ERROR_INFO, integer } from './integer';
20
+ export { INVALID_KPP_ERROR_INFO, KPP_DOUBLE_ZERO_START_ERROR_INFO, KPP_ZEROS_ONLY_ERROR_INFO, kpp, } from './kpp';
27
21
  export { length, STRING_LENGTH_ERROR_CODE } from './length';
28
- export { mobilePhone, MOBILE_PHONE_ERROR_INFO } from './mobilePhone';
29
- export { innUL, INN_UL_ERROR_INFO } from './innUL';
30
- export { innTwelveSymbols, INN_12_SYMBOLS_ERROR_INFO, } from './innTwelveSymbols';
31
- export { innIP, INN_IP_ERROR_INFO } from './innIP';
32
- export { innFL, INN_FL_ERROR_INFO } from './innFL';
33
- export { kpp, INVALID_KPP_ERROR_INFO, KPP_DOUBLE_ZERO_START_ERROR_INFO, KPP_ZEROS_ONLY_ERROR_INFO, } from './kpp';
34
- export { snils, SNILS_ERROR_INFO } from './snils';
35
- export { createRule, REQUIRED_ERROR_INFO, type ValidationRule } from './core';
36
- export { ogrnUL, OGRN_UL_ERROR_INFO } from './ogrnUL';
37
- export { ogrnIP, OGRN_IP_ERROR_INFO } from './ogrnIP';
38
- export { personName, PERSON_NAME_ERROR_INFO } from './personName';
39
- export { personSurname, PERSON_SURNAME_ERROR_INFO } from './personSurname';
40
- export { passportSeries, PASSPORT_SERIES_ERROR_INFO, PASSPORT_SERIES_ERROR_LENGTH_INFO, PASSPORT_SERIES_ONLY_DIGITS_ERROR_INFO, } from './passportSeries';
41
- export { passportNumber, PASSPORT_NUMBER_ERROR_INFO, PASSPORT_NUMBER_LENGTH_ERROR_INFO, PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO, } from './passportNumber';
42
- export { passportCode, PASSPORT_CODE_ERROR_INFO, PASSPORT_CODE_LENGTH_ERROR_INFO, PASSPORT_CODE_ONLY_DIGITS_ERROR_INFO, } from './passportCode';
43
- export { personPatronymic, PERSON_PATRONYMIC_ERROR_INFO, } from './personPatronymic';
44
- export { any } from './any';
45
- export { when } from './when';
22
+ export { ARRAY_MAX_ERROR_CODE, DATE_MAX_ERROR_CODE, max, NUMBER_MAX_ERROR_CODE, STRING_MAX_ERROR_CODE, } from './max';
23
+ export { ARRAY_MIN_ERROR_CODE, DATE_MIN_ERROR_CODE, min, NUMBER_MIN_ERROR_CODE, STRING_MIN_ERROR_CODE, } from './min';
24
+ export { BIRTH_DATE_MAX_ERROR_CODE, BIRTH_DATE_MIN_ERROR_CODE, minYearsOld, } from './minYearsOld';
25
+ export { MOBILE_PHONE_ERROR_INFO, mobilePhone } from './mobilePhone';
26
+ export { INFINITY_NUMBER_ERROR_INFO, NAN_NUMBER_ERROR_INFO, NUMBER_TYPE_ERROR_INFO, number, } from './number';
27
+ export { OBJECT_TYPE_ERROR_INFO, type ObjectAsyncGuard, type ObjectGuard, object, objectAsync, type Schema, type SchemaValue, } from './object';
28
+ export { OGRN_IP_ERROR_INFO, ogrnIP } from './ogrnIP';
29
+ export { OGRN_UL_ERROR_INFO, ogrnUL } from './ogrnUL';
30
+ export { ONLY_NUMBER_ERROR_CODE, onlyNumber } from './onlyNumber';
31
+ export { optional, optionalAsync } from './optional';
32
+ export { or } from './or';
33
+ export { partial } from './partial';
34
+ export { PASSPORT_CODE_ERROR_INFO, PASSPORT_CODE_LENGTH_ERROR_INFO, PASSPORT_CODE_ONLY_DIGITS_ERROR_INFO, passportCode, } from './passportCode';
35
+ export { PASSPORT_NUMBER_ERROR_INFO, PASSPORT_NUMBER_LENGTH_ERROR_INFO, PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO, passportNumber, } from './passportNumber';
36
+ export { PASSPORT_SERIES_ERROR_INFO, PASSPORT_SERIES_ERROR_LENGTH_INFO, PASSPORT_SERIES_ONLY_DIGITS_ERROR_INFO, passportSeries, } from './passportSeries';
37
+ export { PATTERN_ERROR_CODE, pattern } from './pattern';
38
+ export { PERSON_NAME_ERROR_INFO, personName } from './personName';
39
+ export { PERSON_PATRONYMIC_ERROR_INFO, personPatronymic, } from './personPatronymic';
40
+ export { PERSON_SURNAME_ERROR_INFO, personSurname } from './personSurname';
41
+ export { POSITIVE_NUMBER_ERROR_INFO, positiveNumber } from './positiveNumber';
42
+ export { RANGE_DATE_END_EARLIER_START_ERROR_INFO, RANGE_DATE_END_INVALID_ERROR_INFO, RANGE_DATE_END_REQUIRED_ERROR_INFO, RANGE_DATE_REQUIRED_ERROR_INFO, RANGE_DATE_START_INVALID_ERROR_INFO, RANGE_DATE_START_REQUIRED_ERROR_INFO, rangeDate, } from './rangeDate';
43
+ export { RANGE_DATE_INTERVAL_ERROR_INFO, rangeDateInterval, } from './rangeDateInterval';
44
+ export { RANGE_DATE_MAX_ERROR_INFO, RANGE_DATE_MIN_ERROR_INFO, rangeDateMinMax, } from './rangeDateMinMax';
45
+ export { RANGE_DATE_NOT_EQUAL_ERROR_INFO, rangeDateNotEqual, } from './rangeDateNotEqual';
46
+ export { SNILS_ERROR_INFO, snils } from './snils';
47
+ export { STRING_TYPE_ERROR_INFO, string, stringAsync } from './string';
48
+ export { INVALID_TEXT_FIELD_ERROR_INFO, LENGTH_TEXT_FIELD_ERROR_INFO, textField, } from './textField';
49
+ export { toPlainError } from './toPlainError';
46
50
  export { toPrettyError } from './toPrettyError';
47
51
  export { transform } from './transform';
48
- export { enabled } from './enabled';
49
- export { rangeDate, RANGE_DATE_END_EARLIER_START_ERROR_INFO, RANGE_DATE_END_INVALID_ERROR_INFO, RANGE_DATE_END_REQUIRED_ERROR_INFO, RANGE_DATE_REQUIRED_ERROR_INFO, RANGE_DATE_START_INVALID_ERROR_INFO, RANGE_DATE_START_REQUIRED_ERROR_INFO, } from './rangeDate';
50
- export { rangeDateInterval, RANGE_DATE_INTERVAL_ERROR_INFO, } from './rangeDateInterval';
51
- export { rangeDateMinMax, RANGE_DATE_MAX_ERROR_INFO, RANGE_DATE_MIN_ERROR_INFO, } from './rangeDateMinMax';
52
- export { rangeDateNotEqual, RANGE_DATE_NOT_EQUAL_ERROR_INFO, } from './rangeDateNotEqual';
53
- export { uploadedFile, FILE_UPLOAD_ERROR_INFO, FILE_LOADING_ERROR_INFO, FILE_REQUIRED_ERROR_INFO, FILE_RESTRICTION_ERROR_INFO, } from './uploadedFile';
54
- export { uploadedFileList, FILE_LIST_NOT_ARRAY_ERROR_INFO, } from './uploadedFileList';
52
+ export { FILE_LOADING_ERROR_INFO, FILE_REQUIRED_ERROR_INFO, FILE_RESTRICTION_ERROR_INFO, FILE_UPLOAD_ERROR_INFO, uploadedFile, } from './uploadedFile';
53
+ export { FILE_LIST_NOT_ARRAY_ERROR_INFO, uploadedFileList, } from './uploadedFileList';
54
+ export { when } from './when';