@royalschedule/validators 1.2.3 → 1.2.5
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/build/index.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ export declare class Validate {
|
|
|
15
15
|
static OverlapGroup: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/overlap-groups").OverlapGroup, "belongsTo">>;
|
|
16
16
|
static Period: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/periods").Period, "belongsTo">>;
|
|
17
17
|
static Person: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/persons").Person, "belongsTo">>;
|
|
18
|
+
static RootInterval: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/root-intervals").RootInterval, "belongsTo">>;
|
|
18
19
|
static Teacher: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/teachers").Teacher, "belongsTo">>;
|
|
19
20
|
}
|
package/build/index.js
CHANGED
|
@@ -18,6 +18,7 @@ const locked_times_1 = __importDefault(require("./validators/locked-times"));
|
|
|
18
18
|
const overlap_groups_1 = __importDefault(require("./validators/overlap-groups"));
|
|
19
19
|
const periods_1 = __importDefault(require("./validators/periods"));
|
|
20
20
|
const persons_1 = __importDefault(require("./validators/persons"));
|
|
21
|
+
const root_intervals_1 = __importDefault(require("./validators/root-intervals"));
|
|
21
22
|
const teachers_1 = __importDefault(require("./validators/teachers"));
|
|
22
23
|
class Validate {
|
|
23
24
|
}
|
|
@@ -36,5 +37,6 @@ Validate.LockedTime = locked_times_1.default;
|
|
|
36
37
|
Validate.OverlapGroup = overlap_groups_1.default;
|
|
37
38
|
Validate.Period = periods_1.default;
|
|
38
39
|
Validate.Person = persons_1.default;
|
|
40
|
+
Validate.RootInterval = root_intervals_1.default;
|
|
39
41
|
Validate.Teacher = teachers_1.default;
|
|
40
42
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,6EAA6E;AAC7E,+EAA8E;AAC9E,mEAAwE;AACxE,6DAAqE;AACrE,uFAAkF;AAClF,uEAA0E;AAC1E,2EAA4E;AAC5E,iEAAuE;AACvE,uEAA0E;AAC1E,uEAA0E;AAC1E,6EAA6E;AAC7E,iFAA+E;AAC/E,mEAAwE;AACxE,mEAAwE;AACxE,qEAAyE;AAEzE,MAAa,QAAQ;;AAArB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,6EAA6E;AAC7E,+EAA8E;AAC9E,mEAAwE;AACxE,6DAAqE;AACrE,uFAAkF;AAClF,uEAA0E;AAC1E,2EAA4E;AAC5E,iEAAuE;AACvE,uEAA0E;AAC1E,uEAA0E;AAC1E,6EAA6E;AAC7E,iFAA+E;AAC/E,mEAAwE;AACxE,mEAAwE;AACxE,iFAA+E;AAC/E,qEAAyE;AAEzE,MAAa,QAAQ;;AAArB,4BAiBC;AAhBQ,oBAAW,GAAU,sBAAY,CAAC;AAClC,oBAAW,GAAU,uBAAY,CAAA;AACjC,eAAM,GAAe,iBAAO,CAAC;AAC7B,YAAG,GAAkB,cAAI,CAAC;AAC1B,iBAAQ,GAAa,2BAAiB,CAAC;AACvC,iBAAQ,GAAa,mBAAS,CAAC;AAC/B,mBAAU,GAAW,qBAAW,CAAC;AACjC,cAAK,GAAgB,gBAAM,CAAC;AAC5B,iBAAQ,GAAa,mBAAS,CAAC;AAC/B,iBAAQ,GAAa,mBAAS,CAAC;AAC/B,mBAAU,GAAW,sBAAW,CAAC;AACjC,qBAAY,GAAS,wBAAa,CAAC;AACnC,eAAM,GAAe,iBAAO,CAAC;AAC7B,eAAM,GAAe,iBAAO,CAAC;AAC7B,qBAAY,GAAS,wBAAa,CAAC;AACnC,gBAAO,GAAc,kBAAQ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const joi_1 = __importDefault(require("joi"));
|
|
7
|
+
const date_1 = __importDefault(require("../common/date"));
|
|
8
|
+
exports.default = joi_1.default.object({
|
|
9
|
+
id: joi_1.default.string(),
|
|
10
|
+
displayName: joi_1.default.string().allow(null, ''),
|
|
11
|
+
intervals: joi_1.default.array()
|
|
12
|
+
.items(joi_1.default.object({
|
|
13
|
+
start: date_1.default.isDate(),
|
|
14
|
+
end: date_1.default.isDate().greater(joi_1.default.ref('start'))
|
|
15
|
+
}))
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=root-intervals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-intervals.js","sourceRoot":"","sources":["../../src/validators/root-intervals.ts"],"names":[],"mappings":";;;;;AAAA,8CAAsD;AAGtD,0DAAiE;AAIjE,kBAAe,aAAG,CAAC,MAAM,CAA+C;IACtE,EAAE,EAA0B,aAAG,CAAC,MAAM,EAAE;IAExC,WAAW,EAAiB,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;IACxD,SAAS,EAAmB,aAAG,CAAC,KAAK,EAAE;SACP,KAAK,CACJ,aAAG,CAAC,MAAM,CAAC;QACT,KAAK,EAAQ,cAAQ,CAAC,MAAM,EAAE;QAC9B,GAAG,EAAU,cAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KACzD,CAAC,CACJ;CAChC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royalschedule/validators",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "validators",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@meanie/joi-moment": "^2.5.1",
|
|
27
|
-
"@royalschedule/maps": "^2.3.
|
|
28
|
-
"joi": "^17.
|
|
27
|
+
"@royalschedule/maps": "^2.3.20",
|
|
28
|
+
"joi": "^17.8.3",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"moment": "^2.29.4",
|
|
31
|
-
"nanoid": "^3.
|
|
31
|
+
"nanoid": "^3.3.4"
|
|
32
32
|
}
|
|
33
33
|
}
|