@decaf-ts/decorator-validation 1.20.0 → 1.21.0
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/lib/cjs/index.cjs +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/types/constants/index.d.cts +2 -2
- package/lib/types/constants/index.d.mts +2 -2
- package/lib/types/index.d.cts +7 -7
- package/lib/types/index.d.mts +7 -7
- package/lib/types/model/Builder.d.cts +3 -3
- package/lib/types/model/Builder.d.mts +3 -3
- package/lib/types/model/Model.d.cts +4 -4
- package/lib/types/model/Model.d.mts +4 -4
- package/lib/types/model/ModelErrorDefinition.d.cts +1 -1
- package/lib/types/model/ModelErrorDefinition.d.mts +1 -1
- package/lib/types/model/ModelRegistry.d.cts +3 -3
- package/lib/types/model/ModelRegistry.d.mts +3 -3
- package/lib/types/model/construction.d.cts +1 -1
- package/lib/types/model/construction.d.mts +1 -1
- package/lib/types/model/index.d.cts +10 -10
- package/lib/types/model/index.d.mts +10 -10
- package/lib/types/model/types.d.cts +3 -3
- package/lib/types/model/types.d.mts +3 -3
- package/lib/types/model/utils.d.cts +1 -1
- package/lib/types/model/utils.d.mts +1 -1
- package/lib/types/model/validation.d.cts +3 -3
- package/lib/types/model/validation.d.mts +3 -3
- package/lib/types/overrides/Metadata.d.cts +3 -3
- package/lib/types/overrides/Metadata.d.mts +3 -3
- package/lib/types/overrides/index.d.cts +3 -3
- package/lib/types/overrides/index.d.mts +3 -3
- package/lib/types/overrides/types.d.cts +1 -1
- package/lib/types/overrides/types.d.mts +1 -1
- package/lib/types/types/index.d.cts +1 -1
- package/lib/types/types/index.d.mts +1 -1
- package/lib/types/types/validation.d.cts +2 -2
- package/lib/types/types/validation.d.mts +2 -2
- package/lib/types/utils/index.d.cts +11 -11
- package/lib/types/utils/index.d.mts +11 -11
- package/lib/types/utils/serialization.d.cts +1 -1
- package/lib/types/utils/serialization.d.mts +1 -1
- package/lib/types/utils/serializers.d.cts +2 -2
- package/lib/types/utils/serializers.d.mts +2 -2
- package/lib/types/utils/types.d.cts +1 -1
- package/lib/types/utils/types.d.mts +1 -1
- package/lib/types/validation/Validation.d.cts +2 -2
- package/lib/types/validation/Validation.d.mts +2 -2
- package/lib/types/validation/Validators/AsyncValidator.d.cts +3 -3
- package/lib/types/validation/Validators/AsyncValidator.d.mts +3 -3
- package/lib/types/validation/Validators/BaseValidator.d.cts +3 -3
- package/lib/types/validation/Validators/BaseValidator.d.mts +3 -3
- package/lib/types/validation/Validators/DateValidator.d.cts +2 -2
- package/lib/types/validation/Validators/DateValidator.d.mts +2 -2
- package/lib/types/validation/Validators/DiffValidator.d.cts +3 -3
- package/lib/types/validation/Validators/DiffValidator.d.mts +3 -3
- package/lib/types/validation/Validators/EmailValidator.d.cts +2 -2
- package/lib/types/validation/Validators/EmailValidator.d.mts +2 -2
- package/lib/types/validation/Validators/EqualsValidator.d.cts +3 -3
- package/lib/types/validation/Validators/EqualsValidator.d.mts +3 -3
- package/lib/types/validation/Validators/GreaterThanOrEqualValidator.d.cts +3 -3
- package/lib/types/validation/Validators/GreaterThanOrEqualValidator.d.mts +3 -3
- package/lib/types/validation/Validators/GreaterThanValidator.d.cts +3 -3
- package/lib/types/validation/Validators/GreaterThanValidator.d.mts +3 -3
- package/lib/types/validation/Validators/LessThanOrEqualValidator.d.cts +3 -3
- package/lib/types/validation/Validators/LessThanOrEqualValidator.d.mts +3 -3
- package/lib/types/validation/Validators/LessThanValidator.d.cts +3 -3
- package/lib/types/validation/Validators/LessThanValidator.d.mts +3 -3
- package/lib/types/validation/Validators/ListValidator.d.cts +2 -2
- package/lib/types/validation/Validators/ListValidator.d.mts +2 -2
- package/lib/types/validation/Validators/MaxLengthValidator.d.cts +2 -2
- package/lib/types/validation/Validators/MaxLengthValidator.d.mts +2 -2
- package/lib/types/validation/Validators/MaxValidator.d.cts +2 -2
- package/lib/types/validation/Validators/MaxValidator.d.mts +2 -2
- package/lib/types/validation/Validators/MinLengthValidator.d.cts +2 -2
- package/lib/types/validation/Validators/MinLengthValidator.d.mts +2 -2
- package/lib/types/validation/Validators/MinValidator.d.cts +2 -2
- package/lib/types/validation/Validators/MinValidator.d.mts +2 -2
- package/lib/types/validation/Validators/OptionValidator.d.cts +2 -2
- package/lib/types/validation/Validators/OptionValidator.d.mts +2 -2
- package/lib/types/validation/Validators/PasswordValidator.d.cts +2 -2
- package/lib/types/validation/Validators/PasswordValidator.d.mts +2 -2
- package/lib/types/validation/Validators/PatternValidator.d.cts +2 -2
- package/lib/types/validation/Validators/PatternValidator.d.mts +2 -2
- package/lib/types/validation/Validators/RequiredValidator.d.cts +2 -2
- package/lib/types/validation/Validators/RequiredValidator.d.mts +2 -2
- package/lib/types/validation/Validators/StepValidator.d.cts +2 -2
- package/lib/types/validation/Validators/StepValidator.d.mts +2 -2
- package/lib/types/validation/Validators/TypeValidator.d.cts +2 -2
- package/lib/types/validation/Validators/TypeValidator.d.mts +2 -2
- package/lib/types/validation/Validators/URLValidator.d.cts +2 -2
- package/lib/types/validation/Validators/URLValidator.d.mts +2 -2
- package/lib/types/validation/Validators/Validator.d.cts +3 -3
- package/lib/types/validation/Validators/Validator.d.mts +3 -3
- package/lib/types/validation/Validators/ValidatorRegistry.d.cts +3 -3
- package/lib/types/validation/Validators/ValidatorRegistry.d.mts +3 -3
- package/lib/types/validation/Validators/decorators.d.cts +1 -1
- package/lib/types/validation/Validators/decorators.d.mts +1 -1
- package/lib/types/validation/Validators/index.d.cts +26 -26
- package/lib/types/validation/Validators/index.d.mts +26 -26
- package/lib/types/validation/decorators.d.cts +2 -2
- package/lib/types/validation/decorators.d.mts +2 -2
- package/lib/types/validation/index.d.cts +4 -4
- package/lib/types/validation/index.d.mts +4 -4
- package/lib/types/validation/types.d.cts +2 -2
- package/lib/types/validation/types.d.mts +2 -2
- package/package.json +1 -1
- package/lib/types/constants/errors.d.ts +0 -17
- package/lib/types/constants/index.d.ts +0 -2
- package/lib/types/constants/validation.d.ts +0 -16
- package/lib/types/index.d.ts +0 -20
- package/lib/types/model/Builder.d.ts +0 -86
- package/lib/types/model/Model.d.ts +0 -286
- package/lib/types/model/ModelErrorDefinition.d.ts +0 -22
- package/lib/types/model/ModelRegistry.d.ts +0 -181
- package/lib/types/model/constants.d.ts +0 -65
- package/lib/types/model/construction.d.ts +0 -46
- package/lib/types/model/decorators.d.ts +0 -47
- package/lib/types/model/index.d.ts +0 -10
- package/lib/types/model/types.d.ts +0 -145
- package/lib/types/model/utils.d.ts +0 -13
- package/lib/types/model/validation.d.ts +0 -92
- package/lib/types/overrides/Metadata.d.ts +0 -132
- package/lib/types/overrides/index.d.ts +0 -4
- package/lib/types/overrides/overrides.d.ts +0 -1
- package/lib/types/overrides/types.d.ts +0 -17
- package/lib/types/types/index.d.ts +0 -1
- package/lib/types/types/validation.d.ts +0 -28
- package/lib/types/utils/DateBuilder.d.ts +0 -121
- package/lib/types/utils/PathProxy.d.ts +0 -43
- package/lib/types/utils/constants.d.ts +0 -32
- package/lib/types/utils/dates.d.ts +0 -86
- package/lib/types/utils/equality.d.ts +0 -56
- package/lib/types/utils/hashing.d.ts +0 -82
- package/lib/types/utils/index.d.ts +0 -11
- package/lib/types/utils/registry.d.ts +0 -68
- package/lib/types/utils/serialization.d.ts +0 -12
- package/lib/types/utils/serializers.d.ts +0 -41
- package/lib/types/utils/strings.d.ts +0 -25
- package/lib/types/utils/types.d.ts +0 -35
- package/lib/types/validation/Validation.d.ts +0 -53
- package/lib/types/validation/Validators/AsyncValidator.d.ts +0 -72
- package/lib/types/validation/Validators/BaseValidator.d.ts +0 -118
- package/lib/types/validation/Validators/DateValidator.d.ts +0 -60
- package/lib/types/validation/Validators/DiffValidator.d.ts +0 -29
- package/lib/types/validation/Validators/EmailValidator.d.ts +0 -60
- package/lib/types/validation/Validators/EqualsValidator.d.ts +0 -29
- package/lib/types/validation/Validators/GreaterThanOrEqualValidator.d.ts +0 -29
- package/lib/types/validation/Validators/GreaterThanValidator.d.ts +0 -29
- package/lib/types/validation/Validators/LessThanOrEqualValidator.d.ts +0 -29
- package/lib/types/validation/Validators/LessThanValidator.d.ts +0 -29
- package/lib/types/validation/Validators/ListValidator.d.ts +0 -66
- package/lib/types/validation/Validators/MaxLengthValidator.d.ts +0 -29
- package/lib/types/validation/Validators/MaxValidator.d.ts +0 -74
- package/lib/types/validation/Validators/MinLengthValidator.d.ts +0 -29
- package/lib/types/validation/Validators/MinValidator.d.ts +0 -74
- package/lib/types/validation/Validators/OptionValidator.d.ts +0 -29
- package/lib/types/validation/Validators/PasswordValidator.d.ts +0 -28
- package/lib/types/validation/Validators/PatternValidator.d.ts +0 -103
- package/lib/types/validation/Validators/RequiredValidator.d.ts +0 -74
- package/lib/types/validation/Validators/StepValidator.d.ts +0 -29
- package/lib/types/validation/Validators/TypeValidator.d.ts +0 -79
- package/lib/types/validation/Validators/URLValidator.d.ts +0 -61
- package/lib/types/validation/Validators/Validator.d.ts +0 -65
- package/lib/types/validation/Validators/ValidatorRegistry.d.ts +0 -41
- package/lib/types/validation/Validators/constants.d.ts +0 -157
- package/lib/types/validation/Validators/decorators.d.ts +0 -12
- package/lib/types/validation/Validators/index.d.ts +0 -26
- package/lib/types/validation/Validators/utils.d.ts +0 -75
- package/lib/types/validation/decorators.d.ts +0 -313
- package/lib/types/validation/index.d.ts +0 -9
- package/lib/types/validation/types.d.ts +0 -309
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { EqualsValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/index.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { EqualsValidatorOptions } from "../types.d.cts";
|
|
3
|
+
import type { PathProxy } from "../../utils/index.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Equals Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { EqualsValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/index.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { EqualsValidatorOptions } from "../types.d.mts";
|
|
3
|
+
import type { PathProxy } from "../../utils/index.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Equals Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { GreaterThanOrEqualValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { GreaterThanOrEqualValidatorOptions } from "../types.d.cts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Greater Than or Equal Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { GreaterThanOrEqualValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { GreaterThanOrEqualValidatorOptions } from "../types.d.mts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Greater Than or Equal Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { GreaterThanValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { GreaterThanValidatorOptions } from "../types.d.cts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Greater Than Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { GreaterThanValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { GreaterThanValidatorOptions } from "../types.d.mts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Greater Than Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import type { LessThanOrEqualValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import type { LessThanOrEqualValidatorOptions } from "../types.d.cts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Less Than or Equal Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import type { LessThanOrEqualValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import type { LessThanOrEqualValidatorOptions } from "../types.d.mts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Less Than or Equal Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { LessThanValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { LessThanValidatorOptions } from "../types.d.cts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Less Than Validator
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { LessThanValidatorOptions } from "../types.
|
|
3
|
-
import type { PathProxy } from "../../utils/PathProxy.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { LessThanValidatorOptions } from "../types.d.mts";
|
|
3
|
+
import type { PathProxy } from "../../utils/PathProxy.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Less Than Validator
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { ListValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { ListValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if elements in a list or set match expected types
|
|
5
5
|
* @summary The ListValidator validates that all elements in an array or Set match the expected types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { ListValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { ListValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if elements in a list or set match expected types
|
|
5
5
|
* @summary The ListValidator validates that all elements in an array or Set match the expected types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MaxLengthValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { MaxLengthValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Maximum Length Validator
|
|
5
5
|
* @description Validates strings and Arrays on their maximum length
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MaxLengthValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { MaxLengthValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Maximum Length Validator
|
|
5
5
|
* @description Validates strings and Arrays on their maximum length
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MaxValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { MaxValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is less than or equal to a maximum
|
|
5
5
|
* @summary The MaxValidator checks if a numeric value, date, or string is less than or equal to
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MaxValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { MaxValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is less than or equal to a maximum
|
|
5
5
|
* @summary The MaxValidator checks if a numeric value, date, or string is less than or equal to
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MinLengthValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { MinLengthValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Minimum Length Validator
|
|
5
5
|
* @description Validates strings and Arrays on their minimum length
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MinLengthValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { MinLengthValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Minimum Length Validator
|
|
5
5
|
* @description Validates strings and Arrays on their minimum length
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MinValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { MinValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is greater than or equal to a minimum
|
|
5
5
|
* @summary The MinValidator checks if a numeric value, date, or string is greater than or equal to
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { MinValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { MinValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is greater than or equal to a minimum
|
|
5
5
|
* @summary The MinValidator checks if a numeric value, date, or string is greater than or equal to
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { EnumValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { EnumValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Option Validator
|
|
5
5
|
* @description Validates properties against an object or a list of accepted values
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { EnumValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { EnumValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Option Validator
|
|
5
5
|
* @description Validates properties against an object or a list of accepted values
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PatternValidator } from "./PatternValidator.
|
|
2
|
-
import { PatternValidatorOptions } from "../types.
|
|
1
|
+
import { PatternValidator } from "./PatternValidator.d.cts";
|
|
2
|
+
import { PatternValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Handles Password Validation
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PatternValidator } from "./PatternValidator.
|
|
2
|
-
import { PatternValidatorOptions } from "../types.
|
|
1
|
+
import { PatternValidator } from "./PatternValidator.d.mts";
|
|
2
|
+
import { PatternValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @summary Handles Password Validation
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { PatternValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { PatternValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Regular expression for parsing string patterns with flags
|
|
5
5
|
* @summary This regular expression is used to parse string patterns in the format "/pattern/flags".
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { PatternValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { PatternValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Regular expression for parsing string patterns with flags
|
|
5
5
|
* @summary This regular expression is used to parse string patterns in the format "/pattern/flags".
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { ValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { ValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is present and not empty
|
|
5
5
|
* @summary The RequiredValidator ensures that a value is provided and not empty.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { ValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { ValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is present and not empty
|
|
5
5
|
* @summary The RequiredValidator ensures that a value is provided and not empty.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { TypeValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.cts";
|
|
2
|
+
import { TypeValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is of the expected type(s)
|
|
5
5
|
* @summary The TypeValidator ensures that a value matches one of the specified types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Validator } from "./Validator.
|
|
2
|
-
import { TypeValidatorOptions } from "../types.
|
|
1
|
+
import { Validator } from "./Validator.d.mts";
|
|
2
|
+
import { TypeValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a value is of the expected type(s)
|
|
5
5
|
* @summary The TypeValidator ensures that a value matches one of the specified types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PatternValidator } from "./PatternValidator.
|
|
2
|
-
import { PatternValidatorOptions } from "../types.
|
|
1
|
+
import { PatternValidator } from "./PatternValidator.d.cts";
|
|
2
|
+
import { PatternValidatorOptions } from "../types.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a string is a valid URL
|
|
5
5
|
* @summary The URLValidator checks if a string matches a standard URL pattern.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PatternValidator } from "./PatternValidator.
|
|
2
|
-
import { PatternValidatorOptions } from "../types.
|
|
1
|
+
import { PatternValidator } from "./PatternValidator.d.mts";
|
|
2
|
+
import { PatternValidatorOptions } from "../types.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description Validator for checking if a string is a valid URL
|
|
5
5
|
* @summary The URLValidator checks if a string matches a standard URL pattern.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ValidatorOptions } from "../types.
|
|
2
|
-
import type { PathProxy } from "../../utils/index.
|
|
3
|
-
import { BaseValidator } from "./BaseValidator.
|
|
1
|
+
import { ValidatorOptions } from "../types.d.cts";
|
|
2
|
+
import type { PathProxy } from "../../utils/index.d.cts";
|
|
3
|
+
import { BaseValidator } from "./BaseValidator.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* Abstract class for defining synchronous validators.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ValidatorOptions } from "../types.
|
|
2
|
-
import type { PathProxy } from "../../utils/index.
|
|
3
|
-
import { BaseValidator } from "./BaseValidator.
|
|
1
|
+
import { ValidatorOptions } from "../types.d.mts";
|
|
2
|
+
import type { PathProxy } from "../../utils/index.d.mts";
|
|
3
|
+
import { BaseValidator } from "./BaseValidator.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* Abstract class for defining synchronous validators.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ValidatorDefinition } from "../types.
|
|
2
|
-
import { IValidatorRegistry } from "../types.
|
|
3
|
-
import { Validator } from "./Validator.
|
|
1
|
+
import { ValidatorDefinition } from "../types.d.cts";
|
|
2
|
+
import { IValidatorRegistry } from "../types.d.cts";
|
|
3
|
+
import { Validator } from "./Validator.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Base Implementation of a Validator Registry
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ValidatorDefinition } from "../types.
|
|
2
|
-
import { IValidatorRegistry } from "../types.
|
|
3
|
-
import { Validator } from "./Validator.
|
|
1
|
+
import { ValidatorDefinition } from "../types.d.mts";
|
|
2
|
+
import { IValidatorRegistry } from "../types.d.mts";
|
|
3
|
+
import { Validator } from "./Validator.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @summary Base Implementation of a Validator Registry
|
|
6
6
|
*
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from "./constants.
|
|
2
|
-
export * from "./AsyncValidator.
|
|
3
|
-
export * from "./DateValidator.
|
|
4
|
-
export * from "./decorators.
|
|
5
|
-
export * from "./DiffValidator.
|
|
6
|
-
export * from "./EmailValidator.
|
|
7
|
-
export * from "./EqualsValidator.
|
|
8
|
-
export * from "./GreaterThanValidator.
|
|
9
|
-
export * from "./GreaterThanOrEqualValidator.
|
|
10
|
-
export * from "./LessThanValidator.
|
|
11
|
-
export * from "./LessThanOrEqualValidator.
|
|
12
|
-
export * from "./ListValidator.
|
|
13
|
-
export * from "./MaxLengthValidator.
|
|
14
|
-
export * from "./MaxValidator.
|
|
15
|
-
export * from "./MinLengthValidator.
|
|
16
|
-
export * from "./MinValidator.
|
|
17
|
-
export * from "./OptionValidator.
|
|
18
|
-
export * from "./PasswordValidator.
|
|
19
|
-
export * from "./PatternValidator.
|
|
20
|
-
export * from "./RequiredValidator.
|
|
21
|
-
export * from "./StepValidator.
|
|
22
|
-
export * from "./TypeValidator.
|
|
23
|
-
export * from "./URLValidator.
|
|
24
|
-
export * from "./Validator.
|
|
25
|
-
export * from "./ValidatorRegistry.
|
|
26
|
-
export * from "./utils.
|
|
1
|
+
export * from "./constants.d.cts";
|
|
2
|
+
export * from "./AsyncValidator.d.cts";
|
|
3
|
+
export * from "./DateValidator.d.cts";
|
|
4
|
+
export * from "./decorators.d.cts";
|
|
5
|
+
export * from "./DiffValidator.d.cts";
|
|
6
|
+
export * from "./EmailValidator.d.cts";
|
|
7
|
+
export * from "./EqualsValidator.d.cts";
|
|
8
|
+
export * from "./GreaterThanValidator.d.cts";
|
|
9
|
+
export * from "./GreaterThanOrEqualValidator.d.cts";
|
|
10
|
+
export * from "./LessThanValidator.d.cts";
|
|
11
|
+
export * from "./LessThanOrEqualValidator.d.cts";
|
|
12
|
+
export * from "./ListValidator.d.cts";
|
|
13
|
+
export * from "./MaxLengthValidator.d.cts";
|
|
14
|
+
export * from "./MaxValidator.d.cts";
|
|
15
|
+
export * from "./MinLengthValidator.d.cts";
|
|
16
|
+
export * from "./MinValidator.d.cts";
|
|
17
|
+
export * from "./OptionValidator.d.cts";
|
|
18
|
+
export * from "./PasswordValidator.d.cts";
|
|
19
|
+
export * from "./PatternValidator.d.cts";
|
|
20
|
+
export * from "./RequiredValidator.d.cts";
|
|
21
|
+
export * from "./StepValidator.d.cts";
|
|
22
|
+
export * from "./TypeValidator.d.cts";
|
|
23
|
+
export * from "./URLValidator.d.cts";
|
|
24
|
+
export * from "./Validator.d.cts";
|
|
25
|
+
export * from "./ValidatorRegistry.d.cts";
|
|
26
|
+
export * from "./utils.d.cts";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from "./constants.
|
|
2
|
-
export * from "./AsyncValidator.
|
|
3
|
-
export * from "./DateValidator.
|
|
4
|
-
export * from "./decorators.
|
|
5
|
-
export * from "./DiffValidator.
|
|
6
|
-
export * from "./EmailValidator.
|
|
7
|
-
export * from "./EqualsValidator.
|
|
8
|
-
export * from "./GreaterThanValidator.
|
|
9
|
-
export * from "./GreaterThanOrEqualValidator.
|
|
10
|
-
export * from "./LessThanValidator.
|
|
11
|
-
export * from "./LessThanOrEqualValidator.
|
|
12
|
-
export * from "./ListValidator.
|
|
13
|
-
export * from "./MaxLengthValidator.
|
|
14
|
-
export * from "./MaxValidator.
|
|
15
|
-
export * from "./MinLengthValidator.
|
|
16
|
-
export * from "./MinValidator.
|
|
17
|
-
export * from "./OptionValidator.
|
|
18
|
-
export * from "./PasswordValidator.
|
|
19
|
-
export * from "./PatternValidator.
|
|
20
|
-
export * from "./RequiredValidator.
|
|
21
|
-
export * from "./StepValidator.
|
|
22
|
-
export * from "./TypeValidator.
|
|
23
|
-
export * from "./URLValidator.
|
|
24
|
-
export * from "./Validator.
|
|
25
|
-
export * from "./ValidatorRegistry.
|
|
26
|
-
export * from "./utils.
|
|
1
|
+
export * from "./constants.d.mts";
|
|
2
|
+
export * from "./AsyncValidator.d.mts";
|
|
3
|
+
export * from "./DateValidator.d.mts";
|
|
4
|
+
export * from "./decorators.d.mts";
|
|
5
|
+
export * from "./DiffValidator.d.mts";
|
|
6
|
+
export * from "./EmailValidator.d.mts";
|
|
7
|
+
export * from "./EqualsValidator.d.mts";
|
|
8
|
+
export * from "./GreaterThanValidator.d.mts";
|
|
9
|
+
export * from "./GreaterThanOrEqualValidator.d.mts";
|
|
10
|
+
export * from "./LessThanValidator.d.mts";
|
|
11
|
+
export * from "./LessThanOrEqualValidator.d.mts";
|
|
12
|
+
export * from "./ListValidator.d.mts";
|
|
13
|
+
export * from "./MaxLengthValidator.d.mts";
|
|
14
|
+
export * from "./MaxValidator.d.mts";
|
|
15
|
+
export * from "./MinLengthValidator.d.mts";
|
|
16
|
+
export * from "./MinValidator.d.mts";
|
|
17
|
+
export * from "./OptionValidator.d.mts";
|
|
18
|
+
export * from "./PasswordValidator.d.mts";
|
|
19
|
+
export * from "./PatternValidator.d.mts";
|
|
20
|
+
export * from "./RequiredValidator.d.mts";
|
|
21
|
+
export * from "./StepValidator.d.mts";
|
|
22
|
+
export * from "./TypeValidator.d.mts";
|
|
23
|
+
export * from "./URLValidator.d.mts";
|
|
24
|
+
export * from "./Validator.d.mts";
|
|
25
|
+
export * from "./ValidatorRegistry.d.mts";
|
|
26
|
+
export * from "./utils.d.mts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComparisonValidatorOptions, DateValidatorOptions, ListValidatorOptions, ValidatorOptions } from "./types.
|
|
2
|
-
import { ModelConstructor } from "../model/types.
|
|
1
|
+
import { ComparisonValidatorOptions, DateValidatorOptions, ListValidatorOptions, ValidatorOptions } from "./types.d.cts";
|
|
2
|
+
import { ModelConstructor } from "../model/types.d.cts";
|
|
3
3
|
import { Constructor } from "@decaf-ts/decoration";
|
|
4
4
|
/**
|
|
5
5
|
* @description Combined property decorator factory for metadata and attribute marking
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComparisonValidatorOptions, DateValidatorOptions, ListValidatorOptions, ValidatorOptions } from "./types.
|
|
2
|
-
import { ModelConstructor } from "../model/types.
|
|
1
|
+
import { ComparisonValidatorOptions, DateValidatorOptions, ListValidatorOptions, ValidatorOptions } from "./types.d.mts";
|
|
2
|
+
import { ModelConstructor } from "../model/types.d.mts";
|
|
3
3
|
import { Constructor } from "@decaf-ts/decoration";
|
|
4
4
|
/**
|
|
5
5
|
* @description Combined property decorator factory for metadata and attribute marking
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the validation functionality, including validators, decorators, types, and the Validation class.
|
|
4
4
|
* @module decorator-validation/validation
|
|
5
5
|
*/
|
|
6
|
-
export * from "./Validators/index.
|
|
7
|
-
export * from "./decorators.
|
|
8
|
-
export * from "./types.
|
|
9
|
-
export * from "./Validation.
|
|
6
|
+
export * from "./Validators/index.d.cts";
|
|
7
|
+
export * from "./decorators.d.cts";
|
|
8
|
+
export * from "./types.d.cts";
|
|
9
|
+
export * from "./Validation.d.cts";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the validation functionality, including validators, decorators, types, and the Validation class.
|
|
4
4
|
* @module decorator-validation/validation
|
|
5
5
|
*/
|
|
6
|
-
export * from "./Validators/index.
|
|
7
|
-
export * from "./decorators.
|
|
8
|
-
export * from "./types.
|
|
9
|
-
export * from "./Validation.
|
|
6
|
+
export * from "./Validators/index.d.mts";
|
|
7
|
+
export * from "./decorators.d.mts";
|
|
8
|
+
export * from "./types.d.mts";
|
|
9
|
+
export * from "./Validation.d.mts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { ValidationKeys, Validator } from "./Validators/index.
|
|
3
|
-
import { IRegistry } from "../utils/index.
|
|
2
|
+
import { ValidationKeys, Validator } from "./Validators/index.d.cts";
|
|
3
|
+
import { IRegistry } from "../utils/index.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @description Type definition for metadata used by validation decorators
|
|
6
6
|
* @summary Defines the structure of metadata attached to properties by validation decorators.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { ValidationKeys, Validator } from "./Validators/index.
|
|
3
|
-
import { IRegistry } from "../utils/index.
|
|
2
|
+
import { ValidationKeys, Validator } from "./Validators/index.d.mts";
|
|
3
|
+
import { IRegistry } from "../utils/index.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @description Type definition for metadata used by validation decorators
|
|
6
6
|
* @summary Defines the structure of metadata attached to properties by validation decorators.
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Error messages for comparison validators.
|
|
3
|
-
* @summary Provides a centralized collection of error message templates for comparison-related validation errors.
|
|
4
|
-
* @const COMPARISON_ERROR_MESSAGES
|
|
5
|
-
* @memberOf module:decorator-validation
|
|
6
|
-
*/
|
|
7
|
-
export declare const COMPARISON_ERROR_MESSAGES: {
|
|
8
|
-
INVALID_PATH: string;
|
|
9
|
-
CONTEXT_NOT_OBJECT_COMPARISON: string;
|
|
10
|
-
PROPERTY_INVALID: string;
|
|
11
|
-
PROPERTY_NOT_EXIST: string;
|
|
12
|
-
UNSUPPORTED_TYPES_COMPARISON: string;
|
|
13
|
-
NULL_OR_UNDEFINED_COMPARISON: string;
|
|
14
|
-
INVALID_DATE_COMPARISON: string;
|
|
15
|
-
TYPE_MISMATCH_COMPARISON: string;
|
|
16
|
-
NAN_COMPARISON: string;
|
|
17
|
-
};
|