cloud-ide-lms-model 1.0.159 → 1.0.161
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/lib/common-types/common.d.ts +1 -0
- package/lib/common-types/common.js +1 -0
- package/lib/model/core/core_department.d.ts +28 -10
- package/lib/model/core/core_department.js +37 -11
- package/lib/model/core/core_designation.d.ts +28 -10
- package/lib/model/core/core_designation.js +38 -12
- package/lib/model/core/core_designation_grade_level.d.ts +1 -16
- package/lib/model/core/core_designation_grade_level.js +1 -20
- package/package.json +1 -1
|
@@ -4,8 +4,14 @@ import { controllerResponse } from "../../utilities";
|
|
|
4
4
|
type IDepartmentErrorLogger = {
|
|
5
5
|
[key in keyof MDepartment]: string;
|
|
6
6
|
};
|
|
7
|
-
type
|
|
8
|
-
[key in keyof
|
|
7
|
+
type IDepartmentGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MDepartmentGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IDepartmentDeleteErrorLogger = {
|
|
11
|
+
[key in keyof MDepartmentDeletePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IDepartmentInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MDepartmentInsertUpdatePayload]: string;
|
|
9
15
|
};
|
|
10
16
|
declare class MDepartment extends MTableQueries {
|
|
11
17
|
sydept_code?: string;
|
|
@@ -17,12 +23,26 @@ declare class MDepartment extends MTableQueries {
|
|
|
17
23
|
constructor(init: MDepartment);
|
|
18
24
|
Validate?(): Partial<IDepartmentErrorLogger>;
|
|
19
25
|
}
|
|
20
|
-
declare class
|
|
26
|
+
declare class MDepartmentGetByIdPayload {
|
|
27
|
+
sydept_id?: string;
|
|
28
|
+
constructor(init: MDepartmentGetByIdPayload);
|
|
29
|
+
Validate?(): Partial<IDepartmentGetByIdErrorLogger>;
|
|
30
|
+
}
|
|
31
|
+
declare class MDepartmentDeletePayload {
|
|
32
|
+
sydept_id?: string;
|
|
33
|
+
constructor(init: MDepartmentDeletePayload);
|
|
34
|
+
Validate?(): Partial<IDepartmentDeleteErrorLogger>;
|
|
35
|
+
}
|
|
36
|
+
declare class MDepartmentInsertUpdatePayload implements ICoreSydept {
|
|
37
|
+
_id?: string;
|
|
21
38
|
sydept_code?: string;
|
|
22
39
|
sydept_name?: string;
|
|
40
|
+
sydept_description?: string;
|
|
41
|
+
sydept_isactive?: boolean;
|
|
42
|
+
sydept_department_id_sydept?: string;
|
|
23
43
|
sydept_entity_id_syen?: string;
|
|
24
|
-
constructor(init:
|
|
25
|
-
Validate?(): Partial<
|
|
44
|
+
constructor(init: ICoreSydept);
|
|
45
|
+
Validate?(): Partial<IDepartmentInsertUpdateErrorLogger>;
|
|
26
46
|
}
|
|
27
47
|
interface departmentControllerResponse extends controllerResponse {
|
|
28
48
|
data?: ICoreSydept[];
|
|
@@ -33,9 +53,7 @@ interface departmentByIdControllerResponse extends controllerResponse {
|
|
|
33
53
|
interface departmentInsertUpdateControllerResponse extends controllerResponse {
|
|
34
54
|
data?: ICoreSydept;
|
|
35
55
|
}
|
|
36
|
-
interface
|
|
37
|
-
data?:
|
|
38
|
-
core_department: MDepartmentSelect[];
|
|
39
|
-
};
|
|
56
|
+
interface departmentDeleteControllerResponse extends controllerResponse {
|
|
57
|
+
data?: boolean;
|
|
40
58
|
}
|
|
41
|
-
export { IDepartmentErrorLogger,
|
|
59
|
+
export { IDepartmentErrorLogger, IDepartmentGetByIdErrorLogger, IDepartmentDeleteErrorLogger, IDepartmentInsertUpdateErrorLogger, MDepartment, MDepartmentGetByIdPayload, MDepartmentDeletePayload, MDepartmentInsertUpdatePayload, departmentControllerResponse, departmentByIdControllerResponse, departmentInsertUpdateControllerResponse, departmentDeleteControllerResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MDepartmentInsertUpdatePayload = exports.MDepartmentDeletePayload = exports.MDepartmentGetByIdPayload = exports.MDepartment = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
5
|
/* INTERFACE END */
|
|
6
6
|
/* MODEL START */
|
|
@@ -11,26 +11,52 @@ class MDepartment extends common_1.MTableQueries {
|
|
|
11
11
|
}
|
|
12
12
|
Validate() {
|
|
13
13
|
let errorLogger = {};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MDepartment = MDepartment;
|
|
18
|
+
class MDepartmentGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.sydept_id) {
|
|
25
|
+
errorLogger.sydept_id = "Department ID is Required!";
|
|
19
26
|
}
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MDepartmentGetByIdPayload = MDepartmentGetByIdPayload;
|
|
31
|
+
class MDepartmentDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.sydept_id) {
|
|
38
|
+
errorLogger.sydept_id = "Department ID is Required!";
|
|
22
39
|
}
|
|
23
40
|
return errorLogger;
|
|
24
41
|
}
|
|
25
42
|
}
|
|
26
|
-
exports.
|
|
27
|
-
class
|
|
43
|
+
exports.MDepartmentDeletePayload = MDepartmentDeletePayload;
|
|
44
|
+
class MDepartmentInsertUpdatePayload {
|
|
28
45
|
constructor(init) {
|
|
29
46
|
Object.assign(this, init);
|
|
30
47
|
}
|
|
31
48
|
Validate() {
|
|
32
49
|
let errorLogger = {};
|
|
50
|
+
if (!this.sydept_code) {
|
|
51
|
+
errorLogger.sydept_code = "Department code is required!";
|
|
52
|
+
}
|
|
53
|
+
if (!this.sydept_name) {
|
|
54
|
+
errorLogger.sydept_name = "Department name is required!";
|
|
55
|
+
}
|
|
56
|
+
if (!this.sydept_entity_id_syen) {
|
|
57
|
+
errorLogger.sydept_entity_id_syen = "Entity ID is required!";
|
|
58
|
+
}
|
|
33
59
|
return errorLogger;
|
|
34
60
|
}
|
|
35
61
|
}
|
|
36
|
-
exports.
|
|
62
|
+
exports.MDepartmentInsertUpdatePayload = MDepartmentInsertUpdatePayload;
|
|
@@ -4,8 +4,14 @@ import { controllerResponse } from "../../utilities";
|
|
|
4
4
|
type IDesignationErrorLogger = {
|
|
5
5
|
[key in keyof MDesignation]: string;
|
|
6
6
|
};
|
|
7
|
-
type
|
|
8
|
-
[key in keyof
|
|
7
|
+
type IDesignationGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MDesignationGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IDesignationDeleteErrorLogger = {
|
|
11
|
+
[key in keyof MDesignationDeletePayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IDesignationInsertUpdateErrorLogger = {
|
|
14
|
+
[key in keyof MDesignationInsertUpdatePayload]: string;
|
|
9
15
|
};
|
|
10
16
|
declare class MDesignation extends MTableQueries {
|
|
11
17
|
sydsg_name?: string;
|
|
@@ -19,14 +25,28 @@ declare class MDesignation extends MTableQueries {
|
|
|
19
25
|
constructor(init: MDesignation);
|
|
20
26
|
Validate?(): Partial<IDesignationErrorLogger>;
|
|
21
27
|
}
|
|
22
|
-
declare class
|
|
28
|
+
declare class MDesignationGetByIdPayload {
|
|
29
|
+
sydsg_id?: string;
|
|
30
|
+
constructor(init: MDesignationGetByIdPayload);
|
|
31
|
+
Validate?(): Partial<IDesignationGetByIdErrorLogger>;
|
|
32
|
+
}
|
|
33
|
+
declare class MDesignationDeletePayload {
|
|
34
|
+
sydsg_id?: string;
|
|
35
|
+
constructor(init: MDesignationDeletePayload);
|
|
36
|
+
Validate?(): Partial<IDesignationDeleteErrorLogger>;
|
|
37
|
+
}
|
|
38
|
+
declare class MDesignationInsertUpdatePayload implements ICoreSydsg {
|
|
39
|
+
_id?: string;
|
|
23
40
|
sydsg_name?: string;
|
|
24
41
|
sydsg_code?: string;
|
|
42
|
+
sydsg_description?: string;
|
|
43
|
+
sydsg_prent_id_desg?: string;
|
|
25
44
|
sydsg_department_id_sydpt?: string;
|
|
26
45
|
sydsg_grade_level_id_sydsgl?: string;
|
|
46
|
+
sydsg_isactive?: boolean;
|
|
27
47
|
desg_entity_id_syen?: string;
|
|
28
|
-
constructor(init:
|
|
29
|
-
Validate?(): Partial<
|
|
48
|
+
constructor(init: ICoreSydsg);
|
|
49
|
+
Validate?(): Partial<IDesignationInsertUpdateErrorLogger>;
|
|
30
50
|
}
|
|
31
51
|
interface designationControllerResponse extends controllerResponse {
|
|
32
52
|
data?: ICoreSydsg[];
|
|
@@ -37,9 +57,7 @@ interface designationByIdControllerResponse extends controllerResponse {
|
|
|
37
57
|
interface designationInsertUpdateControllerResponse extends controllerResponse {
|
|
38
58
|
data?: ICoreSydsg;
|
|
39
59
|
}
|
|
40
|
-
interface
|
|
41
|
-
data?:
|
|
42
|
-
core_designation: MDesignationSelect[];
|
|
43
|
-
};
|
|
60
|
+
interface designationDeleteControllerResponse extends controllerResponse {
|
|
61
|
+
data?: boolean;
|
|
44
62
|
}
|
|
45
|
-
export { IDesignationErrorLogger,
|
|
63
|
+
export { IDesignationErrorLogger, IDesignationGetByIdErrorLogger, IDesignationDeleteErrorLogger, IDesignationInsertUpdateErrorLogger, MDesignation, MDesignationGetByIdPayload, MDesignationDeletePayload, MDesignationInsertUpdatePayload, designationControllerResponse, designationByIdControllerResponse, designationInsertUpdateControllerResponse, designationDeleteControllerResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MDesignationInsertUpdatePayload = exports.MDesignationDeletePayload = exports.MDesignationGetByIdPayload = exports.MDesignation = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
5
|
/* INTERFACE END */
|
|
6
6
|
/* MODEL START */
|
|
@@ -9,6 +9,42 @@ class MDesignation extends common_1.MTableQueries {
|
|
|
9
9
|
super(init);
|
|
10
10
|
Object.assign(this, init);
|
|
11
11
|
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MDesignation = MDesignation;
|
|
18
|
+
class MDesignationGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.sydsg_id) {
|
|
25
|
+
errorLogger.sydsg_id = "Designation ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MDesignationGetByIdPayload = MDesignationGetByIdPayload;
|
|
31
|
+
class MDesignationDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.sydsg_id) {
|
|
38
|
+
errorLogger.sydsg_id = "Designation ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MDesignationDeletePayload = MDesignationDeletePayload;
|
|
44
|
+
class MDesignationInsertUpdatePayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
12
48
|
Validate() {
|
|
13
49
|
let errorLogger = {};
|
|
14
50
|
if (!this.sydsg_name) {
|
|
@@ -29,14 +65,4 @@ class MDesignation extends common_1.MTableQueries {
|
|
|
29
65
|
return errorLogger;
|
|
30
66
|
}
|
|
31
67
|
}
|
|
32
|
-
exports.
|
|
33
|
-
class MDesignationSelect {
|
|
34
|
-
constructor(init) {
|
|
35
|
-
Object.assign(this, init);
|
|
36
|
-
}
|
|
37
|
-
Validate() {
|
|
38
|
-
let errorLogger = {};
|
|
39
|
-
return errorLogger;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.MDesignationSelect = MDesignationSelect;
|
|
68
|
+
exports.MDesignationInsertUpdatePayload = MDesignationInsertUpdatePayload;
|
|
@@ -4,9 +4,6 @@ import { controllerResponse } from "../../utilities";
|
|
|
4
4
|
type IGradeLevelErrorLogger = {
|
|
5
5
|
[key in keyof MGradeLevel]: string;
|
|
6
6
|
};
|
|
7
|
-
type IGradeLevelSelectErrorLogger = {
|
|
8
|
-
[key in keyof MGradeLevelSelect]: string;
|
|
9
|
-
};
|
|
10
7
|
declare class MGradeLevel extends MTableQueries {
|
|
11
8
|
sydsgl_name?: string;
|
|
12
9
|
sydsgl_description?: string;
|
|
@@ -16,13 +13,6 @@ declare class MGradeLevel extends MTableQueries {
|
|
|
16
13
|
constructor(init: MGradeLevel);
|
|
17
14
|
Validate?(): Partial<IGradeLevelErrorLogger>;
|
|
18
15
|
}
|
|
19
|
-
declare class MGradeLevelSelect {
|
|
20
|
-
sydsgl_name?: string;
|
|
21
|
-
sydsgl_order?: number;
|
|
22
|
-
sydsgl_entity_id_syen?: string;
|
|
23
|
-
constructor(init: MGradeLevelSelect);
|
|
24
|
-
Validate?(): Partial<IGradeLevelSelectErrorLogger>;
|
|
25
|
-
}
|
|
26
16
|
interface gradeLevelControllerResponse extends controllerResponse {
|
|
27
17
|
data?: ICoreSydsgl[];
|
|
28
18
|
}
|
|
@@ -32,9 +22,4 @@ interface gradeLevelByIdControllerResponse extends controllerResponse {
|
|
|
32
22
|
interface gradeLevelInsertUpdateControllerResponse extends controllerResponse {
|
|
33
23
|
data?: ICoreSydsgl;
|
|
34
24
|
}
|
|
35
|
-
|
|
36
|
-
data?: {
|
|
37
|
-
core_designation_grade_level: MGradeLevelSelect[];
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export { IGradeLevelErrorLogger, IGradeLevelSelectErrorLogger, MGradeLevel, MGradeLevelSelect, gradeLevelControllerResponse, gradeLevelByIdControllerResponse, gradeLevelInsertUpdateControllerResponse, gradeLevelSelectControllerResponse };
|
|
25
|
+
export { IGradeLevelErrorLogger, MGradeLevel, gradeLevelControllerResponse, gradeLevelByIdControllerResponse, gradeLevelInsertUpdateControllerResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MGradeLevel = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
5
|
/* INTERFACE END */
|
|
6
6
|
/* MODEL START */
|
|
@@ -11,26 +11,7 @@ class MGradeLevel extends common_1.MTableQueries {
|
|
|
11
11
|
}
|
|
12
12
|
Validate() {
|
|
13
13
|
let errorLogger = {};
|
|
14
|
-
if (!this.sydsgl_name) {
|
|
15
|
-
errorLogger.sydsgl_name = "Grade level name is required!";
|
|
16
|
-
}
|
|
17
|
-
if (!this.sydsgl_order) {
|
|
18
|
-
errorLogger.sydsgl_order = "Grade level order is required!";
|
|
19
|
-
}
|
|
20
|
-
if (!this.sydsgl_entity_id_syen) {
|
|
21
|
-
errorLogger.sydsgl_entity_id_syen = "Entity ID is required!";
|
|
22
|
-
}
|
|
23
14
|
return errorLogger;
|
|
24
15
|
}
|
|
25
16
|
}
|
|
26
17
|
exports.MGradeLevel = MGradeLevel;
|
|
27
|
-
class MGradeLevelSelect {
|
|
28
|
-
constructor(init) {
|
|
29
|
-
Object.assign(this, init);
|
|
30
|
-
}
|
|
31
|
-
Validate() {
|
|
32
|
-
let errorLogger = {};
|
|
33
|
-
return errorLogger;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.MGradeLevelSelect = MGradeLevelSelect;
|