@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.
- package/array/array.d.ts +1 -1
- package/boolean/boolean.d.ts +1 -1
- package/containsPunctuationMarks/containsPunctuationMarks.js +1 -1
- package/core/compose/compose.d.ts +1 -1
- package/core/composeAsync/composeAsync.d.ts +1 -1
- package/core/context/createContext/createContext.d.ts +1 -1
- package/core/errors/ArrayError/ArrayError.d.ts +1 -1
- package/core/errors/ErrorMap/ErrorMap.d.ts +1 -1
- package/core/errors/ErrorMap/index.d.ts +1 -1
- package/core/errors/ErrorMap/index.js +1 -1
- package/core/errors/SimpleError/SimpleError.d.ts +5 -5
- package/core/errors/SimpleError/createSimpleError/createSimpleError.d.ts +1 -1
- package/core/errors/SimpleError/index.d.ts +1 -1
- package/core/errors/SimpleError/index.js +1 -1
- package/core/errors/index.d.ts +3 -3
- package/core/errors/index.js +3 -3
- package/core/errors/types.d.ts +1 -1
- package/core/guard/createGuard/createGuard.d.ts +10 -10
- package/core/guard/createGuard/createGuard.js +1 -1
- package/core/index.d.ts +4 -4
- package/core/index.js +4 -4
- package/core/logger/logger.js +1 -0
- package/core/rule/callAsyncRule/callAsyncRule.d.ts +2 -2
- package/core/rule/callRule/callRule.d.ts +2 -2
- package/core/rule/createRule/createRule.d.ts +5 -5
- package/core/rule/index.d.ts +3 -3
- package/core/rule/index.js +3 -3
- package/core/rule/required/index.d.ts +1 -1
- package/core/rule/required/index.js +1 -1
- package/core/rule/required/required.js +3 -1
- package/core/types.d.ts +1 -1
- package/core/utils/index.d.ts +1 -1
- package/core/utils/index.js +1 -1
- package/core/utils/isHasConsecutiveChars/isHasConsecutiveChars.js +1 -1
- package/core/utils/isStringOfZeros/isStringOfZeros.js +1 -1
- package/date/date.d.ts +1 -1
- package/deepPartial/deepPartial.d.ts +2 -2
- package/email/email.js +3 -1
- package/emailOrPhone/constants.js +1 -1
- package/emailOrPhone/emailOrPhone.js +4 -5
- package/index.d.ts +48 -48
- package/index.js +48 -48
- package/innFL/index.d.ts +1 -1
- package/innFL/index.js +1 -1
- package/innIP/index.d.ts +1 -1
- package/innIP/index.js +1 -1
- package/innTwelveSymbols/index.d.ts +1 -1
- package/innTwelveSymbols/index.js +1 -1
- package/innUL/index.d.ts +1 -1
- package/innUL/index.js +1 -1
- package/length/index.d.ts +1 -1
- package/length/index.js +1 -1
- package/max/index.d.ts +1 -1
- package/max/index.js +1 -1
- package/max/max.d.ts +6 -6
- package/max/max.js +1 -0
- package/min/index.d.ts +1 -1
- package/min/index.js +1 -1
- package/min/min.d.ts +6 -6
- package/min/min.js +1 -0
- package/minYearsOld/index.d.ts +1 -1
- package/minYearsOld/index.js +1 -1
- package/minYearsOld/minYearsOld.d.ts +1 -1
- package/mobilePhone/index.d.ts +1 -1
- package/mobilePhone/index.js +1 -1
- package/node/array/array.d.ts +1 -1
- package/node/boolean/boolean.d.ts +1 -1
- package/node/containsPunctuationMarks/containsPunctuationMarks.js +1 -1
- package/node/core/compose/compose.d.ts +1 -1
- package/node/core/composeAsync/composeAsync.d.ts +1 -1
- package/node/core/context/createContext/createContext.d.ts +1 -1
- package/node/core/errors/ArrayError/ArrayError.d.ts +1 -1
- package/node/core/errors/ErrorMap/ErrorMap.d.ts +1 -1
- package/node/core/errors/ErrorMap/index.d.ts +1 -1
- package/node/core/errors/ErrorMap/index.js +1 -1
- package/node/core/errors/SimpleError/SimpleError.d.ts +5 -5
- package/node/core/errors/SimpleError/createSimpleError/createSimpleError.d.ts +1 -1
- package/node/core/errors/SimpleError/index.d.ts +1 -1
- package/node/core/errors/SimpleError/index.js +1 -1
- package/node/core/errors/index.d.ts +3 -3
- package/node/core/errors/index.js +3 -3
- package/node/core/errors/types.d.ts +1 -1
- package/node/core/guard/createGuard/createGuard.d.ts +10 -10
- package/node/core/guard/createGuard/createGuard.js +1 -1
- package/node/core/index.d.ts +4 -4
- package/node/core/index.js +4 -4
- package/node/core/logger/logger.js +1 -0
- package/node/core/rule/callAsyncRule/callAsyncRule.d.ts +2 -2
- package/node/core/rule/callRule/callRule.d.ts +2 -2
- package/node/core/rule/createRule/createRule.d.ts +5 -5
- package/node/core/rule/index.d.ts +3 -3
- package/node/core/rule/index.js +3 -3
- package/node/core/rule/required/index.d.ts +1 -1
- package/node/core/rule/required/index.js +1 -1
- package/node/core/rule/required/required.js +3 -1
- package/node/core/types.d.ts +1 -1
- package/node/core/utils/index.d.ts +1 -1
- package/node/core/utils/index.js +1 -1
- package/node/core/utils/isHasConsecutiveChars/isHasConsecutiveChars.js +1 -1
- package/node/core/utils/isStringOfZeros/isStringOfZeros.js +1 -1
- package/node/date/date.d.ts +1 -1
- package/node/deepPartial/deepPartial.d.ts +2 -2
- package/node/email/email.js +3 -1
- package/node/emailOrPhone/emailOrPhone.js +4 -5
- package/node/index.d.ts +48 -48
- package/node/index.js +136 -136
- package/node/innFL/index.d.ts +1 -1
- package/node/innFL/index.js +1 -1
- package/node/innIP/index.d.ts +1 -1
- package/node/innIP/index.js +1 -1
- package/node/innTwelveSymbols/index.d.ts +1 -1
- package/node/innTwelveSymbols/index.js +1 -1
- package/node/innUL/index.d.ts +1 -1
- package/node/innUL/index.js +1 -1
- package/node/length/index.d.ts +1 -1
- package/node/length/index.js +1 -1
- package/node/max/index.d.ts +1 -1
- package/node/max/index.js +1 -1
- package/node/max/max.d.ts +6 -6
- package/node/max/max.js +1 -0
- package/node/min/index.d.ts +1 -1
- package/node/min/index.js +1 -1
- package/node/min/min.d.ts +6 -6
- package/node/min/min.js +1 -0
- package/node/minYearsOld/index.d.ts +1 -1
- package/node/minYearsOld/index.js +1 -1
- package/node/minYearsOld/minYearsOld.d.ts +1 -1
- package/node/mobilePhone/index.d.ts +1 -1
- package/node/mobilePhone/index.js +1 -1
- package/node/number/index.d.ts +1 -1
- package/node/number/index.js +1 -1
- package/node/number/number.d.ts +1 -1
- package/node/object/index.d.ts +1 -1
- package/node/object/index.js +1 -1
- package/node/object/object.d.ts +6 -6
- package/node/object/object.js +6 -4
- package/node/object/objectAsync/objectAsync.d.ts +9 -9
- package/node/object/objectAsync/objectAsync.js +7 -5
- package/node/ogrnIP/index.d.ts +1 -1
- package/node/ogrnIP/index.js +1 -1
- package/node/ogrnUL/index.d.ts +1 -1
- package/node/ogrnUL/index.js +1 -1
- package/node/or/or.js +1 -1
- package/node/partial/partial.d.ts +1 -1
- package/node/passportNumber/passportNumber.js +1 -1
- package/node/pattern/index.d.ts +1 -1
- package/node/pattern/index.js +1 -1
- package/node/rangeDate/rangeDate.d.ts +1 -1
- package/node/rangeDate/rangeDate.js +9 -3
- package/node/rangeDateMinMax/rangeDateMinMax.js +3 -1
- package/node/snils/index.d.ts +1 -1
- package/node/snils/index.js +1 -1
- package/node/snils/snils.js +3 -1
- package/node/string/index.d.ts +1 -1
- package/node/string/index.js +1 -1
- package/node/string/string.d.ts +1 -1
- package/node/string/stringAsync/stringAsync.d.ts +1 -1
- package/node/string/stringAsync/stringAsync.js +1 -1
- package/node/toPlainError/toPlainError.js +1 -4
- package/node/toPlainError/utils/index.d.ts +1 -1
- package/node/toPlainError/utils/index.js +1 -1
- package/node/uploadedFile/index.d.ts +1 -1
- package/node/uploadedFile/index.js +1 -1
- package/node/uploadedFile/uploadedFile.d.ts +1 -1
- package/node/uploadedFileList/index.d.ts +1 -1
- package/node/uploadedFileList/index.js +1 -1
- package/node/uploadedFileList/uploadedFileList.d.ts +1 -1
- package/node/uploadedFileList/uploadedFileList.js +1 -1
- package/number/index.d.ts +1 -1
- package/number/index.js +1 -1
- package/number/number.d.ts +1 -1
- package/object/index.d.ts +1 -1
- package/object/index.js +1 -1
- package/object/object.d.ts +6 -6
- package/object/object.js +6 -4
- package/object/objectAsync/objectAsync.d.ts +9 -9
- package/object/objectAsync/objectAsync.js +7 -5
- package/ogrnIP/index.d.ts +1 -1
- package/ogrnIP/index.js +1 -1
- package/ogrnUL/index.d.ts +1 -1
- package/ogrnUL/index.js +1 -1
- package/or/or.js +1 -1
- package/package.json +1 -1
- package/partial/partial.d.ts +1 -1
- package/passportNumber/passportNumber.js +1 -1
- package/pattern/index.d.ts +1 -1
- package/pattern/index.js +1 -1
- package/rangeDate/rangeDate.d.ts +1 -1
- package/rangeDate/rangeDate.js +9 -3
- package/rangeDateMinMax/rangeDateMinMax.js +3 -1
- package/snils/index.d.ts +1 -1
- package/snils/index.js +1 -1
- package/snils/snils.js +3 -1
- package/string/index.d.ts +1 -1
- package/string/index.js +1 -1
- package/string/string.d.ts +1 -1
- package/string/stringAsync/stringAsync.d.ts +1 -1
- package/string/stringAsync/stringAsync.js +1 -1
- package/toPlainError/toPlainError.js +1 -4
- package/toPlainError/utils/index.d.ts +1 -1
- package/toPlainError/utils/index.js +1 -1
- package/uploadedFile/index.d.ts +1 -1
- package/uploadedFile/index.js +1 -1
- package/uploadedFile/uploadedFile.d.ts +1 -1
- package/uploadedFileList/index.d.ts +1 -1
- package/uploadedFileList/index.js +1 -1
- package/uploadedFileList/uploadedFileList.d.ts +1 -1
- 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<
|
7
|
+
export type CommonRuleParams<TValidationType extends ValidationTypes> = {
|
8
8
|
/**
|
9
9
|
* Функция, позволяющая для каждого правила указать исключение
|
10
10
|
*/
|
11
|
-
exclude?: (value:
|
11
|
+
exclude?: (value: TValidationType, ctx: ValidationContext) => boolean;
|
12
12
|
};
|
13
13
|
/**
|
14
14
|
* Функция, которая позволяет определять частную логику для guard
|
15
15
|
*/
|
16
|
-
type RuleExecutor<
|
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: <
|
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 {};
|
package/node/core/rule/index.js
CHANGED
@@ -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("./
|
21
|
-
__exportStar(require("./callAsyncRule"), exports);
|
21
|
+
__exportStar(require("./types"), exports);
|
@@ -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, } = {}) =>
|
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();
|
package/node/core/types.d.ts
CHANGED
@@ -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 |
|
9
|
+
export type ValidationTypes = unknown | object | string | number | Date | unknown[];
|
package/node/core/utils/index.js
CHANGED
@@ -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) => /([`~!@#$%^&*()\-_=+[{\]}
|
7
|
+
const isHasConsecutiveChars = (value) => /([`~!@#$%^&*()\-_=+[{\]}|;:'",<.>/?\s])([`~!@#$%^&*()\-_=+[{\]}|;:'",<.>/?\s])/.test(value);
|
8
8
|
exports.isHasConsecutiveChars = isHasConsecutiveChars;
|
package/node/date/date.d.ts
CHANGED
@@ -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").
|
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
|
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:
|
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>>;
|
package/node/email/email.js
CHANGED
@@ -13,7 +13,9 @@ const constants_1 = require("./constants");
|
|
13
13
|
* validate('example@mail.ru');
|
14
14
|
* ```
|
15
15
|
*/
|
16
|
-
const email = (params) =>
|
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) =>
|
21
|
-
|
22
|
-
|
23
|
-
|
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 {
|
2
|
-
export {
|
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 {
|
12
|
-
export {
|
13
|
-
export {
|
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 {
|
29
|
-
export {
|
30
|
-
export {
|
31
|
-
export {
|
32
|
-
export {
|
33
|
-
export {
|
34
|
-
export {
|
35
|
-
export {
|
36
|
-
export {
|
37
|
-
export {
|
38
|
-
export {
|
39
|
-
export {
|
40
|
-
export {
|
41
|
-
export {
|
42
|
-
export {
|
43
|
-
export {
|
44
|
-
export {
|
45
|
-
export {
|
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 {
|
49
|
-
export {
|
50
|
-
export {
|
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';
|