@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
package/node/index.js
CHANGED
@@ -1,188 +1,188 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
var
|
7
|
-
Object.defineProperty(exports, "
|
8
|
-
Object.defineProperty(exports, "objectAsync", { enumerable: true, get: function () { return object_1.objectAsync; } });
|
9
|
-
Object.defineProperty(exports, "OBJECT_TYPE_ERROR_INFO", { enumerable: true, get: function () { return object_1.OBJECT_TYPE_ERROR_INFO; } });
|
10
|
-
var optional_1 = require("./optional");
|
11
|
-
Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return optional_1.optional; } });
|
12
|
-
Object.defineProperty(exports, "optionalAsync", { enumerable: true, get: function () { return optional_1.optionalAsync; } });
|
13
|
-
var string_1 = require("./string");
|
14
|
-
Object.defineProperty(exports, "string", { enumerable: true, get: function () { return string_1.string; } });
|
15
|
-
Object.defineProperty(exports, "STRING_TYPE_ERROR_INFO", { enumerable: true, get: function () { return string_1.STRING_TYPE_ERROR_INFO; } });
|
16
|
-
Object.defineProperty(exports, "stringAsync", { enumerable: true, get: function () { return string_1.stringAsync; } });
|
17
|
-
var textField_1 = require("./textField");
|
18
|
-
Object.defineProperty(exports, "textField", { enumerable: true, get: function () { return textField_1.textField; } });
|
19
|
-
Object.defineProperty(exports, "INVALID_TEXT_FIELD_ERROR_INFO", { enumerable: true, get: function () { return textField_1.INVALID_TEXT_FIELD_ERROR_INFO; } });
|
20
|
-
Object.defineProperty(exports, "LENGTH_TEXT_FIELD_ERROR_INFO", { enumerable: true, get: function () { return textField_1.LENGTH_TEXT_FIELD_ERROR_INFO; } });
|
21
|
-
var date_1 = require("./date");
|
22
|
-
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return date_1.date; } });
|
23
|
-
Object.defineProperty(exports, "INVALID_DATE_ERROR_INFO", { enumerable: true, get: function () { return date_1.INVALID_DATE_ERROR_INFO; } });
|
24
|
-
Object.defineProperty(exports, "DATE_TYPE_ERROR_INFO", { enumerable: true, get: function () { return date_1.DATE_TYPE_ERROR_INFO; } });
|
25
|
-
var number_1 = require("./number");
|
26
|
-
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_1.number; } });
|
27
|
-
Object.defineProperty(exports, "NAN_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return number_1.NAN_NUMBER_ERROR_INFO; } });
|
28
|
-
Object.defineProperty(exports, "NUMBER_TYPE_ERROR_INFO", { enumerable: true, get: function () { return number_1.NUMBER_TYPE_ERROR_INFO; } });
|
29
|
-
Object.defineProperty(exports, "INFINITY_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return number_1.INFINITY_NUMBER_ERROR_INFO; } });
|
30
|
-
var boolean_1 = require("./boolean");
|
31
|
-
Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_1.boolean; } });
|
32
|
-
Object.defineProperty(exports, "BOOLEAN_TYPE_ERROR_INFO", { enumerable: true, get: function () { return boolean_1.BOOLEAN_TYPE_ERROR_INFO; } });
|
3
|
+
exports.min = exports.DATE_MIN_ERROR_CODE = exports.ARRAY_MIN_ERROR_CODE = exports.STRING_MAX_ERROR_CODE = exports.NUMBER_MAX_ERROR_CODE = exports.max = exports.DATE_MAX_ERROR_CODE = exports.ARRAY_MAX_ERROR_CODE = exports.STRING_LENGTH_ERROR_CODE = exports.length = exports.kpp = exports.KPP_ZEROS_ONLY_ERROR_INFO = exports.KPP_DOUBLE_ZERO_START_ERROR_INFO = exports.INVALID_KPP_ERROR_INFO = exports.integer = exports.INTEGER_ERROR_INFO = exports.innUL = exports.INN_UL_ERROR_INFO = exports.innTwelveSymbols = exports.INN_12_SYMBOLS_ERROR_INFO = exports.innIP = exports.INN_IP_ERROR_INFO = exports.innFL = exports.INN_FL_ERROR_INFO = exports.INVALID_GUID_ERROR_INFO = exports.guid = exports.enabled = exports.emailOrPhone = exports.EMAIL_OR_PHONE_ERROR_INFO = exports.LENGTH_EMAIL_ERROR_INFO = exports.INVALID_EMAIL_ERROR_INFO = exports.email = exports.deepPartial = exports.INVALID_DATE_ERROR_INFO = exports.date = exports.DATE_TYPE_ERROR_INFO = exports.REQUIRED_ERROR_INFO = exports.createRule = exports.containsPunctuationMarks = exports.CONTAINS_PUNCTUATION_MARKS_ERROR_CODE = exports.containsNumbers = exports.CONTAINS_NUMBERS_ERROR_CODE = exports.containsDifferentCases = exports.CONTAINS_DIFFERENT_CASES_ERROR_CODE = exports.boolean = exports.BOOLEAN_TYPE_ERROR_INFO = exports.arrayItem = exports.array = exports.ARRAY_TYPE_ERROR_INFO = exports.any = void 0;
|
4
|
+
exports.RANGE_DATE_REQUIRED_ERROR_INFO = exports.RANGE_DATE_END_REQUIRED_ERROR_INFO = exports.RANGE_DATE_END_INVALID_ERROR_INFO = exports.RANGE_DATE_END_EARLIER_START_ERROR_INFO = exports.positiveNumber = exports.POSITIVE_NUMBER_ERROR_INFO = exports.personSurname = exports.PERSON_SURNAME_ERROR_INFO = exports.personPatronymic = exports.PERSON_PATRONYMIC_ERROR_INFO = exports.personName = exports.PERSON_NAME_ERROR_INFO = exports.pattern = exports.PATTERN_ERROR_CODE = exports.passportSeries = exports.PASSPORT_SERIES_ONLY_DIGITS_ERROR_INFO = exports.PASSPORT_SERIES_ERROR_LENGTH_INFO = exports.PASSPORT_SERIES_ERROR_INFO = exports.passportNumber = exports.PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO = exports.PASSPORT_NUMBER_LENGTH_ERROR_INFO = exports.PASSPORT_NUMBER_ERROR_INFO = exports.passportCode = exports.PASSPORT_CODE_ONLY_DIGITS_ERROR_INFO = exports.PASSPORT_CODE_LENGTH_ERROR_INFO = exports.PASSPORT_CODE_ERROR_INFO = exports.partial = exports.or = exports.optionalAsync = exports.optional = exports.onlyNumber = exports.ONLY_NUMBER_ERROR_CODE = exports.ogrnUL = exports.OGRN_UL_ERROR_INFO = exports.ogrnIP = exports.OGRN_IP_ERROR_INFO = exports.objectAsync = exports.object = exports.OBJECT_TYPE_ERROR_INFO = exports.number = exports.NUMBER_TYPE_ERROR_INFO = exports.NAN_NUMBER_ERROR_INFO = exports.INFINITY_NUMBER_ERROR_INFO = exports.mobilePhone = exports.MOBILE_PHONE_ERROR_INFO = exports.minYearsOld = exports.BIRTH_DATE_MIN_ERROR_CODE = exports.BIRTH_DATE_MAX_ERROR_CODE = exports.STRING_MIN_ERROR_CODE = exports.NUMBER_MIN_ERROR_CODE = void 0;
|
5
|
+
exports.when = exports.uploadedFileList = exports.FILE_LIST_NOT_ARRAY_ERROR_INFO = exports.uploadedFile = exports.FILE_UPLOAD_ERROR_INFO = exports.FILE_RESTRICTION_ERROR_INFO = exports.FILE_REQUIRED_ERROR_INFO = exports.FILE_LOADING_ERROR_INFO = exports.transform = exports.toPrettyError = exports.toPlainError = exports.textField = exports.LENGTH_TEXT_FIELD_ERROR_INFO = exports.INVALID_TEXT_FIELD_ERROR_INFO = exports.stringAsync = exports.string = exports.STRING_TYPE_ERROR_INFO = exports.snils = exports.SNILS_ERROR_INFO = exports.rangeDateNotEqual = exports.RANGE_DATE_NOT_EQUAL_ERROR_INFO = exports.rangeDateMinMax = exports.RANGE_DATE_MIN_ERROR_INFO = exports.RANGE_DATE_MAX_ERROR_INFO = exports.rangeDateInterval = exports.RANGE_DATE_INTERVAL_ERROR_INFO = exports.rangeDate = exports.RANGE_DATE_START_REQUIRED_ERROR_INFO = exports.RANGE_DATE_START_INVALID_ERROR_INFO = void 0;
|
6
|
+
var any_1 = require("./any");
|
7
|
+
Object.defineProperty(exports, "any", { enumerable: true, get: function () { return any_1.any; } });
|
33
8
|
var array_1 = require("./array");
|
34
|
-
Object.defineProperty(exports, "array", { enumerable: true, get: function () { return array_1.array; } });
|
35
9
|
Object.defineProperty(exports, "ARRAY_TYPE_ERROR_INFO", { enumerable: true, get: function () { return array_1.ARRAY_TYPE_ERROR_INFO; } });
|
10
|
+
Object.defineProperty(exports, "array", { enumerable: true, get: function () { return array_1.array; } });
|
36
11
|
var arrayItem_1 = require("./arrayItem");
|
37
12
|
Object.defineProperty(exports, "arrayItem", { enumerable: true, get: function () { return arrayItem_1.arrayItem; } });
|
38
|
-
var
|
39
|
-
Object.defineProperty(exports, "
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
Object.defineProperty(exports, "
|
44
|
-
Object.defineProperty(exports, "BIRTH_DATE_MIN_ERROR_CODE", { enumerable: true, get: function () { return minYearsOld_1.BIRTH_DATE_MIN_ERROR_CODE; } });
|
45
|
-
Object.defineProperty(exports, "BIRTH_DATE_MAX_ERROR_CODE", { enumerable: true, get: function () { return minYearsOld_1.BIRTH_DATE_MAX_ERROR_CODE; } });
|
46
|
-
var min_1 = require("./min");
|
47
|
-
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } });
|
48
|
-
Object.defineProperty(exports, "STRING_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.STRING_MIN_ERROR_CODE; } });
|
49
|
-
Object.defineProperty(exports, "ARRAY_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.ARRAY_MIN_ERROR_CODE; } });
|
50
|
-
Object.defineProperty(exports, "DATE_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.DATE_MIN_ERROR_CODE; } });
|
51
|
-
Object.defineProperty(exports, "NUMBER_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.NUMBER_MIN_ERROR_CODE; } });
|
52
|
-
var max_1 = require("./max");
|
53
|
-
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } });
|
54
|
-
Object.defineProperty(exports, "STRING_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.STRING_MAX_ERROR_CODE; } });
|
55
|
-
Object.defineProperty(exports, "ARRAY_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.ARRAY_MAX_ERROR_CODE; } });
|
56
|
-
Object.defineProperty(exports, "DATE_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.DATE_MAX_ERROR_CODE; } });
|
57
|
-
Object.defineProperty(exports, "NUMBER_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.NUMBER_MAX_ERROR_CODE; } });
|
58
|
-
var integer_1 = require("./integer");
|
59
|
-
Object.defineProperty(exports, "integer", { enumerable: true, get: function () { return integer_1.integer; } });
|
60
|
-
Object.defineProperty(exports, "INTEGER_ERROR_INFO", { enumerable: true, get: function () { return integer_1.INTEGER_ERROR_INFO; } });
|
61
|
-
var positiveNumber_1 = require("./positiveNumber");
|
62
|
-
Object.defineProperty(exports, "positiveNumber", { enumerable: true, get: function () { return positiveNumber_1.positiveNumber; } });
|
63
|
-
Object.defineProperty(exports, "POSITIVE_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return positiveNumber_1.POSITIVE_NUMBER_ERROR_INFO; } });
|
64
|
-
var or_1 = require("./or");
|
65
|
-
Object.defineProperty(exports, "or", { enumerable: true, get: function () { return or_1.or; } });
|
66
|
-
var pattern_1 = require("./pattern");
|
67
|
-
Object.defineProperty(exports, "pattern", { enumerable: true, get: function () { return pattern_1.pattern; } });
|
68
|
-
Object.defineProperty(exports, "PATTERN_ERROR_CODE", { enumerable: true, get: function () { return pattern_1.PATTERN_ERROR_CODE; } });
|
69
|
-
var onlyNumber_1 = require("./onlyNumber");
|
70
|
-
Object.defineProperty(exports, "onlyNumber", { enumerable: true, get: function () { return onlyNumber_1.onlyNumber; } });
|
71
|
-
Object.defineProperty(exports, "ONLY_NUMBER_ERROR_CODE", { enumerable: true, get: function () { return onlyNumber_1.ONLY_NUMBER_ERROR_CODE; } });
|
13
|
+
var boolean_1 = require("./boolean");
|
14
|
+
Object.defineProperty(exports, "BOOLEAN_TYPE_ERROR_INFO", { enumerable: true, get: function () { return boolean_1.BOOLEAN_TYPE_ERROR_INFO; } });
|
15
|
+
Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_1.boolean; } });
|
16
|
+
var containsDifferentCases_1 = require("./containsDifferentCases");
|
17
|
+
Object.defineProperty(exports, "CONTAINS_DIFFERENT_CASES_ERROR_CODE", { enumerable: true, get: function () { return containsDifferentCases_1.CONTAINS_DIFFERENT_CASES_ERROR_CODE; } });
|
18
|
+
Object.defineProperty(exports, "containsDifferentCases", { enumerable: true, get: function () { return containsDifferentCases_1.containsDifferentCases; } });
|
72
19
|
var containsNumbers_1 = require("./containsNumbers");
|
73
|
-
Object.defineProperty(exports, "containsNumbers", { enumerable: true, get: function () { return containsNumbers_1.containsNumbers; } });
|
74
20
|
Object.defineProperty(exports, "CONTAINS_NUMBERS_ERROR_CODE", { enumerable: true, get: function () { return containsNumbers_1.CONTAINS_NUMBERS_ERROR_CODE; } });
|
21
|
+
Object.defineProperty(exports, "containsNumbers", { enumerable: true, get: function () { return containsNumbers_1.containsNumbers; } });
|
75
22
|
var containsPunctuationMarks_1 = require("./containsPunctuationMarks");
|
76
|
-
Object.defineProperty(exports, "containsPunctuationMarks", { enumerable: true, get: function () { return containsPunctuationMarks_1.containsPunctuationMarks; } });
|
77
23
|
Object.defineProperty(exports, "CONTAINS_PUNCTUATION_MARKS_ERROR_CODE", { enumerable: true, get: function () { return containsPunctuationMarks_1.CONTAINS_PUNCTUATION_MARKS_ERROR_CODE; } });
|
78
|
-
|
79
|
-
|
80
|
-
Object.defineProperty(exports, "
|
81
|
-
|
82
|
-
|
24
|
+
Object.defineProperty(exports, "containsPunctuationMarks", { enumerable: true, get: function () { return containsPunctuationMarks_1.containsPunctuationMarks; } });
|
25
|
+
var core_1 = require("./core");
|
26
|
+
Object.defineProperty(exports, "createRule", { enumerable: true, get: function () { return core_1.createRule; } });
|
27
|
+
Object.defineProperty(exports, "REQUIRED_ERROR_INFO", { enumerable: true, get: function () { return core_1.REQUIRED_ERROR_INFO; } });
|
28
|
+
var date_1 = require("./date");
|
29
|
+
Object.defineProperty(exports, "DATE_TYPE_ERROR_INFO", { enumerable: true, get: function () { return date_1.DATE_TYPE_ERROR_INFO; } });
|
30
|
+
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return date_1.date; } });
|
31
|
+
Object.defineProperty(exports, "INVALID_DATE_ERROR_INFO", { enumerable: true, get: function () { return date_1.INVALID_DATE_ERROR_INFO; } });
|
32
|
+
var deepPartial_1 = require("./deepPartial");
|
33
|
+
Object.defineProperty(exports, "deepPartial", { enumerable: true, get: function () { return deepPartial_1.deepPartial; } });
|
83
34
|
var email_1 = require("./email");
|
84
35
|
Object.defineProperty(exports, "email", { enumerable: true, get: function () { return email_1.email; } });
|
85
|
-
Object.defineProperty(exports, "LENGTH_EMAIL_ERROR_INFO", { enumerable: true, get: function () { return email_1.LENGTH_EMAIL_ERROR_INFO; } });
|
86
36
|
Object.defineProperty(exports, "INVALID_EMAIL_ERROR_INFO", { enumerable: true, get: function () { return email_1.INVALID_EMAIL_ERROR_INFO; } });
|
37
|
+
Object.defineProperty(exports, "LENGTH_EMAIL_ERROR_INFO", { enumerable: true, get: function () { return email_1.LENGTH_EMAIL_ERROR_INFO; } });
|
87
38
|
var emailOrPhone_1 = require("./emailOrPhone");
|
88
|
-
Object.defineProperty(exports, "emailOrPhone", { enumerable: true, get: function () { return emailOrPhone_1.emailOrPhone; } });
|
89
39
|
Object.defineProperty(exports, "EMAIL_OR_PHONE_ERROR_INFO", { enumerable: true, get: function () { return emailOrPhone_1.EMAIL_OR_PHONE_ERROR_INFO; } });
|
40
|
+
Object.defineProperty(exports, "emailOrPhone", { enumerable: true, get: function () { return emailOrPhone_1.emailOrPhone; } });
|
41
|
+
var enabled_1 = require("./enabled");
|
42
|
+
Object.defineProperty(exports, "enabled", { enumerable: true, get: function () { return enabled_1.enabled; } });
|
90
43
|
var guid_1 = require("./guid");
|
91
44
|
Object.defineProperty(exports, "guid", { enumerable: true, get: function () { return guid_1.guid; } });
|
92
45
|
Object.defineProperty(exports, "INVALID_GUID_ERROR_INFO", { enumerable: true, get: function () { return guid_1.INVALID_GUID_ERROR_INFO; } });
|
93
|
-
var length_1 = require("./length");
|
94
|
-
Object.defineProperty(exports, "length", { enumerable: true, get: function () { return length_1.length; } });
|
95
|
-
Object.defineProperty(exports, "STRING_LENGTH_ERROR_CODE", { enumerable: true, get: function () { return length_1.STRING_LENGTH_ERROR_CODE; } });
|
96
|
-
var mobilePhone_1 = require("./mobilePhone");
|
97
|
-
Object.defineProperty(exports, "mobilePhone", { enumerable: true, get: function () { return mobilePhone_1.mobilePhone; } });
|
98
|
-
Object.defineProperty(exports, "MOBILE_PHONE_ERROR_INFO", { enumerable: true, get: function () { return mobilePhone_1.MOBILE_PHONE_ERROR_INFO; } });
|
99
|
-
var innUL_1 = require("./innUL");
|
100
|
-
Object.defineProperty(exports, "innUL", { enumerable: true, get: function () { return innUL_1.innUL; } });
|
101
|
-
Object.defineProperty(exports, "INN_UL_ERROR_INFO", { enumerable: true, get: function () { return innUL_1.INN_UL_ERROR_INFO; } });
|
102
|
-
var innTwelveSymbols_1 = require("./innTwelveSymbols");
|
103
|
-
Object.defineProperty(exports, "innTwelveSymbols", { enumerable: true, get: function () { return innTwelveSymbols_1.innTwelveSymbols; } });
|
104
|
-
Object.defineProperty(exports, "INN_12_SYMBOLS_ERROR_INFO", { enumerable: true, get: function () { return innTwelveSymbols_1.INN_12_SYMBOLS_ERROR_INFO; } });
|
105
|
-
var innIP_1 = require("./innIP");
|
106
|
-
Object.defineProperty(exports, "innIP", { enumerable: true, get: function () { return innIP_1.innIP; } });
|
107
|
-
Object.defineProperty(exports, "INN_IP_ERROR_INFO", { enumerable: true, get: function () { return innIP_1.INN_IP_ERROR_INFO; } });
|
108
46
|
var innFL_1 = require("./innFL");
|
109
|
-
Object.defineProperty(exports, "innFL", { enumerable: true, get: function () { return innFL_1.innFL; } });
|
110
47
|
Object.defineProperty(exports, "INN_FL_ERROR_INFO", { enumerable: true, get: function () { return innFL_1.INN_FL_ERROR_INFO; } });
|
48
|
+
Object.defineProperty(exports, "innFL", { enumerable: true, get: function () { return innFL_1.innFL; } });
|
49
|
+
var innIP_1 = require("./innIP");
|
50
|
+
Object.defineProperty(exports, "INN_IP_ERROR_INFO", { enumerable: true, get: function () { return innIP_1.INN_IP_ERROR_INFO; } });
|
51
|
+
Object.defineProperty(exports, "innIP", { enumerable: true, get: function () { return innIP_1.innIP; } });
|
52
|
+
var innTwelveSymbols_1 = require("./innTwelveSymbols");
|
53
|
+
Object.defineProperty(exports, "INN_12_SYMBOLS_ERROR_INFO", { enumerable: true, get: function () { return innTwelveSymbols_1.INN_12_SYMBOLS_ERROR_INFO; } });
|
54
|
+
Object.defineProperty(exports, "innTwelveSymbols", { enumerable: true, get: function () { return innTwelveSymbols_1.innTwelveSymbols; } });
|
55
|
+
var innUL_1 = require("./innUL");
|
56
|
+
Object.defineProperty(exports, "INN_UL_ERROR_INFO", { enumerable: true, get: function () { return innUL_1.INN_UL_ERROR_INFO; } });
|
57
|
+
Object.defineProperty(exports, "innUL", { enumerable: true, get: function () { return innUL_1.innUL; } });
|
58
|
+
var integer_1 = require("./integer");
|
59
|
+
Object.defineProperty(exports, "INTEGER_ERROR_INFO", { enumerable: true, get: function () { return integer_1.INTEGER_ERROR_INFO; } });
|
60
|
+
Object.defineProperty(exports, "integer", { enumerable: true, get: function () { return integer_1.integer; } });
|
111
61
|
var kpp_1 = require("./kpp");
|
112
|
-
Object.defineProperty(exports, "kpp", { enumerable: true, get: function () { return kpp_1.kpp; } });
|
113
62
|
Object.defineProperty(exports, "INVALID_KPP_ERROR_INFO", { enumerable: true, get: function () { return kpp_1.INVALID_KPP_ERROR_INFO; } });
|
114
63
|
Object.defineProperty(exports, "KPP_DOUBLE_ZERO_START_ERROR_INFO", { enumerable: true, get: function () { return kpp_1.KPP_DOUBLE_ZERO_START_ERROR_INFO; } });
|
115
64
|
Object.defineProperty(exports, "KPP_ZEROS_ONLY_ERROR_INFO", { enumerable: true, get: function () { return kpp_1.KPP_ZEROS_ONLY_ERROR_INFO; } });
|
116
|
-
|
117
|
-
|
118
|
-
Object.defineProperty(exports, "
|
119
|
-
|
120
|
-
|
121
|
-
Object.defineProperty(exports, "
|
122
|
-
|
123
|
-
Object.defineProperty(exports, "
|
124
|
-
Object.defineProperty(exports, "
|
65
|
+
Object.defineProperty(exports, "kpp", { enumerable: true, get: function () { return kpp_1.kpp; } });
|
66
|
+
var length_1 = require("./length");
|
67
|
+
Object.defineProperty(exports, "length", { enumerable: true, get: function () { return length_1.length; } });
|
68
|
+
Object.defineProperty(exports, "STRING_LENGTH_ERROR_CODE", { enumerable: true, get: function () { return length_1.STRING_LENGTH_ERROR_CODE; } });
|
69
|
+
var max_1 = require("./max");
|
70
|
+
Object.defineProperty(exports, "ARRAY_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.ARRAY_MAX_ERROR_CODE; } });
|
71
|
+
Object.defineProperty(exports, "DATE_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.DATE_MAX_ERROR_CODE; } });
|
72
|
+
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } });
|
73
|
+
Object.defineProperty(exports, "NUMBER_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.NUMBER_MAX_ERROR_CODE; } });
|
74
|
+
Object.defineProperty(exports, "STRING_MAX_ERROR_CODE", { enumerable: true, get: function () { return max_1.STRING_MAX_ERROR_CODE; } });
|
75
|
+
var min_1 = require("./min");
|
76
|
+
Object.defineProperty(exports, "ARRAY_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.ARRAY_MIN_ERROR_CODE; } });
|
77
|
+
Object.defineProperty(exports, "DATE_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.DATE_MIN_ERROR_CODE; } });
|
78
|
+
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } });
|
79
|
+
Object.defineProperty(exports, "NUMBER_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.NUMBER_MIN_ERROR_CODE; } });
|
80
|
+
Object.defineProperty(exports, "STRING_MIN_ERROR_CODE", { enumerable: true, get: function () { return min_1.STRING_MIN_ERROR_CODE; } });
|
81
|
+
var minYearsOld_1 = require("./minYearsOld");
|
82
|
+
Object.defineProperty(exports, "BIRTH_DATE_MAX_ERROR_CODE", { enumerable: true, get: function () { return minYearsOld_1.BIRTH_DATE_MAX_ERROR_CODE; } });
|
83
|
+
Object.defineProperty(exports, "BIRTH_DATE_MIN_ERROR_CODE", { enumerable: true, get: function () { return minYearsOld_1.BIRTH_DATE_MIN_ERROR_CODE; } });
|
84
|
+
Object.defineProperty(exports, "minYearsOld", { enumerable: true, get: function () { return minYearsOld_1.minYearsOld; } });
|
85
|
+
var mobilePhone_1 = require("./mobilePhone");
|
86
|
+
Object.defineProperty(exports, "MOBILE_PHONE_ERROR_INFO", { enumerable: true, get: function () { return mobilePhone_1.MOBILE_PHONE_ERROR_INFO; } });
|
87
|
+
Object.defineProperty(exports, "mobilePhone", { enumerable: true, get: function () { return mobilePhone_1.mobilePhone; } });
|
88
|
+
var number_1 = require("./number");
|
89
|
+
Object.defineProperty(exports, "INFINITY_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return number_1.INFINITY_NUMBER_ERROR_INFO; } });
|
90
|
+
Object.defineProperty(exports, "NAN_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return number_1.NAN_NUMBER_ERROR_INFO; } });
|
91
|
+
Object.defineProperty(exports, "NUMBER_TYPE_ERROR_INFO", { enumerable: true, get: function () { return number_1.NUMBER_TYPE_ERROR_INFO; } });
|
92
|
+
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_1.number; } });
|
93
|
+
var object_1 = require("./object");
|
94
|
+
Object.defineProperty(exports, "OBJECT_TYPE_ERROR_INFO", { enumerable: true, get: function () { return object_1.OBJECT_TYPE_ERROR_INFO; } });
|
95
|
+
Object.defineProperty(exports, "object", { enumerable: true, get: function () { return object_1.object; } });
|
96
|
+
Object.defineProperty(exports, "objectAsync", { enumerable: true, get: function () { return object_1.objectAsync; } });
|
125
97
|
var ogrnIP_1 = require("./ogrnIP");
|
126
|
-
Object.defineProperty(exports, "ogrnIP", { enumerable: true, get: function () { return ogrnIP_1.ogrnIP; } });
|
127
98
|
Object.defineProperty(exports, "OGRN_IP_ERROR_INFO", { enumerable: true, get: function () { return ogrnIP_1.OGRN_IP_ERROR_INFO; } });
|
128
|
-
|
129
|
-
|
130
|
-
Object.defineProperty(exports, "
|
131
|
-
|
132
|
-
|
133
|
-
Object.defineProperty(exports, "
|
134
|
-
|
135
|
-
|
136
|
-
Object.defineProperty(exports, "
|
137
|
-
Object.defineProperty(exports, "
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
Object.defineProperty(exports, "
|
142
|
-
Object.defineProperty(exports, "PASSPORT_NUMBER_LENGTH_ERROR_INFO", { enumerable: true, get: function () { return passportNumber_1.PASSPORT_NUMBER_LENGTH_ERROR_INFO; } });
|
143
|
-
Object.defineProperty(exports, "PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO", { enumerable: true, get: function () { return passportNumber_1.PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO; } });
|
99
|
+
Object.defineProperty(exports, "ogrnIP", { enumerable: true, get: function () { return ogrnIP_1.ogrnIP; } });
|
100
|
+
var ogrnUL_1 = require("./ogrnUL");
|
101
|
+
Object.defineProperty(exports, "OGRN_UL_ERROR_INFO", { enumerable: true, get: function () { return ogrnUL_1.OGRN_UL_ERROR_INFO; } });
|
102
|
+
Object.defineProperty(exports, "ogrnUL", { enumerable: true, get: function () { return ogrnUL_1.ogrnUL; } });
|
103
|
+
var onlyNumber_1 = require("./onlyNumber");
|
104
|
+
Object.defineProperty(exports, "ONLY_NUMBER_ERROR_CODE", { enumerable: true, get: function () { return onlyNumber_1.ONLY_NUMBER_ERROR_CODE; } });
|
105
|
+
Object.defineProperty(exports, "onlyNumber", { enumerable: true, get: function () { return onlyNumber_1.onlyNumber; } });
|
106
|
+
var optional_1 = require("./optional");
|
107
|
+
Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return optional_1.optional; } });
|
108
|
+
Object.defineProperty(exports, "optionalAsync", { enumerable: true, get: function () { return optional_1.optionalAsync; } });
|
109
|
+
var or_1 = require("./or");
|
110
|
+
Object.defineProperty(exports, "or", { enumerable: true, get: function () { return or_1.or; } });
|
111
|
+
var partial_1 = require("./partial");
|
112
|
+
Object.defineProperty(exports, "partial", { enumerable: true, get: function () { return partial_1.partial; } });
|
144
113
|
var passportCode_1 = require("./passportCode");
|
145
|
-
Object.defineProperty(exports, "passportCode", { enumerable: true, get: function () { return passportCode_1.passportCode; } });
|
146
114
|
Object.defineProperty(exports, "PASSPORT_CODE_ERROR_INFO", { enumerable: true, get: function () { return passportCode_1.PASSPORT_CODE_ERROR_INFO; } });
|
147
115
|
Object.defineProperty(exports, "PASSPORT_CODE_LENGTH_ERROR_INFO", { enumerable: true, get: function () { return passportCode_1.PASSPORT_CODE_LENGTH_ERROR_INFO; } });
|
148
116
|
Object.defineProperty(exports, "PASSPORT_CODE_ONLY_DIGITS_ERROR_INFO", { enumerable: true, get: function () { return passportCode_1.PASSPORT_CODE_ONLY_DIGITS_ERROR_INFO; } });
|
117
|
+
Object.defineProperty(exports, "passportCode", { enumerable: true, get: function () { return passportCode_1.passportCode; } });
|
118
|
+
var passportNumber_1 = require("./passportNumber");
|
119
|
+
Object.defineProperty(exports, "PASSPORT_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return passportNumber_1.PASSPORT_NUMBER_ERROR_INFO; } });
|
120
|
+
Object.defineProperty(exports, "PASSPORT_NUMBER_LENGTH_ERROR_INFO", { enumerable: true, get: function () { return passportNumber_1.PASSPORT_NUMBER_LENGTH_ERROR_INFO; } });
|
121
|
+
Object.defineProperty(exports, "PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO", { enumerable: true, get: function () { return passportNumber_1.PASSPORT_NUMBER_ONLY_DIGITS_ERROR_INFO; } });
|
122
|
+
Object.defineProperty(exports, "passportNumber", { enumerable: true, get: function () { return passportNumber_1.passportNumber; } });
|
123
|
+
var passportSeries_1 = require("./passportSeries");
|
124
|
+
Object.defineProperty(exports, "PASSPORT_SERIES_ERROR_INFO", { enumerable: true, get: function () { return passportSeries_1.PASSPORT_SERIES_ERROR_INFO; } });
|
125
|
+
Object.defineProperty(exports, "PASSPORT_SERIES_ERROR_LENGTH_INFO", { enumerable: true, get: function () { return passportSeries_1.PASSPORT_SERIES_ERROR_LENGTH_INFO; } });
|
126
|
+
Object.defineProperty(exports, "PASSPORT_SERIES_ONLY_DIGITS_ERROR_INFO", { enumerable: true, get: function () { return passportSeries_1.PASSPORT_SERIES_ONLY_DIGITS_ERROR_INFO; } });
|
127
|
+
Object.defineProperty(exports, "passportSeries", { enumerable: true, get: function () { return passportSeries_1.passportSeries; } });
|
128
|
+
var pattern_1 = require("./pattern");
|
129
|
+
Object.defineProperty(exports, "PATTERN_ERROR_CODE", { enumerable: true, get: function () { return pattern_1.PATTERN_ERROR_CODE; } });
|
130
|
+
Object.defineProperty(exports, "pattern", { enumerable: true, get: function () { return pattern_1.pattern; } });
|
131
|
+
var personName_1 = require("./personName");
|
132
|
+
Object.defineProperty(exports, "PERSON_NAME_ERROR_INFO", { enumerable: true, get: function () { return personName_1.PERSON_NAME_ERROR_INFO; } });
|
133
|
+
Object.defineProperty(exports, "personName", { enumerable: true, get: function () { return personName_1.personName; } });
|
149
134
|
var personPatronymic_1 = require("./personPatronymic");
|
150
|
-
Object.defineProperty(exports, "personPatronymic", { enumerable: true, get: function () { return personPatronymic_1.personPatronymic; } });
|
151
135
|
Object.defineProperty(exports, "PERSON_PATRONYMIC_ERROR_INFO", { enumerable: true, get: function () { return personPatronymic_1.PERSON_PATRONYMIC_ERROR_INFO; } });
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
Object.defineProperty(exports, "
|
156
|
-
var
|
157
|
-
Object.defineProperty(exports, "
|
158
|
-
|
159
|
-
Object.defineProperty(exports, "transform", { enumerable: true, get: function () { return transform_1.transform; } });
|
160
|
-
var enabled_1 = require("./enabled");
|
161
|
-
Object.defineProperty(exports, "enabled", { enumerable: true, get: function () { return enabled_1.enabled; } });
|
136
|
+
Object.defineProperty(exports, "personPatronymic", { enumerable: true, get: function () { return personPatronymic_1.personPatronymic; } });
|
137
|
+
var personSurname_1 = require("./personSurname");
|
138
|
+
Object.defineProperty(exports, "PERSON_SURNAME_ERROR_INFO", { enumerable: true, get: function () { return personSurname_1.PERSON_SURNAME_ERROR_INFO; } });
|
139
|
+
Object.defineProperty(exports, "personSurname", { enumerable: true, get: function () { return personSurname_1.personSurname; } });
|
140
|
+
var positiveNumber_1 = require("./positiveNumber");
|
141
|
+
Object.defineProperty(exports, "POSITIVE_NUMBER_ERROR_INFO", { enumerable: true, get: function () { return positiveNumber_1.POSITIVE_NUMBER_ERROR_INFO; } });
|
142
|
+
Object.defineProperty(exports, "positiveNumber", { enumerable: true, get: function () { return positiveNumber_1.positiveNumber; } });
|
162
143
|
var rangeDate_1 = require("./rangeDate");
|
163
|
-
Object.defineProperty(exports, "rangeDate", { enumerable: true, get: function () { return rangeDate_1.rangeDate; } });
|
164
144
|
Object.defineProperty(exports, "RANGE_DATE_END_EARLIER_START_ERROR_INFO", { enumerable: true, get: function () { return rangeDate_1.RANGE_DATE_END_EARLIER_START_ERROR_INFO; } });
|
165
145
|
Object.defineProperty(exports, "RANGE_DATE_END_INVALID_ERROR_INFO", { enumerable: true, get: function () { return rangeDate_1.RANGE_DATE_END_INVALID_ERROR_INFO; } });
|
166
146
|
Object.defineProperty(exports, "RANGE_DATE_END_REQUIRED_ERROR_INFO", { enumerable: true, get: function () { return rangeDate_1.RANGE_DATE_END_REQUIRED_ERROR_INFO; } });
|
167
147
|
Object.defineProperty(exports, "RANGE_DATE_REQUIRED_ERROR_INFO", { enumerable: true, get: function () { return rangeDate_1.RANGE_DATE_REQUIRED_ERROR_INFO; } });
|
168
148
|
Object.defineProperty(exports, "RANGE_DATE_START_INVALID_ERROR_INFO", { enumerable: true, get: function () { return rangeDate_1.RANGE_DATE_START_INVALID_ERROR_INFO; } });
|
169
149
|
Object.defineProperty(exports, "RANGE_DATE_START_REQUIRED_ERROR_INFO", { enumerable: true, get: function () { return rangeDate_1.RANGE_DATE_START_REQUIRED_ERROR_INFO; } });
|
150
|
+
Object.defineProperty(exports, "rangeDate", { enumerable: true, get: function () { return rangeDate_1.rangeDate; } });
|
170
151
|
var rangeDateInterval_1 = require("./rangeDateInterval");
|
171
|
-
Object.defineProperty(exports, "rangeDateInterval", { enumerable: true, get: function () { return rangeDateInterval_1.rangeDateInterval; } });
|
172
152
|
Object.defineProperty(exports, "RANGE_DATE_INTERVAL_ERROR_INFO", { enumerable: true, get: function () { return rangeDateInterval_1.RANGE_DATE_INTERVAL_ERROR_INFO; } });
|
153
|
+
Object.defineProperty(exports, "rangeDateInterval", { enumerable: true, get: function () { return rangeDateInterval_1.rangeDateInterval; } });
|
173
154
|
var rangeDateMinMax_1 = require("./rangeDateMinMax");
|
174
|
-
Object.defineProperty(exports, "rangeDateMinMax", { enumerable: true, get: function () { return rangeDateMinMax_1.rangeDateMinMax; } });
|
175
155
|
Object.defineProperty(exports, "RANGE_DATE_MAX_ERROR_INFO", { enumerable: true, get: function () { return rangeDateMinMax_1.RANGE_DATE_MAX_ERROR_INFO; } });
|
176
156
|
Object.defineProperty(exports, "RANGE_DATE_MIN_ERROR_INFO", { enumerable: true, get: function () { return rangeDateMinMax_1.RANGE_DATE_MIN_ERROR_INFO; } });
|
157
|
+
Object.defineProperty(exports, "rangeDateMinMax", { enumerable: true, get: function () { return rangeDateMinMax_1.rangeDateMinMax; } });
|
177
158
|
var rangeDateNotEqual_1 = require("./rangeDateNotEqual");
|
178
|
-
Object.defineProperty(exports, "rangeDateNotEqual", { enumerable: true, get: function () { return rangeDateNotEqual_1.rangeDateNotEqual; } });
|
179
159
|
Object.defineProperty(exports, "RANGE_DATE_NOT_EQUAL_ERROR_INFO", { enumerable: true, get: function () { return rangeDateNotEqual_1.RANGE_DATE_NOT_EQUAL_ERROR_INFO; } });
|
160
|
+
Object.defineProperty(exports, "rangeDateNotEqual", { enumerable: true, get: function () { return rangeDateNotEqual_1.rangeDateNotEqual; } });
|
161
|
+
var snils_1 = require("./snils");
|
162
|
+
Object.defineProperty(exports, "SNILS_ERROR_INFO", { enumerable: true, get: function () { return snils_1.SNILS_ERROR_INFO; } });
|
163
|
+
Object.defineProperty(exports, "snils", { enumerable: true, get: function () { return snils_1.snils; } });
|
164
|
+
var string_1 = require("./string");
|
165
|
+
Object.defineProperty(exports, "STRING_TYPE_ERROR_INFO", { enumerable: true, get: function () { return string_1.STRING_TYPE_ERROR_INFO; } });
|
166
|
+
Object.defineProperty(exports, "string", { enumerable: true, get: function () { return string_1.string; } });
|
167
|
+
Object.defineProperty(exports, "stringAsync", { enumerable: true, get: function () { return string_1.stringAsync; } });
|
168
|
+
var textField_1 = require("./textField");
|
169
|
+
Object.defineProperty(exports, "INVALID_TEXT_FIELD_ERROR_INFO", { enumerable: true, get: function () { return textField_1.INVALID_TEXT_FIELD_ERROR_INFO; } });
|
170
|
+
Object.defineProperty(exports, "LENGTH_TEXT_FIELD_ERROR_INFO", { enumerable: true, get: function () { return textField_1.LENGTH_TEXT_FIELD_ERROR_INFO; } });
|
171
|
+
Object.defineProperty(exports, "textField", { enumerable: true, get: function () { return textField_1.textField; } });
|
172
|
+
var toPlainError_1 = require("./toPlainError");
|
173
|
+
Object.defineProperty(exports, "toPlainError", { enumerable: true, get: function () { return toPlainError_1.toPlainError; } });
|
174
|
+
var toPrettyError_1 = require("./toPrettyError");
|
175
|
+
Object.defineProperty(exports, "toPrettyError", { enumerable: true, get: function () { return toPrettyError_1.toPrettyError; } });
|
176
|
+
var transform_1 = require("./transform");
|
177
|
+
Object.defineProperty(exports, "transform", { enumerable: true, get: function () { return transform_1.transform; } });
|
180
178
|
var uploadedFile_1 = require("./uploadedFile");
|
181
|
-
Object.defineProperty(exports, "uploadedFile", { enumerable: true, get: function () { return uploadedFile_1.uploadedFile; } });
|
182
|
-
Object.defineProperty(exports, "FILE_UPLOAD_ERROR_INFO", { enumerable: true, get: function () { return uploadedFile_1.FILE_UPLOAD_ERROR_INFO; } });
|
183
179
|
Object.defineProperty(exports, "FILE_LOADING_ERROR_INFO", { enumerable: true, get: function () { return uploadedFile_1.FILE_LOADING_ERROR_INFO; } });
|
184
180
|
Object.defineProperty(exports, "FILE_REQUIRED_ERROR_INFO", { enumerable: true, get: function () { return uploadedFile_1.FILE_REQUIRED_ERROR_INFO; } });
|
185
181
|
Object.defineProperty(exports, "FILE_RESTRICTION_ERROR_INFO", { enumerable: true, get: function () { return uploadedFile_1.FILE_RESTRICTION_ERROR_INFO; } });
|
182
|
+
Object.defineProperty(exports, "FILE_UPLOAD_ERROR_INFO", { enumerable: true, get: function () { return uploadedFile_1.FILE_UPLOAD_ERROR_INFO; } });
|
183
|
+
Object.defineProperty(exports, "uploadedFile", { enumerable: true, get: function () { return uploadedFile_1.uploadedFile; } });
|
186
184
|
var uploadedFileList_1 = require("./uploadedFileList");
|
187
|
-
Object.defineProperty(exports, "uploadedFileList", { enumerable: true, get: function () { return uploadedFileList_1.uploadedFileList; } });
|
188
185
|
Object.defineProperty(exports, "FILE_LIST_NOT_ARRAY_ERROR_INFO", { enumerable: true, get: function () { return uploadedFileList_1.FILE_LIST_NOT_ARRAY_ERROR_INFO; } });
|
186
|
+
Object.defineProperty(exports, "uploadedFileList", { enumerable: true, get: function () { return uploadedFileList_1.uploadedFileList; } });
|
187
|
+
var when_1 = require("./when");
|
188
|
+
Object.defineProperty(exports, "when", { enumerable: true, get: function () { return when_1.when; } });
|
package/node/innFL/index.d.ts
CHANGED
package/node/innFL/index.js
CHANGED
@@ -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("./innFL"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./innFL"), exports);
|
package/node/innIP/index.d.ts
CHANGED
package/node/innIP/index.js
CHANGED
@@ -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("./innIP"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./innIP"), 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("./innTwelveSymbols"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./innTwelveSymbols"), exports);
|
package/node/innUL/index.d.ts
CHANGED
package/node/innUL/index.js
CHANGED
@@ -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("./innUL"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./innUL"), exports);
|
package/node/length/index.d.ts
CHANGED
package/node/length/index.js
CHANGED
@@ -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("./length"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./length"), exports);
|
package/node/max/index.d.ts
CHANGED
package/node/max/index.js
CHANGED
@@ -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("./max"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./max"), exports);
|
package/node/max/max.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { type ValidationContext
|
2
|
-
type BaseMaxValidationTypes = number | string |
|
1
|
+
import { createRule, type ValidationContext } from '../core';
|
2
|
+
type BaseMaxValidationTypes = number | string | unknown[];
|
3
3
|
type CommonThreshold = number | Date;
|
4
|
-
type MaxParams<
|
4
|
+
type MaxParams<TValidationType> = {
|
5
5
|
/**
|
6
6
|
* Сообщение ошибки
|
7
7
|
*/
|
8
|
-
getMessage?: (threshold: CommonThreshold, value:
|
8
|
+
getMessage?: (threshold: CommonThreshold, value: TValidationType, ctx: ValidationContext) => string;
|
9
9
|
};
|
10
10
|
/**
|
11
11
|
* Проверяет значение на соответствие максимуму. Работает с: string, array, Date, number
|
@@ -21,6 +21,6 @@ type MaxParams<ValidationType> = {
|
|
21
21
|
* date(max(new Date())));
|
22
22
|
* ```
|
23
23
|
*/
|
24
|
-
export declare function max<
|
25
|
-
export declare function max<
|
24
|
+
export declare function max<TValidationType extends Date, TLastSchemaValues extends Record<string, unknown> = {}>(threshold: Date, params?: MaxParams<TValidationType>): ReturnType<typeof createRule<Date, TLastSchemaValues>>;
|
25
|
+
export declare function max<TValidationType extends BaseMaxValidationTypes, TLastSchemaValues extends Record<string, unknown> = {}>(threshold: number, params?: MaxParams<TValidationType>): ReturnType<typeof createRule<BaseMaxValidationTypes, TLastSchemaValues>>;
|
26
26
|
export {};
|
package/node/max/max.js
CHANGED
@@ -4,6 +4,7 @@ exports.max = max;
|
|
4
4
|
const core_1 = require("../core");
|
5
5
|
const constants_1 = require("./constants");
|
6
6
|
function max(threshold, params) {
|
7
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <>
|
7
8
|
return (0, core_1.createRule)((value, ctx) => {
|
8
9
|
const getMessage = (typeMessage) => (params === null || params === void 0 ? void 0 : params.getMessage)
|
9
10
|
? params.getMessage(threshold, value, ctx)
|
package/node/min/index.d.ts
CHANGED
package/node/min/index.js
CHANGED
@@ -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("./min"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./min"), exports);
|
package/node/min/min.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { type ValidationContext
|
2
|
-
type BaseMinValidationTypes = number | string |
|
1
|
+
import { createRule, type ValidationContext } from '../core';
|
2
|
+
type BaseMinValidationTypes = number | string | unknown[];
|
3
3
|
type CommonThreshold = number | Date;
|
4
|
-
type MinParams<
|
4
|
+
type MinParams<TValidationType> = {
|
5
5
|
/**
|
6
6
|
* Сообщение ошибки
|
7
7
|
*/
|
8
|
-
getMessage?: (threshold: CommonThreshold, value:
|
8
|
+
getMessage?: (threshold: CommonThreshold, value: TValidationType, ctx: ValidationContext) => string;
|
9
9
|
};
|
10
10
|
/**
|
11
11
|
* Проверяет значение на соответствие минимуму. Работает с: string, array, Date, number
|
@@ -21,6 +21,6 @@ type MinParams<ValidationType> = {
|
|
21
21
|
* date(min(new Date())));
|
22
22
|
* ```
|
23
23
|
*/
|
24
|
-
export declare function min<
|
25
|
-
export declare function min<
|
24
|
+
export declare function min<TValidationType extends Date, TLastSchemaValues extends Record<string, unknown> = {}>(threshold: Date, params?: MinParams<TValidationType>): ReturnType<typeof createRule<Date, TLastSchemaValues>>;
|
25
|
+
export declare function min<TValidationType extends BaseMinValidationTypes, TLastSchemaValues extends Record<string, unknown> = {}>(threshold: number, params?: MinParams<TValidationType>): ReturnType<typeof createRule<BaseMinValidationTypes, TLastSchemaValues>>;
|
26
26
|
export {};
|
package/node/min/min.js
CHANGED
@@ -4,6 +4,7 @@ exports.min = min;
|
|
4
4
|
const core_1 = require("../core");
|
5
5
|
const constants_1 = require("./constants");
|
6
6
|
function min(threshold, params) {
|
7
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <>
|
7
8
|
return (0, core_1.createRule)((value, ctx) => {
|
8
9
|
const getMessage = (typeMessage) => (params === null || params === void 0 ? void 0 : params.getMessage)
|
9
10
|
? params.getMessage(threshold, value, ctx)
|
@@ -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("./minYearsOld"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./minYearsOld"), exports);
|
@@ -20,5 +20,5 @@ type MinYearsOldParams = {
|
|
20
20
|
* );
|
21
21
|
* ```
|
22
22
|
*/
|
23
|
-
export declare function minYearsOld<
|
23
|
+
export declare function minYearsOld<TValidationType, TLastSchemaValues extends Record<string, unknown> = {}>(age: number, params?: MinYearsOldParams): (value: TValidationType, prevCtx?: import("../core").ValidationContext<TLastSchemaValues> | undefined) => ReturnType<import("../core").IndependentValidationRule<TValidationType, TLastSchemaValues>>;
|
24
24
|
export {};
|
@@ -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("./mobilePhone"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./mobilePhone"), exports);
|
package/node/number/index.d.ts
CHANGED
package/node/number/index.js
CHANGED
@@ -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("./number"), exports);
|
18
17
|
__exportStar(require("./constants"), exports);
|
18
|
+
__exportStar(require("./number"), exports);
|
package/node/number/number.d.ts
CHANGED
@@ -15,5 +15,5 @@ type AdditionalDefOptions = {
|
|
15
15
|
* validate(24);
|
16
16
|
* ```
|
17
17
|
*/
|
18
|
-
export declare const number: <TLastSchemaValues extends Record<string, unknown>>(...rules: ValidationRule<number, TLastSchemaValues>[]) => import("../core").
|
18
|
+
export declare const number: <TLastSchemaValues extends Record<string, unknown>>(...rules: ValidationRule<number, TLastSchemaValues>[]) => import("../core").IGuard<TLastSchemaValues, AdditionalDefOptions>;
|
19
19
|
export {};
|