@royalschedule/validators 2.7.4 → 2.7.6
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/README.md +9 -22
- package/build/common/util.js +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,29 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Validators #
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Documentation tbd
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Build package and publish to npmjs
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Version
|
|
9
|
-
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
7
|
+
0. login: npm login
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
1. build: npm run build
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
* Configuration
|
|
15
|
-
* Dependencies
|
|
16
|
-
* Database configuration
|
|
17
|
-
* How to run tests
|
|
18
|
-
* Deployment instructions
|
|
11
|
+
2. update version in package.json: npm version patch
|
|
19
12
|
|
|
20
|
-
|
|
13
|
+
3. generate a test package: npm pack --dry-run
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* Other guidelines
|
|
25
|
-
|
|
26
|
-
### Who do I talk to? ###
|
|
27
|
-
|
|
28
|
-
* Repo owner or admin
|
|
29
|
-
* Other community or team contact
|
|
15
|
+
4. publish beta: npm publish --access public --tag beta
|
|
16
|
+
publish prod: npm publish --access public
|
package/build/common/util.js
CHANGED
|
@@ -10,7 +10,7 @@ var Util;
|
|
|
10
10
|
let Constants;
|
|
11
11
|
(function (Constants) {
|
|
12
12
|
Constants.FIRST_TIME = moment_1.default.utc('1970-01-05').startOf('day');
|
|
13
|
-
Constants.LAST_TIME = moment_1.default.utc('1970-01-05').add(
|
|
13
|
+
Constants.LAST_TIME = moment_1.default.utc('1970-01-05').add(6, 'd').endOf('day');
|
|
14
14
|
})(Constants = Util.Constants || (Util.Constants = {}));
|
|
15
15
|
let functions;
|
|
16
16
|
(function (functions) {
|
package/build/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export declare class Validate {
|
|
|
18
18
|
static Person: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/persons").Person, "belongsTo">>;
|
|
19
19
|
static RootInterval: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/root-intervals").RootInterval, "belongsTo">>;
|
|
20
20
|
static Teacher: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/teachers").Teacher, "belongsTo">>;
|
|
21
|
+
static Syllabus: import("joi").ObjectSchema<Omit<import("@royalschedule/maps/dist/core/v2/types/syllabus").Syllabus, "belongsTo">>;
|
|
21
22
|
}
|
package/build/index.js
CHANGED
|
@@ -21,6 +21,7 @@ const periods_1 = __importDefault(require("./validators/periods"));
|
|
|
21
21
|
const persons_1 = __importDefault(require("./validators/persons"));
|
|
22
22
|
const root_intervals_1 = __importDefault(require("./validators/root-intervals"));
|
|
23
23
|
const teachers_1 = __importDefault(require("./validators/teachers"));
|
|
24
|
+
const syllabus_1 = __importDefault(require("./validators/syllabus"));
|
|
24
25
|
class Validate {
|
|
25
26
|
}
|
|
26
27
|
exports.Validate = Validate;
|
|
@@ -41,4 +42,5 @@ Validate.Period = periods_1.default;
|
|
|
41
42
|
Validate.Person = persons_1.default;
|
|
42
43
|
Validate.RootInterval = root_intervals_1.default;
|
|
43
44
|
Validate.Teacher = teachers_1.default;
|
|
45
|
+
Validate.Syllabus = syllabus_1.default;
|
|
44
46
|
//# 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,yEAA2E;AAC3E,+EAA8E;AAC9E,mEAAwE;AAC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