@warlock.js/seal 3.0.21 → 3.0.23
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/cjs/factory/validators.d.ts +7 -5
- package/cjs/factory/validators.d.ts.map +1 -1
- package/cjs/factory/validators.js +5 -8
- package/cjs/factory/validators.js.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/rules/conditional/forbidden-if-rules.d.ts +54 -0
- package/cjs/rules/conditional/forbidden-if-rules.d.ts.map +1 -0
- package/cjs/rules/conditional/forbidden-if-rules.js +112 -0
- package/cjs/rules/conditional/forbidden-if-rules.js.map +1 -0
- package/cjs/rules/conditional/index.d.ts +1 -0
- package/cjs/rules/conditional/index.d.ts.map +1 -1
- package/cjs/validators/base-validator.d.ts +57 -0
- package/cjs/validators/base-validator.d.ts.map +1 -1
- package/cjs/validators/base-validator.js +140 -3
- package/cjs/validators/base-validator.js.map +1 -1
- package/cjs/validators/index.d.ts +2 -0
- package/cjs/validators/index.d.ts.map +1 -1
- package/cjs/validators/number-validator.d.ts.map +1 -1
- package/cjs/validators/number-validator.js +1 -2
- package/cjs/validators/number-validator.js.map +1 -1
- package/cjs/validators/object-validator.d.ts +1 -1
- package/cjs/validators/object-validator.d.ts.map +1 -1
- package/cjs/validators/object-validator.js +6 -2
- package/cjs/validators/object-validator.js.map +1 -1
- package/cjs/validators/record-validator.d.ts +33 -0
- package/cjs/validators/record-validator.d.ts.map +1 -0
- package/cjs/validators/record-validator.js +70 -0
- package/cjs/validators/record-validator.js.map +1 -0
- package/cjs/validators/scalar-validator.d.ts +4 -0
- package/cjs/validators/scalar-validator.d.ts.map +1 -1
- package/cjs/validators/scalar-validator.js +8 -0
- package/cjs/validators/scalar-validator.js.map +1 -1
- package/cjs/validators/tuple-validator.d.ts +34 -0
- package/cjs/validators/tuple-validator.d.ts.map +1 -0
- package/cjs/validators/tuple-validator.js +79 -0
- package/cjs/validators/tuple-validator.js.map +1 -0
- package/esm/factory/validators.d.ts +7 -5
- package/esm/factory/validators.d.ts.map +1 -1
- package/esm/factory/validators.js +5 -8
- package/esm/factory/validators.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/rules/conditional/forbidden-if-rules.d.ts +54 -0
- package/esm/rules/conditional/forbidden-if-rules.d.ts.map +1 -0
- package/esm/rules/conditional/forbidden-if-rules.js +112 -0
- package/esm/rules/conditional/forbidden-if-rules.js.map +1 -0
- package/esm/rules/conditional/index.d.ts +1 -0
- package/esm/rules/conditional/index.d.ts.map +1 -1
- package/esm/validators/base-validator.d.ts +57 -0
- package/esm/validators/base-validator.d.ts.map +1 -1
- package/esm/validators/base-validator.js +140 -3
- package/esm/validators/base-validator.js.map +1 -1
- package/esm/validators/index.d.ts +2 -0
- package/esm/validators/index.d.ts.map +1 -1
- package/esm/validators/number-validator.d.ts.map +1 -1
- package/esm/validators/number-validator.js +1 -2
- package/esm/validators/number-validator.js.map +1 -1
- package/esm/validators/object-validator.d.ts +1 -1
- package/esm/validators/object-validator.d.ts.map +1 -1
- package/esm/validators/object-validator.js +6 -2
- package/esm/validators/object-validator.js.map +1 -1
- package/esm/validators/record-validator.d.ts +33 -0
- package/esm/validators/record-validator.d.ts.map +1 -0
- package/esm/validators/record-validator.js +70 -0
- package/esm/validators/record-validator.js.map +1 -0
- package/esm/validators/scalar-validator.d.ts +4 -0
- package/esm/validators/scalar-validator.d.ts.map +1 -1
- package/esm/validators/scalar-validator.js +8 -0
- package/esm/validators/scalar-validator.js.map +1 -1
- package/esm/validators/tuple-validator.d.ts +34 -0
- package/esm/validators/tuple-validator.d.ts.map +1 -0
- package/esm/validators/tuple-validator.js +79 -0
- package/esm/validators/tuple-validator.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Schema, ValidationResult } from "../types";
|
|
2
2
|
import type { BaseValidator } from "../validators";
|
|
3
|
-
import { AnyValidator, ArrayValidator, BooleanValidator, DateValidator, FloatValidator, IntValidator, NumberValidator, ObjectValidator, ScalarValidator, StringValidator, UnionValidator } from "../validators";
|
|
3
|
+
import { AnyValidator, ArrayValidator, BooleanValidator, DateValidator, FloatValidator, IntValidator, NumberValidator, ObjectValidator, RecordValidator, ScalarValidator, StringValidator, TupleValidator, UnionValidator } from "../validators";
|
|
4
4
|
/**
|
|
5
5
|
* Seal factory object - creates instances of validators
|
|
6
6
|
*
|
|
@@ -12,10 +12,15 @@ export interface ValidatorV {
|
|
|
12
12
|
schema: T;
|
|
13
13
|
};
|
|
14
14
|
any: () => AnyValidator;
|
|
15
|
-
forbidden: () => AnyValidator;
|
|
16
15
|
array: <T extends BaseValidator>(validator: T, errorMessage?: string) => ArrayValidator & {
|
|
17
16
|
validator: T;
|
|
18
17
|
};
|
|
18
|
+
record: <T extends BaseValidator>(validator: T, errorMessage?: string) => RecordValidator & {
|
|
19
|
+
valueValidator: T;
|
|
20
|
+
};
|
|
21
|
+
tuple: <T extends BaseValidator[]>(validators: T, errorMessage?: string) => TupleValidator & {
|
|
22
|
+
validators: T;
|
|
23
|
+
};
|
|
19
24
|
date: (errorMessage?: string) => DateValidator;
|
|
20
25
|
string: (errorMessage?: string) => StringValidator;
|
|
21
26
|
enum: (values: any, errorMessage?: string) => ScalarValidator;
|
|
@@ -24,9 +29,6 @@ export interface ValidatorV {
|
|
|
24
29
|
float: (errorMessage?: string) => FloatValidator;
|
|
25
30
|
boolean: (errorMessage?: string) => BooleanValidator;
|
|
26
31
|
scalar: (errorMessage?: string) => ScalarValidator;
|
|
27
|
-
localized: (valueValidator?: BaseValidator, errorMessage?: string) => ArrayValidator & {
|
|
28
|
-
validator: BaseValidator;
|
|
29
|
-
};
|
|
30
32
|
union: (validators: BaseValidator[], errorMessage?: string) => UnionValidator;
|
|
31
33
|
validate: <T extends BaseValidator>(schema: T, data: any) => Promise<ValidationResult>;
|
|
32
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/factory/validators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,eAAe,CAAC;AAGvB;;;;GAIG;AACH,eAAO,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/factory/validators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,EACf,MAAM,eAAe,CAAC;AAGvB;;;;GAIG;AACH,eAAO,MAAM,CAAC,EAAE,UA2DU,CAAC;AAE3B,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,CAAC,CAAC,SAAS,MAAM,EACvB,MAAM,EAAE,CAAC,EACT,YAAY,CAAC,EAAE,MAAM,KAClB,eAAe,GAAG;QACrB,MAAM,EAAE,CAAC,CAAC;KACX,CAAC;IACF,GAAG,EAAE,MAAM,YAAY,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC,SAAS,aAAa,EAC7B,SAAS,EAAE,CAAC,EACZ,YAAY,CAAC,EAAE,MAAM,KAClB,cAAc,GAAG;QACpB,SAAS,EAAE,CAAC,CAAC;KACd,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,SAAS,aAAa,EAC9B,SAAS,EAAE,CAAC,EACZ,YAAY,CAAC,EAAE,MAAM,KAClB,eAAe,GAAG;QACrB,cAAc,EAAE,CAAC,CAAC;KACnB,CAAC;IACF,KAAK,EAAE,CAAC,CAAC,SAAS,aAAa,EAAE,EAC/B,UAAU,EAAE,CAAC,EACb,YAAY,CAAC,EAAE,MAAM,KAClB,cAAc,GAAG;QACpB,UAAU,EAAE,CAAC,CAAC;KACf,CAAC;IACF,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,aAAa,CAAC;IAC/C,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IACnD,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IAC9D,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IACnD,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC;IAC7C,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,cAAc,CAAC;IACjD,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,gBAAgB,CAAC;IACrD,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IACnD,KAAK,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,cAAc,CAAC;IAC9E,QAAQ,EAAE,CAAC,CAAC,SAAS,aAAa,EAChC,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,GAAG,KACN,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAChC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var anyValidator=require('../validators/any-validator.js'),arrayValidator=require('../validators/array-validator.js');require('@mongez/reinforcements'),require('@mongez/supportive-is'),require('net');var booleanValidator=require('../validators/boolean-validator.js'),dateValidator=require('../validators/date-validator.js'),floatValidator=require('../validators/float-validator.js'),intValidator=require('../validators/int-validator.js'),numberValidator=require('../validators/number-validator.js'),objectValidator=require('../validators/object-validator.js'),scalarValidator=require('../validators/scalar-validator.js'),stringValidator=require('../validators/string-validator.js'),unionValidator=require('../validators/union-validator.js'),validate=require('./validate.js');/**
|
|
1
|
+
'use strict';var anyValidator=require('../validators/any-validator.js'),arrayValidator=require('../validators/array-validator.js');require('@mongez/reinforcements'),require('@mongez/supportive-is'),require('net');var booleanValidator=require('../validators/boolean-validator.js'),dateValidator=require('../validators/date-validator.js'),floatValidator=require('../validators/float-validator.js'),intValidator=require('../validators/int-validator.js'),numberValidator=require('../validators/number-validator.js'),objectValidator=require('../validators/object-validator.js'),recordValidator=require('../validators/record-validator.js'),scalarValidator=require('../validators/scalar-validator.js'),stringValidator=require('../validators/string-validator.js'),tupleValidator=require('../validators/tuple-validator.js'),unionValidator=require('../validators/union-validator.js'),validate=require('./validate.js');/**
|
|
2
2
|
* Seal factory object - creates instances of validators
|
|
3
3
|
*
|
|
4
4
|
* Use 'v' to create validation schemas (seals) for your data
|
|
@@ -8,10 +8,12 @@ const v = {
|
|
|
8
8
|
object: (schema, errorMessage) => new objectValidator.ObjectValidator(schema, errorMessage),
|
|
9
9
|
/** Create an any validator */
|
|
10
10
|
any: () => new anyValidator.AnyValidator(),
|
|
11
|
-
/** Create a forbidden validator */
|
|
12
|
-
forbidden: () => v.any().forbidden(),
|
|
13
11
|
/** Create an array validator */
|
|
14
12
|
array: (validator, errorMessage) => new arrayValidator.ArrayValidator(validator, errorMessage),
|
|
13
|
+
/** Create a record validator - object with dynamic keys and consistent value types */
|
|
14
|
+
record: (validator, errorMessage) => new recordValidator.RecordValidator(validator, errorMessage),
|
|
15
|
+
/** Create a tuple validator - fixed-length array with position-specific types */
|
|
16
|
+
tuple: (validators, errorMessage) => new tupleValidator.TupleValidator(validators, errorMessage),
|
|
15
17
|
/** Create a date validator */
|
|
16
18
|
date: (errorMessage) => new dateValidator.DateValidator(errorMessage),
|
|
17
19
|
/** Create a string validator */
|
|
@@ -28,11 +30,6 @@ const v = {
|
|
|
28
30
|
boolean: (errorMessage) => new booleanValidator.BooleanValidator(errorMessage),
|
|
29
31
|
/** Create a scalar validator */
|
|
30
32
|
scalar: (errorMessage) => new scalarValidator.ScalarValidator(errorMessage),
|
|
31
|
-
/** Create a localized array validator */
|
|
32
|
-
localized: (valueValidator, errorMessage) => v.array(v.object({
|
|
33
|
-
localeCode: v.string().required(),
|
|
34
|
-
value: (valueValidator || v.string()).required(),
|
|
35
|
-
}), errorMessage),
|
|
36
33
|
/** Create a union validator - validates against multiple types */
|
|
37
34
|
union: (validators, errorMessage) => new unionValidator.UnionValidator().union(validators, errorMessage),
|
|
38
35
|
/** Validate data against a schema */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sources":["../../src/factory/validators.ts"],"sourcesContent":[null],"names":["ObjectValidator","AnyValidator","ArrayValidator","DateValidator","StringValidator","ScalarValidator","NumberValidator","IntValidator","FloatValidator","BooleanValidator","UnionValidator","validateFunction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validators.js","sources":["../../src/factory/validators.ts"],"sourcesContent":[null],"names":["ObjectValidator","AnyValidator","ArrayValidator","RecordValidator","TupleValidator","DateValidator","StringValidator","ScalarValidator","NumberValidator","IntValidator","FloatValidator","BooleanValidator","UnionValidator","validateFunction"],"mappings":"44BAmBA;;;;AAIG;AACU,MAAA,CAAC,GAAe;;AAE3B,IAAA,MAAM,EAAE,CAAmB,MAAS,EAAE,YAAqB,KACzD,IAAIA,+BAAe,CAAC,MAAM,EAAE,YAAY,CAEvC;;AAGH,IAAA,GAAG,EAAE,MAAM,IAAIC,yBAAY,EAAE;;AAG7B,IAAA,KAAK,EAAE,CAA0B,SAAY,EAAE,YAAqB,KAClE,IAAIC,6BAAc,CAAC,SAAS,EAAE,YAAY,CAEzC;;AAGH,IAAA,MAAM,EAAE,CAA0B,SAAY,EAAE,YAAqB,KACnE,IAAIC,+BAAe,CAAC,SAAS,EAAE,YAAY,CAE1C;;AAGH,IAAA,KAAK,EAAE,CAA4B,UAAa,EAAE,YAAqB,KACrE,IAAIC,6BAAc,CAAC,UAAU,EAAE,YAAY,CAE1C;;IAGH,IAAI,EAAE,CAAC,YAAqB,KAAK,IAAIC,2BAAa,CAAC,YAAY,CAAC;;IAGhE,MAAM,EAAE,CAAC,YAAqB,KAAK,IAAIC,+BAAe,CAAC,YAAY,CAAC;;AAGpE,IAAA,IAAI,EAAE,CAAC,MAAW,EAAE,YAAqB,KACvC,IAAIC,+BAAe,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC;;IAGlD,MAAM,EAAE,CAAC,YAAqB,KAAK,IAAIC,+BAAe,CAAC,YAAY,CAAC;;IAGpE,GAAG,EAAE,CAAC,YAAqB,KAAK,IAAIC,yBAAY,CAAC,YAAY,CAAC;;IAG9D,KAAK,EAAE,CAAC,YAAqB,KAAK,IAAIC,6BAAc,CAAC,YAAY,CAAC;;IAGlE,OAAO,EAAE,CAAC,YAAqB,KAAK,IAAIC,iCAAgB,CAAC,YAAY,CAAC;;IAGtE,MAAM,EAAE,CAAC,YAAqB,KAAK,IAAIJ,+BAAe,CAAC,YAAY,CAAC;;AAGpE,IAAA,KAAK,EAAE,CAAC,UAA2B,EAAE,YAAqB,KACxD,IAAIK,6BAAc,EAAE,CAAC,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC;;AAGtD,IAAA,QAAQ,EAAEC,iBAAgB;"}
|
package/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var anyValidator=require('./validators/any-validator.js'),arrayValidator=require('./validators/array-validator.js'),baseValidator=require('./validators/base-validator.js'),booleanValidator=require('./validators/boolean-validator.js'),dateValidator=require('./validators/date-validator.js'),floatValidator=require('./validators/float-validator.js'),intValidator=require('./validators/int-validator.js'),numberValidator=require('./validators/number-validator.js'),objectValidator=require('./validators/object-validator.js'),scalarValidator=require('./validators/scalar-validator.js'),stringValidator=require('./validators/string-validator.js'),unionValidator=require('./validators/union-validator.js'),dateTypes=require('./types/date-types.js'),dateHelpers=require('./helpers/date-helpers.js'),getFieldValue=require('./helpers/get-field-value.js'),pathHelpers=require('./helpers/path-helpers.js'),validationHelpers=require('./helpers/validation-helpers.js'),arrayMutators=require('./mutators/array-mutators.js'),dateMutators=require('./mutators/date-mutators.js'),numberMutators=require('./mutators/number-mutators.js'),objectMutators=require('./mutators/object-mutators.js'),scalarMutators=require('./mutators/scalar-mutators.js'),stringMutators=require('./mutators/string-mutators.js'),equal=require('./rules/core/equal.js'),forbidden=require('./rules/core/forbidden.js'),required=require('./rules/core/required.js'),union=require('./rules/core/union.js'),when=require('./rules/core/when.js'),alpha=require('./rules/string/alpha.js'),creditCard=require('./rules/string/credit-card.js'),email=require('./rules/string/email.js'),ip=require('./rules/string/ip.js'),matches=require('./rules/string/matches.js'),pattern=require('./rules/string/pattern.js'),stringComparison=require('./rules/string/string-comparison.js'),strongPasswordRule=require('./rules/string/strong-password-rule.js'),url=require('./rules/string/url.js'),withoutWhitespace=require('./rules/string/without-whitespace.js'),numberRules=require('./rules/number/number-rules.js'),lengthRules=require('./rules/length/length-rules.js'),arrayRules=require('./rules/array/array-rules.js'),date=require('./rules/date/date.js'),dateComparisonRules=require('./rules/date/date-comparison-rules.js'),dateDayRules=require('./rules/date/date-day-rules.js'),dateFieldComparisonRules=require('./rules/date/date-field-comparison-rules.js'),datePeriodRules=require('./rules/date/date-period-rules.js'),dateRelativeRules=require('./rules/date/date-relative-rules.js'),dateSpecialRules=require('./rules/date/date-special-rules.js'),dimensions=require('./rules/file/dimensions.js'),fileSize=require('./rules/file/file-size.js'),colorRules=require('./rules/color/color-rules.js'),requiredIfRules=require('./rules/conditional/required-if-rules.js'),requiredUnlessRules=require('./rules/conditional/required-unless-rules.js'),requiredWithRules=require('./rules/conditional/required-with-rules.js'),requiredWithoutRules=require('./rules/conditional/required-without-rules.js'),presentIfRules=require('./rules/conditional/present-if-rules.js'),presentUnlessRules=require('./rules/conditional/present-unless-rules.js'),presentWithRules=require('./rules/conditional/present-with-rules.js'),presentWithoutRules=require('./rules/conditional/present-without-rules.js'),_enum=require('./rules/common/enum.js'),equalsFieldRules=require('./rules/common/equals-field-rules.js'),typeRules=require('./rules/common/type-rules.js'),unknownKey=require('./rules/common/unknown-key.js'),validate=require('./factory/validate.js'),validators=require('./factory/validators.js'),pluginSystem=require('./plugins/plugin-system.js'),config=require('./config.js');exports.AnyValidator=anyValidator.AnyValidator;exports.ArrayValidator=arrayValidator.ArrayValidator;exports.BaseValidator=baseValidator.BaseValidator;exports.BooleanValidator=booleanValidator.BooleanValidator;exports.DateValidator=dateValidator.DateValidator;exports.FloatValidator=floatValidator.FloatValidator;exports.IntValidator=intValidator.IntValidator;exports.NumberValidator=numberValidator.NumberValidator;exports.ObjectValidator=objectValidator.ObjectValidator;exports.ScalarValidator=scalarValidator.ScalarValidator;exports.StringValidator=stringValidator.StringValidator;exports.UnionValidator=unionValidator.UnionValidator;exports.WEEK_DAYS=dateTypes.WEEK_DAYS;exports.isDateValue=dateHelpers.isDateValue;exports.getFieldValue=getFieldValue.getFieldValue;exports.setKeyPath=pathHelpers.setKeyPath;exports.VALID_RULE=validationHelpers.VALID_RULE;exports.invalidRule=validationHelpers.invalidRule;exports.flipArrayMutator=arrayMutators.flipArrayMutator;exports.removeEmptyArrayElementsMutator=arrayMutators.removeEmptyArrayElementsMutator;exports.reverseArrayMutator=arrayMutators.reverseArrayMutator;exports.sortArrayMutator=arrayMutators.sortArrayMutator;exports.uniqueArrayMutator=arrayMutators.uniqueArrayMutator;exports.addDaysMutator=dateMutators.addDaysMutator;exports.addHoursMutator=dateMutators.addHoursMutator;exports.addMonthsMutator=dateMutators.addMonthsMutator;exports.addYearsMutator=dateMutators.addYearsMutator;exports.dateMutator=dateMutators.dateMutator;exports.toDateOnlyMutator=dateMutators.toDateOnlyMutator;exports.toEndOfDayMutator=dateMutators.toEndOfDayMutator;exports.toEndOfMonthMutator=dateMutators.toEndOfMonthMutator;exports.toEndOfYearMutator=dateMutators.toEndOfYearMutator;exports.toFormatMutator=dateMutators.toFormatMutator;exports.toISOStringMutator=dateMutators.toISOStringMutator;exports.toStartOfDayMutator=dateMutators.toStartOfDayMutator;exports.toStartOfMonthMutator=dateMutators.toStartOfMonthMutator;exports.toStartOfYearMutator=dateMutators.toStartOfYearMutator;exports.toTimeOnlyMutator=dateMutators.toTimeOnlyMutator;exports.toTimestampMutator=dateMutators.toTimestampMutator;exports.toUTCMutator=dateMutators.toUTCMutator;exports.booleanMutator=numberMutators.booleanMutator;exports.numberMutator=numberMutators.numberMutator;exports.roundNumberMutator=numberMutators.roundNumberMutator;exports.jsonMutator=objectMutators.jsonMutator;exports.objectTrimMutator=objectMutators.objectTrimMutator;exports.stripUnknownMutator=objectMutators.stripUnknownMutator;exports.stringMutator=scalarMutators.stringMutator;exports.alphaOnlyMutator=stringMutators.alphaOnlyMutator;exports.alphanumericOnlyMutator=stringMutators.alphanumericOnlyMutator;exports.appendMutator=stringMutators.appendMutator;exports.base64DecodeMutator=stringMutators.base64DecodeMutator;exports.base64EncodeMutator=stringMutators.base64EncodeMutator;exports.camelCaseMutator=stringMutators.camelCaseMutator;exports.capitalizeMutator=stringMutators.capitalizeMutator;exports.htmlEscapeMutator=stringMutators.htmlEscapeMutator;exports.kebabCaseMutator=stringMutators.kebabCaseMutator;exports.lowercaseMutator=stringMutators.lowercaseMutator;exports.ltrimMutator=stringMutators.ltrimMutator;exports.maskMutator=stringMutators.maskMutator;exports.padEndMutator=stringMutators.padEndMutator;exports.padStartMutator=stringMutators.padStartMutator;exports.pascalCaseMutator=stringMutators.pascalCaseMutator;exports.prependMutator=stringMutators.prependMutator;exports.removeNumbersMutator=stringMutators.removeNumbersMutator;exports.removeSpecialCharactersMutator=stringMutators.removeSpecialCharactersMutator;exports.repeatMutator=stringMutators.repeatMutator;exports.replaceAllMutator=stringMutators.replaceAllMutator;exports.replaceMutator=stringMutators.replaceMutator;exports.reverseMutator=stringMutators.reverseMutator;exports.rtrimMutator=stringMutators.rtrimMutator;exports.safeHtmlMutator=stringMutators.safeHtmlMutator;exports.slugMutator=stringMutators.slugMutator;exports.snakeCaseMutator=stringMutators.snakeCaseMutator;exports.stringifyMutator=stringMutators.stringifyMutator;exports.titleCaseMutator=stringMutators.titleCaseMutator;exports.trimMultipleWhitespaceMutator=stringMutators.trimMultipleWhitespaceMutator;exports.trimMutator=stringMutators.trimMutator;exports.truncateMutator=stringMutators.truncateMutator;exports.unescapeHtmlMutator=stringMutators.unescapeHtmlMutator;exports.uppercaseMutator=stringMutators.uppercaseMutator;exports.urlDecodeMutator=stringMutators.urlDecodeMutator;exports.urlEncodeMutator=stringMutators.urlEncodeMutator;exports.equalRule=equal.equalRule;exports.forbiddenRule=forbidden.forbiddenRule;exports.presentRule=required.presentRule;exports.requiredRule=required.requiredRule;exports.unionRule=union.unionRule;exports.whenRule=when.whenRule;exports.alphaNumericRule=alpha.alphaNumericRule;exports.alphaRule=alpha.alphaRule;exports.isNumericRule=alpha.isNumericRule;exports.isCreditCardRule=creditCard.isCreditCardRule;exports.emailRule=email.emailRule;exports.ip4Rule=ip.ip4Rule;exports.ip6Rule=ip.ip6Rule;exports.ipRule=ip.ipRule;exports.matchesRule=matches.matchesRule;exports.patternRule=pattern.patternRule;exports.containsRule=stringComparison.containsRule;exports.endsWithRule=stringComparison.endsWithRule;exports.notContainsRule=stringComparison.notContainsRule;exports.startsWithRule=stringComparison.startsWithRule;exports.strongPasswordRule=strongPasswordRule.strongPasswordRule;exports.urlRule=url.urlRule;exports.withoutWhitespaceRule=withoutWhitespace.withoutWhitespaceRule;exports.betweenNumbersRule=numberRules.betweenNumbersRule;exports.evenRule=numberRules.evenRule;exports.greaterThanRule=numberRules.greaterThanRule;exports.lessThanRule=numberRules.lessThanRule;exports.maxRule=numberRules.maxRule;exports.minRule=numberRules.minRule;exports.moduloRule=numberRules.moduloRule;exports.negativeRule=numberRules.negativeRule;exports.oddRule=numberRules.oddRule;exports.positiveRule=numberRules.positiveRule;exports.betweenLengthRule=lengthRules.betweenLengthRule;exports.lengthRule=lengthRules.lengthRule;exports.maxLengthRule=lengthRules.maxLengthRule;exports.maxWordsRule=lengthRules.maxWordsRule;exports.minLengthRule=lengthRules.minLengthRule;exports.minWordsRule=lengthRules.minWordsRule;exports.wordsRule=lengthRules.wordsRule;exports.sortedArrayRule=arrayRules.sortedArrayRule;exports.uniqueArrayRule=arrayRules.uniqueArrayRule;exports.ageRule=date.ageRule;exports.beforeHourRule=date.beforeHourRule;exports.beforeMinuteRule=date.beforeMinuteRule;exports.beforeTodayRule=date.beforeTodayRule;exports.betweenHoursRule=date.betweenHoursRule;exports.betweenMinutesRule=date.betweenMinutesRule;exports.dateRule=date.dateRule;exports.fromHourRule=date.fromHourRule;exports.fromMinuteRule=date.fromMinuteRule;exports.fromTodayRule=date.fromTodayRule;exports.maxAgeRule=date.maxAgeRule;exports.maxDateRule=date.maxDateRule;exports.minAgeRule=date.minAgeRule;exports.minDateRule=date.minDateRule;exports.weekDayRule=date.weekDayRule;exports.afterTodayRule=dateComparisonRules.afterTodayRule;exports.betweenDatesRule=dateComparisonRules.betweenDatesRule;exports.futureRule=dateComparisonRules.futureRule;exports.pastRule=dateComparisonRules.pastRule;exports.todayRule=dateComparisonRules.todayRule;exports.businessDayRule=dateDayRules.businessDayRule;exports.weekdayRule=dateDayRules.weekdayRule;exports.weekdaysRule=dateDayRules.weekdaysRule;exports.weekendRule=dateDayRules.weekendRule;exports.afterFieldRule=dateFieldComparisonRules.afterFieldRule;exports.beforeFieldRule=dateFieldComparisonRules.beforeFieldRule;exports.sameAsFieldDateRule=dateFieldComparisonRules.sameAsFieldDateRule;exports.betweenDaysRule=datePeriodRules.betweenDaysRule;exports.betweenMonthsRule=datePeriodRules.betweenMonthsRule;exports.betweenTimesRule=datePeriodRules.betweenTimesRule;exports.betweenYearsRule=datePeriodRules.betweenYearsRule;exports.maxDayRule=datePeriodRules.maxDayRule;exports.maxMonthRule=datePeriodRules.maxMonthRule;exports.maxYearRule=datePeriodRules.maxYearRule;exports.minDayRule=datePeriodRules.minDayRule;exports.minMonthRule=datePeriodRules.minMonthRule;exports.minYearRule=datePeriodRules.minYearRule;exports.monthRule=datePeriodRules.monthRule;exports.quarterRule=datePeriodRules.quarterRule;exports.yearRule=datePeriodRules.yearRule;exports.withinDaysRule=dateRelativeRules.withinDaysRule;exports.withinFutureDaysRule=dateRelativeRules.withinFutureDaysRule;exports.withinPastDaysRule=dateRelativeRules.withinPastDaysRule;exports.betweenAgeRule=dateSpecialRules.betweenAgeRule;exports.birthdayRule=dateSpecialRules.birthdayRule;exports.leapYearRule=dateSpecialRules.leapYearRule;exports.maxHeightRule=dimensions.maxHeightRule;exports.maxWidthRule=dimensions.maxWidthRule;exports.minHeightRule=dimensions.minHeightRule;exports.minWidthRule=dimensions.minWidthRule;exports.maxFileSizeRule=fileSize.maxFileSizeRule;exports.minFileSizeRule=fileSize.minFileSizeRule;exports.colorRule=colorRules.colorRule;exports.darkColorRule=colorRules.darkColorRule;exports.hexColorRule=colorRules.hexColorRule;exports.hslColorRule=colorRules.hslColorRule;exports.lightColorRule=colorRules.lightColorRule;exports.rgbColorRule=colorRules.rgbColorRule;exports.rgbaColorRule=colorRules.rgbaColorRule;exports.requiredIfEmptyRule=requiredIfRules.requiredIfEmptyRule;exports.requiredIfInRule=requiredIfRules.requiredIfInRule;exports.requiredIfNotEmptyRule=requiredIfRules.requiredIfNotEmptyRule;exports.requiredIfNotInRule=requiredIfRules.requiredIfNotInRule;exports.requiredIfRule=requiredIfRules.requiredIfRule;exports.requiredUnlessRule=requiredUnlessRules.requiredUnlessRule;exports.requiredWithAllRule=requiredWithRules.requiredWithAllRule;exports.requiredWithAnyRule=requiredWithRules.requiredWithAnyRule;exports.requiredWithRule=requiredWithRules.requiredWithRule;exports.requiredWithoutAllRule=requiredWithoutRules.requiredWithoutAllRule;exports.requiredWithoutAnyRule=requiredWithoutRules.requiredWithoutAnyRule;exports.requiredWithoutRule=requiredWithoutRules.requiredWithoutRule;exports.presentIfEmptyRule=presentIfRules.presentIfEmptyRule;exports.presentIfInRule=presentIfRules.presentIfInRule;exports.presentIfNotEmptyRule=presentIfRules.presentIfNotEmptyRule;exports.presentIfNotInRule=presentIfRules.presentIfNotInRule;exports.presentIfRule=presentIfRules.presentIfRule;exports.presentUnlessRule=presentUnlessRules.presentUnlessRule;exports.presentWithAllRule=presentWithRules.presentWithAllRule;exports.presentWithAnyRule=presentWithRules.presentWithAnyRule;exports.presentWithRule=presentWithRules.presentWithRule;exports.presentWithoutAllRule=presentWithoutRules.presentWithoutAllRule;exports.presentWithoutAnyRule=presentWithoutRules.presentWithoutAnyRule;exports.presentWithoutRule=presentWithoutRules.presentWithoutRule;exports.allowedValuesRule=_enum.allowedValuesRule;exports.enumRule=_enum.enumRule;exports.inRule=_enum.inRule;exports.notAllowedValuesRule=_enum.notAllowedValuesRule;exports.equalsFieldRule=equalsFieldRules.equalsFieldRule;exports.notEqualsFieldRule=equalsFieldRules.notEqualsFieldRule;exports.arrayRule=typeRules.arrayRule;exports.booleanRule=typeRules.booleanRule;exports.floatRule=typeRules.floatRule;exports.intRule=typeRules.intRule;exports.numberRule=typeRules.numberRule;exports.objectRule=typeRules.objectRule;exports.scalarRule=typeRules.scalarRule;exports.stringRule=typeRules.stringRule;exports.unknownKeyRule=unknownKey.unknownKeyRule;exports.validate=validate.validate;exports.v=validators.v;exports.getInstalledPlugins=pluginSystem.getInstalledPlugins;exports.hasPlugin=pluginSystem.hasPlugin;exports.registerPlugin=pluginSystem.registerPlugin;exports.unregisterPlugin=pluginSystem.unregisterPlugin;exports.configureSeal=config.configureSeal;exports.getSealConfig=config.getSealConfig;exports.resetSealConfig=config.resetSealConfig;//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';var anyValidator=require('./validators/any-validator.js'),arrayValidator=require('./validators/array-validator.js'),baseValidator=require('./validators/base-validator.js'),booleanValidator=require('./validators/boolean-validator.js'),dateValidator=require('./validators/date-validator.js'),floatValidator=require('./validators/float-validator.js'),intValidator=require('./validators/int-validator.js'),numberValidator=require('./validators/number-validator.js'),objectValidator=require('./validators/object-validator.js'),recordValidator=require('./validators/record-validator.js'),scalarValidator=require('./validators/scalar-validator.js'),stringValidator=require('./validators/string-validator.js'),tupleValidator=require('./validators/tuple-validator.js'),unionValidator=require('./validators/union-validator.js'),dateTypes=require('./types/date-types.js'),dateHelpers=require('./helpers/date-helpers.js'),getFieldValue=require('./helpers/get-field-value.js'),pathHelpers=require('./helpers/path-helpers.js'),validationHelpers=require('./helpers/validation-helpers.js'),arrayMutators=require('./mutators/array-mutators.js'),dateMutators=require('./mutators/date-mutators.js'),numberMutators=require('./mutators/number-mutators.js'),objectMutators=require('./mutators/object-mutators.js'),scalarMutators=require('./mutators/scalar-mutators.js'),stringMutators=require('./mutators/string-mutators.js'),equal=require('./rules/core/equal.js'),forbidden=require('./rules/core/forbidden.js'),required=require('./rules/core/required.js'),union=require('./rules/core/union.js'),when=require('./rules/core/when.js'),alpha=require('./rules/string/alpha.js'),creditCard=require('./rules/string/credit-card.js'),email=require('./rules/string/email.js'),ip=require('./rules/string/ip.js'),matches=require('./rules/string/matches.js'),pattern=require('./rules/string/pattern.js'),stringComparison=require('./rules/string/string-comparison.js'),strongPasswordRule=require('./rules/string/strong-password-rule.js'),url=require('./rules/string/url.js'),withoutWhitespace=require('./rules/string/without-whitespace.js'),numberRules=require('./rules/number/number-rules.js'),lengthRules=require('./rules/length/length-rules.js'),arrayRules=require('./rules/array/array-rules.js'),date=require('./rules/date/date.js'),dateComparisonRules=require('./rules/date/date-comparison-rules.js'),dateDayRules=require('./rules/date/date-day-rules.js'),dateFieldComparisonRules=require('./rules/date/date-field-comparison-rules.js'),datePeriodRules=require('./rules/date/date-period-rules.js'),dateRelativeRules=require('./rules/date/date-relative-rules.js'),dateSpecialRules=require('./rules/date/date-special-rules.js'),dimensions=require('./rules/file/dimensions.js'),fileSize=require('./rules/file/file-size.js'),colorRules=require('./rules/color/color-rules.js'),requiredIfRules=require('./rules/conditional/required-if-rules.js'),requiredUnlessRules=require('./rules/conditional/required-unless-rules.js'),requiredWithRules=require('./rules/conditional/required-with-rules.js'),requiredWithoutRules=require('./rules/conditional/required-without-rules.js'),presentIfRules=require('./rules/conditional/present-if-rules.js'),presentUnlessRules=require('./rules/conditional/present-unless-rules.js'),presentWithRules=require('./rules/conditional/present-with-rules.js'),presentWithoutRules=require('./rules/conditional/present-without-rules.js'),forbiddenIfRules=require('./rules/conditional/forbidden-if-rules.js'),_enum=require('./rules/common/enum.js'),equalsFieldRules=require('./rules/common/equals-field-rules.js'),typeRules=require('./rules/common/type-rules.js'),unknownKey=require('./rules/common/unknown-key.js'),validate=require('./factory/validate.js'),validators=require('./factory/validators.js'),pluginSystem=require('./plugins/plugin-system.js'),config=require('./config.js');exports.AnyValidator=anyValidator.AnyValidator;exports.ArrayValidator=arrayValidator.ArrayValidator;exports.BaseValidator=baseValidator.BaseValidator;exports.BooleanValidator=booleanValidator.BooleanValidator;exports.DateValidator=dateValidator.DateValidator;exports.FloatValidator=floatValidator.FloatValidator;exports.IntValidator=intValidator.IntValidator;exports.NumberValidator=numberValidator.NumberValidator;exports.ObjectValidator=objectValidator.ObjectValidator;exports.RecordValidator=recordValidator.RecordValidator;exports.ScalarValidator=scalarValidator.ScalarValidator;exports.StringValidator=stringValidator.StringValidator;exports.TupleValidator=tupleValidator.TupleValidator;exports.UnionValidator=unionValidator.UnionValidator;exports.WEEK_DAYS=dateTypes.WEEK_DAYS;exports.isDateValue=dateHelpers.isDateValue;exports.getFieldValue=getFieldValue.getFieldValue;exports.setKeyPath=pathHelpers.setKeyPath;exports.VALID_RULE=validationHelpers.VALID_RULE;exports.invalidRule=validationHelpers.invalidRule;exports.flipArrayMutator=arrayMutators.flipArrayMutator;exports.removeEmptyArrayElementsMutator=arrayMutators.removeEmptyArrayElementsMutator;exports.reverseArrayMutator=arrayMutators.reverseArrayMutator;exports.sortArrayMutator=arrayMutators.sortArrayMutator;exports.uniqueArrayMutator=arrayMutators.uniqueArrayMutator;exports.addDaysMutator=dateMutators.addDaysMutator;exports.addHoursMutator=dateMutators.addHoursMutator;exports.addMonthsMutator=dateMutators.addMonthsMutator;exports.addYearsMutator=dateMutators.addYearsMutator;exports.dateMutator=dateMutators.dateMutator;exports.toDateOnlyMutator=dateMutators.toDateOnlyMutator;exports.toEndOfDayMutator=dateMutators.toEndOfDayMutator;exports.toEndOfMonthMutator=dateMutators.toEndOfMonthMutator;exports.toEndOfYearMutator=dateMutators.toEndOfYearMutator;exports.toFormatMutator=dateMutators.toFormatMutator;exports.toISOStringMutator=dateMutators.toISOStringMutator;exports.toStartOfDayMutator=dateMutators.toStartOfDayMutator;exports.toStartOfMonthMutator=dateMutators.toStartOfMonthMutator;exports.toStartOfYearMutator=dateMutators.toStartOfYearMutator;exports.toTimeOnlyMutator=dateMutators.toTimeOnlyMutator;exports.toTimestampMutator=dateMutators.toTimestampMutator;exports.toUTCMutator=dateMutators.toUTCMutator;exports.booleanMutator=numberMutators.booleanMutator;exports.numberMutator=numberMutators.numberMutator;exports.roundNumberMutator=numberMutators.roundNumberMutator;exports.jsonMutator=objectMutators.jsonMutator;exports.objectTrimMutator=objectMutators.objectTrimMutator;exports.stripUnknownMutator=objectMutators.stripUnknownMutator;exports.stringMutator=scalarMutators.stringMutator;exports.alphaOnlyMutator=stringMutators.alphaOnlyMutator;exports.alphanumericOnlyMutator=stringMutators.alphanumericOnlyMutator;exports.appendMutator=stringMutators.appendMutator;exports.base64DecodeMutator=stringMutators.base64DecodeMutator;exports.base64EncodeMutator=stringMutators.base64EncodeMutator;exports.camelCaseMutator=stringMutators.camelCaseMutator;exports.capitalizeMutator=stringMutators.capitalizeMutator;exports.htmlEscapeMutator=stringMutators.htmlEscapeMutator;exports.kebabCaseMutator=stringMutators.kebabCaseMutator;exports.lowercaseMutator=stringMutators.lowercaseMutator;exports.ltrimMutator=stringMutators.ltrimMutator;exports.maskMutator=stringMutators.maskMutator;exports.padEndMutator=stringMutators.padEndMutator;exports.padStartMutator=stringMutators.padStartMutator;exports.pascalCaseMutator=stringMutators.pascalCaseMutator;exports.prependMutator=stringMutators.prependMutator;exports.removeNumbersMutator=stringMutators.removeNumbersMutator;exports.removeSpecialCharactersMutator=stringMutators.removeSpecialCharactersMutator;exports.repeatMutator=stringMutators.repeatMutator;exports.replaceAllMutator=stringMutators.replaceAllMutator;exports.replaceMutator=stringMutators.replaceMutator;exports.reverseMutator=stringMutators.reverseMutator;exports.rtrimMutator=stringMutators.rtrimMutator;exports.safeHtmlMutator=stringMutators.safeHtmlMutator;exports.slugMutator=stringMutators.slugMutator;exports.snakeCaseMutator=stringMutators.snakeCaseMutator;exports.stringifyMutator=stringMutators.stringifyMutator;exports.titleCaseMutator=stringMutators.titleCaseMutator;exports.trimMultipleWhitespaceMutator=stringMutators.trimMultipleWhitespaceMutator;exports.trimMutator=stringMutators.trimMutator;exports.truncateMutator=stringMutators.truncateMutator;exports.unescapeHtmlMutator=stringMutators.unescapeHtmlMutator;exports.uppercaseMutator=stringMutators.uppercaseMutator;exports.urlDecodeMutator=stringMutators.urlDecodeMutator;exports.urlEncodeMutator=stringMutators.urlEncodeMutator;exports.equalRule=equal.equalRule;exports.forbiddenRule=forbidden.forbiddenRule;exports.presentRule=required.presentRule;exports.requiredRule=required.requiredRule;exports.unionRule=union.unionRule;exports.whenRule=when.whenRule;exports.alphaNumericRule=alpha.alphaNumericRule;exports.alphaRule=alpha.alphaRule;exports.isNumericRule=alpha.isNumericRule;exports.isCreditCardRule=creditCard.isCreditCardRule;exports.emailRule=email.emailRule;exports.ip4Rule=ip.ip4Rule;exports.ip6Rule=ip.ip6Rule;exports.ipRule=ip.ipRule;exports.matchesRule=matches.matchesRule;exports.patternRule=pattern.patternRule;exports.containsRule=stringComparison.containsRule;exports.endsWithRule=stringComparison.endsWithRule;exports.notContainsRule=stringComparison.notContainsRule;exports.startsWithRule=stringComparison.startsWithRule;exports.strongPasswordRule=strongPasswordRule.strongPasswordRule;exports.urlRule=url.urlRule;exports.withoutWhitespaceRule=withoutWhitespace.withoutWhitespaceRule;exports.betweenNumbersRule=numberRules.betweenNumbersRule;exports.evenRule=numberRules.evenRule;exports.greaterThanRule=numberRules.greaterThanRule;exports.lessThanRule=numberRules.lessThanRule;exports.maxRule=numberRules.maxRule;exports.minRule=numberRules.minRule;exports.moduloRule=numberRules.moduloRule;exports.negativeRule=numberRules.negativeRule;exports.oddRule=numberRules.oddRule;exports.positiveRule=numberRules.positiveRule;exports.betweenLengthRule=lengthRules.betweenLengthRule;exports.lengthRule=lengthRules.lengthRule;exports.maxLengthRule=lengthRules.maxLengthRule;exports.maxWordsRule=lengthRules.maxWordsRule;exports.minLengthRule=lengthRules.minLengthRule;exports.minWordsRule=lengthRules.minWordsRule;exports.wordsRule=lengthRules.wordsRule;exports.sortedArrayRule=arrayRules.sortedArrayRule;exports.uniqueArrayRule=arrayRules.uniqueArrayRule;exports.ageRule=date.ageRule;exports.beforeHourRule=date.beforeHourRule;exports.beforeMinuteRule=date.beforeMinuteRule;exports.beforeTodayRule=date.beforeTodayRule;exports.betweenHoursRule=date.betweenHoursRule;exports.betweenMinutesRule=date.betweenMinutesRule;exports.dateRule=date.dateRule;exports.fromHourRule=date.fromHourRule;exports.fromMinuteRule=date.fromMinuteRule;exports.fromTodayRule=date.fromTodayRule;exports.maxAgeRule=date.maxAgeRule;exports.maxDateRule=date.maxDateRule;exports.minAgeRule=date.minAgeRule;exports.minDateRule=date.minDateRule;exports.weekDayRule=date.weekDayRule;exports.afterTodayRule=dateComparisonRules.afterTodayRule;exports.betweenDatesRule=dateComparisonRules.betweenDatesRule;exports.futureRule=dateComparisonRules.futureRule;exports.pastRule=dateComparisonRules.pastRule;exports.todayRule=dateComparisonRules.todayRule;exports.businessDayRule=dateDayRules.businessDayRule;exports.weekdayRule=dateDayRules.weekdayRule;exports.weekdaysRule=dateDayRules.weekdaysRule;exports.weekendRule=dateDayRules.weekendRule;exports.afterFieldRule=dateFieldComparisonRules.afterFieldRule;exports.beforeFieldRule=dateFieldComparisonRules.beforeFieldRule;exports.sameAsFieldDateRule=dateFieldComparisonRules.sameAsFieldDateRule;exports.betweenDaysRule=datePeriodRules.betweenDaysRule;exports.betweenMonthsRule=datePeriodRules.betweenMonthsRule;exports.betweenTimesRule=datePeriodRules.betweenTimesRule;exports.betweenYearsRule=datePeriodRules.betweenYearsRule;exports.maxDayRule=datePeriodRules.maxDayRule;exports.maxMonthRule=datePeriodRules.maxMonthRule;exports.maxYearRule=datePeriodRules.maxYearRule;exports.minDayRule=datePeriodRules.minDayRule;exports.minMonthRule=datePeriodRules.minMonthRule;exports.minYearRule=datePeriodRules.minYearRule;exports.monthRule=datePeriodRules.monthRule;exports.quarterRule=datePeriodRules.quarterRule;exports.yearRule=datePeriodRules.yearRule;exports.withinDaysRule=dateRelativeRules.withinDaysRule;exports.withinFutureDaysRule=dateRelativeRules.withinFutureDaysRule;exports.withinPastDaysRule=dateRelativeRules.withinPastDaysRule;exports.betweenAgeRule=dateSpecialRules.betweenAgeRule;exports.birthdayRule=dateSpecialRules.birthdayRule;exports.leapYearRule=dateSpecialRules.leapYearRule;exports.maxHeightRule=dimensions.maxHeightRule;exports.maxWidthRule=dimensions.maxWidthRule;exports.minHeightRule=dimensions.minHeightRule;exports.minWidthRule=dimensions.minWidthRule;exports.maxFileSizeRule=fileSize.maxFileSizeRule;exports.minFileSizeRule=fileSize.minFileSizeRule;exports.colorRule=colorRules.colorRule;exports.darkColorRule=colorRules.darkColorRule;exports.hexColorRule=colorRules.hexColorRule;exports.hslColorRule=colorRules.hslColorRule;exports.lightColorRule=colorRules.lightColorRule;exports.rgbColorRule=colorRules.rgbColorRule;exports.rgbaColorRule=colorRules.rgbaColorRule;exports.requiredIfEmptyRule=requiredIfRules.requiredIfEmptyRule;exports.requiredIfInRule=requiredIfRules.requiredIfInRule;exports.requiredIfNotEmptyRule=requiredIfRules.requiredIfNotEmptyRule;exports.requiredIfNotInRule=requiredIfRules.requiredIfNotInRule;exports.requiredIfRule=requiredIfRules.requiredIfRule;exports.requiredUnlessRule=requiredUnlessRules.requiredUnlessRule;exports.requiredWithAllRule=requiredWithRules.requiredWithAllRule;exports.requiredWithAnyRule=requiredWithRules.requiredWithAnyRule;exports.requiredWithRule=requiredWithRules.requiredWithRule;exports.requiredWithoutAllRule=requiredWithoutRules.requiredWithoutAllRule;exports.requiredWithoutAnyRule=requiredWithoutRules.requiredWithoutAnyRule;exports.requiredWithoutRule=requiredWithoutRules.requiredWithoutRule;exports.presentIfEmptyRule=presentIfRules.presentIfEmptyRule;exports.presentIfInRule=presentIfRules.presentIfInRule;exports.presentIfNotEmptyRule=presentIfRules.presentIfNotEmptyRule;exports.presentIfNotInRule=presentIfRules.presentIfNotInRule;exports.presentIfRule=presentIfRules.presentIfRule;exports.presentUnlessRule=presentUnlessRules.presentUnlessRule;exports.presentWithAllRule=presentWithRules.presentWithAllRule;exports.presentWithAnyRule=presentWithRules.presentWithAnyRule;exports.presentWithRule=presentWithRules.presentWithRule;exports.presentWithoutAllRule=presentWithoutRules.presentWithoutAllRule;exports.presentWithoutAnyRule=presentWithoutRules.presentWithoutAnyRule;exports.presentWithoutRule=presentWithoutRules.presentWithoutRule;exports.forbiddenIfEmptyRule=forbiddenIfRules.forbiddenIfEmptyRule;exports.forbiddenIfInRule=forbiddenIfRules.forbiddenIfInRule;exports.forbiddenIfNotEmptyRule=forbiddenIfRules.forbiddenIfNotEmptyRule;exports.forbiddenIfNotInRule=forbiddenIfRules.forbiddenIfNotInRule;exports.forbiddenIfNotRule=forbiddenIfRules.forbiddenIfNotRule;exports.forbiddenIfRule=forbiddenIfRules.forbiddenIfRule;exports.allowedValuesRule=_enum.allowedValuesRule;exports.enumRule=_enum.enumRule;exports.inRule=_enum.inRule;exports.notAllowedValuesRule=_enum.notAllowedValuesRule;exports.equalsFieldRule=equalsFieldRules.equalsFieldRule;exports.notEqualsFieldRule=equalsFieldRules.notEqualsFieldRule;exports.arrayRule=typeRules.arrayRule;exports.booleanRule=typeRules.booleanRule;exports.floatRule=typeRules.floatRule;exports.intRule=typeRules.intRule;exports.numberRule=typeRules.numberRule;exports.objectRule=typeRules.objectRule;exports.scalarRule=typeRules.scalarRule;exports.stringRule=typeRules.stringRule;exports.unknownKeyRule=unknownKey.unknownKeyRule;exports.validate=validate.validate;exports.v=validators.v;exports.getInstalledPlugins=pluginSystem.getInstalledPlugins;exports.hasPlugin=pluginSystem.hasPlugin;exports.registerPlugin=pluginSystem.registerPlugin;exports.unregisterPlugin=pluginSystem.unregisterPlugin;exports.configureSeal=config.configureSeal;exports.getSealConfig=config.getSealConfig;exports.resetSealConfig=config.resetSealConfig;//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { SchemaRule } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Forbidden if rule - field is forbidden if another field equals a specific value
|
|
4
|
+
* Supports both global and sibling scope
|
|
5
|
+
*/
|
|
6
|
+
export declare const forbiddenIfRule: SchemaRule<{
|
|
7
|
+
field: string;
|
|
8
|
+
value: any;
|
|
9
|
+
scope?: "global" | "sibling";
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Forbidden if not rule - field is forbidden if another field does NOT equal a specific value
|
|
13
|
+
* Supports both global and sibling scope
|
|
14
|
+
*/
|
|
15
|
+
export declare const forbiddenIfNotRule: SchemaRule<{
|
|
16
|
+
field: string;
|
|
17
|
+
value: any;
|
|
18
|
+
scope?: "global" | "sibling";
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Forbidden if empty rule - field is forbidden if another field is empty
|
|
22
|
+
* Supports both global and sibling scope
|
|
23
|
+
*/
|
|
24
|
+
export declare const forbiddenIfEmptyRule: SchemaRule<{
|
|
25
|
+
field: string;
|
|
26
|
+
scope?: "global" | "sibling";
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Forbidden if not empty rule - field is forbidden if another field is not empty
|
|
30
|
+
* Supports both global and sibling scope
|
|
31
|
+
*/
|
|
32
|
+
export declare const forbiddenIfNotEmptyRule: SchemaRule<{
|
|
33
|
+
field: string;
|
|
34
|
+
scope?: "global" | "sibling";
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* Forbidden if in rule - field is forbidden if another field's value is in the given array
|
|
38
|
+
* Supports both global and sibling scope
|
|
39
|
+
*/
|
|
40
|
+
export declare const forbiddenIfInRule: SchemaRule<{
|
|
41
|
+
field: string;
|
|
42
|
+
values: any[];
|
|
43
|
+
scope?: "global" | "sibling";
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Forbidden if not in rule - field is forbidden if another field's value is NOT in the given array
|
|
47
|
+
* Supports both global and sibling scope
|
|
48
|
+
*/
|
|
49
|
+
export declare const forbiddenIfNotInRule: SchemaRule<{
|
|
50
|
+
field: string;
|
|
51
|
+
values: any[];
|
|
52
|
+
scope?: "global" | "sibling";
|
|
53
|
+
}>;
|
|
54
|
+
//# sourceMappingURL=forbidden-if-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forbidden-if-rules.d.ts","sourceRoot":"","sources":["../../../src/rules/conditional/forbidden-if-rules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAiBA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAiBA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAeA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAeA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAiBA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAiBA,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use strict';var supportiveIs=require('@mongez/supportive-is'),getFieldValue=require('../../helpers/get-field-value.js'),validationHelpers=require('../../helpers/validation-helpers.js');/**
|
|
2
|
+
* Forbidden if rule - field is forbidden if another field equals a specific value
|
|
3
|
+
* Supports both global and sibling scope
|
|
4
|
+
*/
|
|
5
|
+
const forbiddenIfRule = {
|
|
6
|
+
name: "forbiddenIf",
|
|
7
|
+
description: "The field is forbidden if another field equals a specific value",
|
|
8
|
+
sortOrder: -2,
|
|
9
|
+
defaultErrorMessage: "The :input is forbidden",
|
|
10
|
+
async validate(value, context) {
|
|
11
|
+
const { value: expectedValue } = this.context.options;
|
|
12
|
+
const fieldValue = getFieldValue.getFieldValue(this, context);
|
|
13
|
+
// Field is forbidden if it has a value and the other field equals the expected value
|
|
14
|
+
if (!supportiveIs.isEmpty(value) && fieldValue === expectedValue) {
|
|
15
|
+
return validationHelpers.invalidRule(this, context);
|
|
16
|
+
}
|
|
17
|
+
return validationHelpers.VALID_RULE;
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Forbidden if not rule - field is forbidden if another field does NOT equal a specific value
|
|
22
|
+
* Supports both global and sibling scope
|
|
23
|
+
*/
|
|
24
|
+
const forbiddenIfNotRule = {
|
|
25
|
+
name: "forbiddenIfNot",
|
|
26
|
+
description: "The field is forbidden if another field does NOT equal a specific value",
|
|
27
|
+
sortOrder: -2,
|
|
28
|
+
defaultErrorMessage: "The :input is forbidden",
|
|
29
|
+
async validate(value, context) {
|
|
30
|
+
const { value: expectedValue } = this.context.options;
|
|
31
|
+
const fieldValue = getFieldValue.getFieldValue(this, context);
|
|
32
|
+
// Field is forbidden if it has a value and the other field does NOT equal the expected value
|
|
33
|
+
if (!supportiveIs.isEmpty(value) && fieldValue !== expectedValue) {
|
|
34
|
+
return validationHelpers.invalidRule(this, context);
|
|
35
|
+
}
|
|
36
|
+
return validationHelpers.VALID_RULE;
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Forbidden if empty rule - field is forbidden if another field is empty
|
|
41
|
+
* Supports both global and sibling scope
|
|
42
|
+
*/
|
|
43
|
+
const forbiddenIfEmptyRule = {
|
|
44
|
+
name: "forbiddenIfEmpty",
|
|
45
|
+
description: "The field is forbidden if another field is empty",
|
|
46
|
+
sortOrder: -2,
|
|
47
|
+
defaultErrorMessage: "The :input is forbidden",
|
|
48
|
+
async validate(value, context) {
|
|
49
|
+
const fieldValue = getFieldValue.getFieldValue(this, context);
|
|
50
|
+
// Field is forbidden if it has a value and the other field is empty
|
|
51
|
+
if (!supportiveIs.isEmpty(value) && supportiveIs.isEmpty(fieldValue)) {
|
|
52
|
+
return validationHelpers.invalidRule(this, context);
|
|
53
|
+
}
|
|
54
|
+
return validationHelpers.VALID_RULE;
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Forbidden if not empty rule - field is forbidden if another field is not empty
|
|
59
|
+
* Supports both global and sibling scope
|
|
60
|
+
*/
|
|
61
|
+
const forbiddenIfNotEmptyRule = {
|
|
62
|
+
name: "forbiddenIfNotEmpty",
|
|
63
|
+
description: "The field is forbidden if another field is not empty",
|
|
64
|
+
sortOrder: -2,
|
|
65
|
+
defaultErrorMessage: "The :input is forbidden",
|
|
66
|
+
async validate(value, context) {
|
|
67
|
+
const fieldValue = getFieldValue.getFieldValue(this, context);
|
|
68
|
+
// Field is forbidden if it has a value and the other field is not empty
|
|
69
|
+
if (!supportiveIs.isEmpty(value) && !supportiveIs.isEmpty(fieldValue)) {
|
|
70
|
+
return validationHelpers.invalidRule(this, context);
|
|
71
|
+
}
|
|
72
|
+
return validationHelpers.VALID_RULE;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Forbidden if in rule - field is forbidden if another field's value is in the given array
|
|
77
|
+
* Supports both global and sibling scope
|
|
78
|
+
*/
|
|
79
|
+
const forbiddenIfInRule = {
|
|
80
|
+
name: "forbiddenIfIn",
|
|
81
|
+
description: "The field is forbidden if another field's value is in the given array",
|
|
82
|
+
sortOrder: -2,
|
|
83
|
+
defaultErrorMessage: "The :input is forbidden",
|
|
84
|
+
async validate(value, context) {
|
|
85
|
+
const { values } = this.context.options;
|
|
86
|
+
const fieldValue = getFieldValue.getFieldValue(this, context);
|
|
87
|
+
// Field is forbidden if it has a value and the other field's value is in the array
|
|
88
|
+
if (!supportiveIs.isEmpty(value) && values.includes(fieldValue)) {
|
|
89
|
+
return validationHelpers.invalidRule(this, context);
|
|
90
|
+
}
|
|
91
|
+
return validationHelpers.VALID_RULE;
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Forbidden if not in rule - field is forbidden if another field's value is NOT in the given array
|
|
96
|
+
* Supports both global and sibling scope
|
|
97
|
+
*/
|
|
98
|
+
const forbiddenIfNotInRule = {
|
|
99
|
+
name: "forbiddenIfNotIn",
|
|
100
|
+
description: "The field is forbidden if another field's value is NOT in the given array",
|
|
101
|
+
sortOrder: -2,
|
|
102
|
+
defaultErrorMessage: "The :input is forbidden",
|
|
103
|
+
async validate(value, context) {
|
|
104
|
+
const { values } = this.context.options;
|
|
105
|
+
const fieldValue = getFieldValue.getFieldValue(this, context);
|
|
106
|
+
// Field is forbidden if it has a value and the other field's value is NOT in the array
|
|
107
|
+
if (!supportiveIs.isEmpty(value) && !values.includes(fieldValue)) {
|
|
108
|
+
return validationHelpers.invalidRule(this, context);
|
|
109
|
+
}
|
|
110
|
+
return validationHelpers.VALID_RULE;
|
|
111
|
+
},
|
|
112
|
+
};exports.forbiddenIfEmptyRule=forbiddenIfEmptyRule;exports.forbiddenIfInRule=forbiddenIfInRule;exports.forbiddenIfNotEmptyRule=forbiddenIfNotEmptyRule;exports.forbiddenIfNotInRule=forbiddenIfNotInRule;exports.forbiddenIfNotRule=forbiddenIfNotRule;exports.forbiddenIfRule=forbiddenIfRule;//# sourceMappingURL=forbidden-if-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forbidden-if-rules.js","sources":["../../../src/rules/conditional/forbidden-if-rules.ts"],"sourcesContent":[null],"names":["getFieldValue","isEmpty","invalidRule","VALID_RULE"],"mappings":"0LAIA;;;AAGG;AACU,MAAA,eAAe,GAIvB;AACH,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,WAAW,EACT,iEAAiE;IACnE,SAAS,EAAE,CAAC,CAAC;AACb,IAAA,mBAAmB,EAAE,yBAAyB;AAC9C,IAAA,MAAM,QAAQ,CAAC,KAAU,EAAE,OAAO,EAAA;QAChC,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QACtD,MAAM,UAAU,GAAGA,2BAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;;QAGhD,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AC;AACb,IAAA,mBAAmB,EAAE,yBAAyB;AAC9C,IAAA,MAAM,QAAQ,CAAC,KAAU,EAAE,OAAO,EAAA;QAChC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QACxC,MAAM,UAAU,GAAGH,2BAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;;AAGhD,QAAA,IAAI,CAACC,oBAAO,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;AACnD,YAAA,OAAOC,6BAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACnC,SAAA;AAED,QAAA,OAAOC,4BAAU,CAAC;KACnB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/conditional/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/conditional/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare class BaseValidator {
|
|
|
8
8
|
protected defaultValue: any;
|
|
9
9
|
protected description?: string;
|
|
10
10
|
protected shouldOmit: boolean;
|
|
11
|
+
protected isNullable: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* Pipeline to transform the mutated/original data before returning it
|
|
13
14
|
*/
|
|
@@ -22,6 +23,14 @@ export declare class BaseValidator {
|
|
|
22
23
|
* Get the default value
|
|
23
24
|
*/
|
|
24
25
|
getDefaultValue(): any;
|
|
26
|
+
/**
|
|
27
|
+
* Determine if value accepts null value
|
|
28
|
+
*/
|
|
29
|
+
nullable(): this;
|
|
30
|
+
/**
|
|
31
|
+
* Explicitly disallow null values after calling nullable
|
|
32
|
+
*/
|
|
33
|
+
notNullable(): this;
|
|
25
34
|
/**
|
|
26
35
|
* Add transformer with optional options
|
|
27
36
|
*
|
|
@@ -466,6 +475,54 @@ export declare class BaseValidator {
|
|
|
466
475
|
* Value is forbidden to be present
|
|
467
476
|
*/
|
|
468
477
|
forbidden(errorMessage?: string): this;
|
|
478
|
+
/**
|
|
479
|
+
* Value is forbidden if another field equals a specific value (global scope)
|
|
480
|
+
*/
|
|
481
|
+
forbiddenIf(field: string, value: any, errorMessage?: string): this;
|
|
482
|
+
/**
|
|
483
|
+
* Value is forbidden if another field equals a specific value (sibling scope)
|
|
484
|
+
*/
|
|
485
|
+
forbiddenIfSibling(field: string, value: any, errorMessage?: string): this;
|
|
486
|
+
/**
|
|
487
|
+
* Value is forbidden if another field does NOT equal a specific value (global scope)
|
|
488
|
+
*/
|
|
489
|
+
forbiddenIfNot(field: string, value: any, errorMessage?: string): this;
|
|
490
|
+
/**
|
|
491
|
+
* Value is forbidden if another field does NOT equal a specific value (sibling scope)
|
|
492
|
+
*/
|
|
493
|
+
forbiddenIfNotSibling(field: string, value: any, errorMessage?: string): this;
|
|
494
|
+
/**
|
|
495
|
+
* Value is forbidden if another field is empty (global scope)
|
|
496
|
+
*/
|
|
497
|
+
forbiddenIfEmpty(field: string, errorMessage?: string): this;
|
|
498
|
+
/**
|
|
499
|
+
* Value is forbidden if another field is empty (sibling scope)
|
|
500
|
+
*/
|
|
501
|
+
forbiddenIfEmptySibling(field: string, errorMessage?: string): this;
|
|
502
|
+
/**
|
|
503
|
+
* Value is forbidden if another field is not empty (global scope)
|
|
504
|
+
*/
|
|
505
|
+
forbiddenIfNotEmpty(field: string, errorMessage?: string): this;
|
|
506
|
+
/**
|
|
507
|
+
* Value is forbidden if another field is not empty (sibling scope)
|
|
508
|
+
*/
|
|
509
|
+
forbiddenIfNotEmptySibling(field: string, errorMessage?: string): this;
|
|
510
|
+
/**
|
|
511
|
+
* Value is forbidden if another field's value is in the given array (global scope)
|
|
512
|
+
*/
|
|
513
|
+
forbiddenIfIn(field: string, values: any[], errorMessage?: string): this;
|
|
514
|
+
/**
|
|
515
|
+
* Value is forbidden if another field's value is in the given array (sibling scope)
|
|
516
|
+
*/
|
|
517
|
+
forbiddenIfInSibling(field: string, values: any[], errorMessage?: string): this;
|
|
518
|
+
/**
|
|
519
|
+
* Value is forbidden if another field's value is NOT in the given array (global scope)
|
|
520
|
+
*/
|
|
521
|
+
forbiddenIfNotIn(field: string, values: any[], errorMessage?: string): this;
|
|
522
|
+
/**
|
|
523
|
+
* Value is forbidden if another field's value is NOT in the given array (sibling scope)
|
|
524
|
+
*/
|
|
525
|
+
forbiddenIfNotInSibling(field: string, values: any[], errorMessage?: string): this;
|
|
469
526
|
/**
|
|
470
527
|
* Apply different validation rules based on another field's value (global scope)
|
|
471
528
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-validator.d.ts","sourceRoot":"","sources":["../../src/validators/base-validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-validator.d.ts","sourceRoot":"","sources":["../../src/validators/base-validator.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB;;GAE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