@orchestr-sh/orchestr 1.9.15 → 1.10.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/dist/Database/Contracts/QueryBuilderInterface.d.ts +11 -1
- package/dist/Database/Contracts/QueryBuilderInterface.d.ts.map +1 -1
- package/dist/Database/Query/Builder.d.ts +16 -1
- package/dist/Database/Query/Builder.d.ts.map +1 -1
- package/dist/Database/Query/Builder.js +82 -1
- package/dist/Database/Query/Builder.js.map +1 -1
- package/dist/Foundation/Http/Rule.d.ts +102 -0
- package/dist/Foundation/Http/Rule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rule.js +277 -0
- package/dist/Foundation/Http/Rule.js.map +1 -0
- package/dist/Foundation/Http/Rules/AnyOfRule.d.ts +8 -0
- package/dist/Foundation/Http/Rules/AnyOfRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/AnyOfRule.js +28 -0
- package/dist/Foundation/Http/Rules/AnyOfRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/ArrayRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/ArrayRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/ArrayRule.js +11 -0
- package/dist/Foundation/Http/Rules/ArrayRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/Base.d.ts +13 -0
- package/dist/Foundation/Http/Rules/Base.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/Base.js +23 -0
- package/dist/Foundation/Http/Rules/Base.js.map +1 -0
- package/dist/Foundation/Http/Rules/CanRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/CanRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/CanRule.js +11 -0
- package/dist/Foundation/Http/Rules/CanRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/ContainsRule.d.ts +8 -0
- package/dist/Foundation/Http/Rules/ContainsRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/ContainsRule.js +21 -0
- package/dist/Foundation/Http/Rules/ContainsRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/DatabaseRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/DatabaseRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/DatabaseRule.js +11 -0
- package/dist/Foundation/Http/Rules/DatabaseRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/DateRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/DateRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/DateRule.js +11 -0
- package/dist/Foundation/Http/Rules/DateRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/DimensionsRule.d.ts +17 -0
- package/dist/Foundation/Http/Rules/DimensionsRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/DimensionsRule.js +38 -0
- package/dist/Foundation/Http/Rules/DimensionsRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/DoesntContainRule.d.ts +8 -0
- package/dist/Foundation/Http/Rules/DoesntContainRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/DoesntContainRule.js +21 -0
- package/dist/Foundation/Http/Rules/DoesntContainRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/EmailRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/EmailRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/EmailRule.js +11 -0
- package/dist/Foundation/Http/Rules/EmailRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/EnumRule.d.ts +8 -0
- package/dist/Foundation/Http/Rules/EnumRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/EnumRule.js +21 -0
- package/dist/Foundation/Http/Rules/EnumRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/ExcludeIfRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/ExcludeIfRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/ExcludeIfRule.js +11 -0
- package/dist/Foundation/Http/Rules/ExcludeIfRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/ExistsRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/ExistsRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/ExistsRule.js +11 -0
- package/dist/Foundation/Http/Rules/ExistsRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/FileRule.d.ts +7 -0
- package/dist/Foundation/Http/Rules/FileRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/FileRule.js +23 -0
- package/dist/Foundation/Http/Rules/FileRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/ImageFileRule.d.ts +7 -0
- package/dist/Foundation/Http/Rules/ImageFileRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/ImageFileRule.js +22 -0
- package/dist/Foundation/Http/Rules/ImageFileRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/InRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/InRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/InRule.js +11 -0
- package/dist/Foundation/Http/Rules/InRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/NotInRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/NotInRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/NotInRule.js +11 -0
- package/dist/Foundation/Http/Rules/NotInRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/NumericRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/NumericRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/NumericRule.js +11 -0
- package/dist/Foundation/Http/Rules/NumericRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/PasswordRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/PasswordRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/PasswordRule.js +11 -0
- package/dist/Foundation/Http/Rules/PasswordRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/ProhibitedIfRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/ProhibitedIfRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/ProhibitedIfRule.js +11 -0
- package/dist/Foundation/Http/Rules/ProhibitedIfRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/RequiredIfRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/RequiredIfRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/RequiredIfRule.js +11 -0
- package/dist/Foundation/Http/Rules/RequiredIfRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/UniqueRule.d.ts +5 -0
- package/dist/Foundation/Http/Rules/UniqueRule.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/UniqueRule.js +11 -0
- package/dist/Foundation/Http/Rules/UniqueRule.js.map +1 -0
- package/dist/Foundation/Http/Rules/index.d.ts +22 -0
- package/dist/Foundation/Http/Rules/index.d.ts.map +1 -0
- package/dist/Foundation/Http/Rules/index.js +38 -0
- package/dist/Foundation/Http/Rules/index.js.map +1 -0
- package/dist/Foundation/Http/Validator.d.ts +1 -1
- package/dist/Foundation/Http/Validator.d.ts.map +1 -1
- package/dist/Foundation/Http/Validator.js +838 -9
- package/dist/Foundation/Http/Validator.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotInRule = void 0;
|
|
4
|
+
const Base_1 = require("./Base");
|
|
5
|
+
class NotInRule extends Base_1.BaseRule {
|
|
6
|
+
constructor(values) {
|
|
7
|
+
super(`not_in:${values.map(String).join(',')}`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NotInRule = NotInRule;
|
|
11
|
+
//# sourceMappingURL=NotInRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotInRule.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/NotInRule.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,SAAU,SAAQ,eAAQ;IACrC,YAAY,MAA8B;QACxC,KAAK,CAAC,UAAU,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;CACF;AAJD,8BAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumericRule.d.ts","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/NumericRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,qBAAa,WAAY,SAAQ,QAAQ;;CAIxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumericRule = void 0;
|
|
4
|
+
const Base_1 = require("./Base");
|
|
5
|
+
class NumericRule extends Base_1.BaseRule {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('numeric');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.NumericRule = NumericRule;
|
|
11
|
+
//# sourceMappingURL=NumericRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumericRule.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/NumericRule.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,WAAY,SAAQ,eAAQ;IACvC;QACE,KAAK,CAAC,SAAS,CAAC,CAAC;IACnB,CAAC;CACF;AAJD,kCAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordRule.d.ts","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/PasswordRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,qBAAa,YAAa,SAAQ,QAAQ;;CAIzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PasswordRule = void 0;
|
|
4
|
+
const Base_1 = require("./Base");
|
|
5
|
+
class PasswordRule extends Base_1.BaseRule {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('password');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.PasswordRule = PasswordRule;
|
|
11
|
+
//# sourceMappingURL=PasswordRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordRule.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/PasswordRule.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAQ;IACxC;QACE,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,CAAC;CACF;AAJD,oCAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProhibitedIfRule.d.ts","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/ProhibitedIfRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,qBAAa,gBAAiB,SAAQ,QAAQ;gBAChC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;CAG5D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProhibitedIfRule = void 0;
|
|
4
|
+
const Base_1 = require("./Base");
|
|
5
|
+
class ProhibitedIfRule extends Base_1.BaseRule {
|
|
6
|
+
constructor(field, value) {
|
|
7
|
+
super(`prohibited_if:${field}:${String(value)}`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ProhibitedIfRule = ProhibitedIfRule;
|
|
11
|
+
//# sourceMappingURL=ProhibitedIfRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProhibitedIfRule.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/ProhibitedIfRule.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,gBAAiB,SAAQ,eAAQ;IAC5C,YAAY,KAAa,EAAE,KAAgC;QACzD,KAAK,CAAC,iBAAiB,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACnD,CAAC;CACF;AAJD,4CAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequiredIfRule.d.ts","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/RequiredIfRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;CAG5D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequiredIfRule = void 0;
|
|
4
|
+
const Base_1 = require("./Base");
|
|
5
|
+
class RequiredIfRule extends Base_1.BaseRule {
|
|
6
|
+
constructor(field, value) {
|
|
7
|
+
super(`required_if:${field}:${String(value)}`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.RequiredIfRule = RequiredIfRule;
|
|
11
|
+
//# sourceMappingURL=RequiredIfRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequiredIfRule.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/RequiredIfRule.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,cAAe,SAAQ,eAAQ;IAC1C,YAAY,KAAa,EAAE,KAAgC;QACzD,KAAK,CAAC,eAAe,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjD,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UniqueRule.d.ts","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/UniqueRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,qBAAa,UAAW,SAAQ,QAAQ;gBAC1B,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAG3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UniqueRule = void 0;
|
|
4
|
+
const Base_1 = require("./Base");
|
|
5
|
+
class UniqueRule extends Base_1.BaseRule {
|
|
6
|
+
constructor(table, column) {
|
|
7
|
+
super(column ? `unique:${table},${column}` : `unique:${table}`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.UniqueRule = UniqueRule;
|
|
11
|
+
//# sourceMappingURL=UniqueRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UniqueRule.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/UniqueRule.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAElC,MAAa,UAAW,SAAQ,eAAQ;IACtC,YAAY,KAAa,EAAE,MAAe;QACxC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,KAAK,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AAJD,gCAIC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './Base';
|
|
2
|
+
export * from './EmailRule';
|
|
3
|
+
export * from './NumericRule';
|
|
4
|
+
export * from './InRule';
|
|
5
|
+
export * from './NotInRule';
|
|
6
|
+
export * from './ArrayRule';
|
|
7
|
+
export * from './ProhibitedIfRule';
|
|
8
|
+
export * from './RequiredIfRule';
|
|
9
|
+
export * from './ExcludeIfRule';
|
|
10
|
+
export * from './DateRule';
|
|
11
|
+
export * from './AnyOfRule';
|
|
12
|
+
export * from './ContainsRule';
|
|
13
|
+
export * from './DoesntContainRule';
|
|
14
|
+
export * from './EnumRule';
|
|
15
|
+
export * from './ImageFileRule';
|
|
16
|
+
export * from './DimensionsRule';
|
|
17
|
+
export * from './ExistsRule';
|
|
18
|
+
export * from './UniqueRule';
|
|
19
|
+
export * from './DatabaseRule';
|
|
20
|
+
export * from './CanRule';
|
|
21
|
+
export * from './PasswordRule';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Base"), exports);
|
|
18
|
+
__exportStar(require("./EmailRule"), exports);
|
|
19
|
+
__exportStar(require("./NumericRule"), exports);
|
|
20
|
+
__exportStar(require("./InRule"), exports);
|
|
21
|
+
__exportStar(require("./NotInRule"), exports);
|
|
22
|
+
__exportStar(require("./ArrayRule"), exports);
|
|
23
|
+
__exportStar(require("./ProhibitedIfRule"), exports);
|
|
24
|
+
__exportStar(require("./RequiredIfRule"), exports);
|
|
25
|
+
__exportStar(require("./ExcludeIfRule"), exports);
|
|
26
|
+
__exportStar(require("./DateRule"), exports);
|
|
27
|
+
__exportStar(require("./AnyOfRule"), exports);
|
|
28
|
+
__exportStar(require("./ContainsRule"), exports);
|
|
29
|
+
__exportStar(require("./DoesntContainRule"), exports);
|
|
30
|
+
__exportStar(require("./EnumRule"), exports);
|
|
31
|
+
__exportStar(require("./ImageFileRule"), exports);
|
|
32
|
+
__exportStar(require("./DimensionsRule"), exports);
|
|
33
|
+
__exportStar(require("./ExistsRule"), exports);
|
|
34
|
+
__exportStar(require("./UniqueRule"), exports);
|
|
35
|
+
__exportStar(require("./DatabaseRule"), exports);
|
|
36
|
+
__exportStar(require("./CanRule"), exports);
|
|
37
|
+
__exportStar(require("./PasswordRule"), exports);
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Foundation/Http/Rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B;AAC5B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC;AACjC,kDAAgC;AAChC,6CAA2B;AAC3B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,6CAA2B;AAC3B,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,4CAA0B;AAC1B,iDAA+B"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Provides validation rules and error handling
|
|
6
6
|
*/
|
|
7
|
-
export type ValidationRule = string | string
|
|
7
|
+
export type ValidationRule = string | Array<string | ValidationRuleObject> | ValidationRuleObject;
|
|
8
8
|
export type ValidationRules = Record<string, ValidationRule>;
|
|
9
9
|
export interface ValidationRuleObject {
|
|
10
10
|
rule: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../src/Foundation/Http/Validator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../src/Foundation/Http/Validator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AAClG,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,aAAa,CAAgC;IACrD,OAAO,CAAC,eAAe,CAA2B;gBAGhD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,KAAK,EAAE,eAAe,EACtB,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAC3C,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;IAQ/C;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IA2LlC;;OAEG;IACH,OAAO,CAAC,UAAU;IA0BlB;;OAEG;IACH,OAAO,CAAC,aAAa;IAerB;;OAEG;YACW,YAAY;IA87B1B;;OAEG;IACH,OAAO,CAAC,YAAY;IAKpB;;OAEG;IACH,OAAO,CAAC,UAAU;IASlB;;OAEG;IACH,OAAO,CAAC,UAAU;IAKlB;;OAEG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAOhB;;;OAGG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAIlC;;;OAGG;IACH,KAAK,IAAI,OAAO;IAIhB;;;OAGG;IACH,MAAM,IAAI,OAAO;IAIjB;;;OAGG;IACH,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAGjC"}
|