@royalschedule/validators 1.2.0-beta.1 → 1.2.0-beta.2
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
|
@@ -11,6 +11,6 @@ export declare class Validate {
|
|
|
11
11
|
static Location: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/types/locations").Location, "belongsTo">>;
|
|
12
12
|
static LockedTime: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/types/locked-times").LockedTime, "belongsTo">>;
|
|
13
13
|
static OverlapGroup: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/types/overlap-groups").OverlapGroup, "belongsTo">>;
|
|
14
|
-
static Person: import("joi").ObjectSchema<
|
|
14
|
+
static Person: import("joi").ObjectSchema<any>;
|
|
15
15
|
static Teacher: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/types/teachers").Teacher, "belongsTo">>;
|
|
16
16
|
}
|
|
@@ -9,13 +9,13 @@ exports.default = joi_1.default.object({
|
|
|
9
9
|
id: joi_1.default.string(),
|
|
10
10
|
displayName: joi_1.default.string().allow(null, ''),
|
|
11
11
|
ids: joi_1.default.string().allow(null),
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
lastName: joi_1.default.string().allow(null),
|
|
13
|
+
firstName: joi_1.default.string().allow(null),
|
|
14
14
|
sex: joi_1.default.string().valid('Man', 'Woman').allow(null),
|
|
15
15
|
SSN: joi_1.default.object({
|
|
16
16
|
value: joi_1.default.string(),
|
|
17
17
|
nationality: joi_1.default.string()
|
|
18
|
-
}),
|
|
18
|
+
}).allow(null),
|
|
19
19
|
emails: [
|
|
20
20
|
joi_1.default.array().items(joi_1.default.string().email({ tlds: { allow: false } })),
|
|
21
21
|
joi_1.default.array().items(joi_1.default.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../src/validators/persons.ts"],"names":[],"mappings":";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