cloud-ide-lms-model 1.0.251 → 1.0.253
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.
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { MTableQueries } from "../../common-types/common";
|
|
2
|
-
import { AcaClassPrgBranch } from "../../schema
|
|
2
|
+
import { AcaClassPrgBranch } from "../../schema";
|
|
3
3
|
import { controllerResponse } from "../../utilities";
|
|
4
4
|
type IClassPrgBranchErrorLogger = {
|
|
5
|
-
[key in keyof
|
|
5
|
+
[key in keyof AcaClassPrgBranchListPayload]: string;
|
|
6
6
|
};
|
|
7
7
|
type IClassPrgBranchGetByIdErrorLogger = {
|
|
8
|
-
[key in keyof
|
|
8
|
+
[key in keyof AcaClassPrgBranchGetByIdPayload]: string;
|
|
9
9
|
};
|
|
10
10
|
type IClassPrgBranchDeleteErrorLogger = {
|
|
11
|
-
[key in keyof
|
|
11
|
+
[key in keyof AcaClassPrgBranchDeletePayload]: string;
|
|
12
12
|
};
|
|
13
13
|
type IClassPrgBranchInsertUpdateErrorLogger = {
|
|
14
|
-
[key in keyof
|
|
14
|
+
[key in keyof AcaClassPrgBranchInsertUpdatePayload]: string;
|
|
15
15
|
};
|
|
16
16
|
type IClassPrgBranchToggleStatusErrorLogger = {
|
|
17
|
-
[key in keyof
|
|
17
|
+
[key in keyof AcaClassPrgBranchToggleStatusPayload]: string;
|
|
18
18
|
};
|
|
19
19
|
type IClassPrgBranchToggleLockErrorLogger = {
|
|
20
|
-
[key in keyof
|
|
20
|
+
[key in keyof AcaClassPrgBranchToggleLockPayload]: string;
|
|
21
21
|
};
|
|
22
|
-
declare class
|
|
23
|
-
constructor(init:
|
|
22
|
+
declare class AcaClassPrgBranchListPayload extends MTableQueries {
|
|
23
|
+
constructor(init: AcaClassPrgBranchListPayload);
|
|
24
24
|
Validate?(): Partial<IClassPrgBranchErrorLogger>;
|
|
25
25
|
}
|
|
26
|
-
declare class
|
|
26
|
+
declare class AcaClassPrgBranchGetByIdPayload {
|
|
27
27
|
acabrn_id?: string;
|
|
28
|
-
constructor(init:
|
|
28
|
+
constructor(init: AcaClassPrgBranchGetByIdPayload);
|
|
29
29
|
Validate?(): Partial<IClassPrgBranchGetByIdErrorLogger>;
|
|
30
30
|
}
|
|
31
|
-
declare class
|
|
31
|
+
declare class AcaClassPrgBranchDeletePayload {
|
|
32
32
|
acabrn_id?: string;
|
|
33
|
-
constructor(init:
|
|
33
|
+
constructor(init: AcaClassPrgBranchDeletePayload);
|
|
34
34
|
Validate?(): Partial<IClassPrgBranchDeleteErrorLogger>;
|
|
35
35
|
}
|
|
36
|
-
declare class
|
|
36
|
+
declare class AcaClassPrgBranchToggleStatusPayload {
|
|
37
37
|
acabrn_id?: string;
|
|
38
|
-
constructor(init:
|
|
38
|
+
constructor(init: AcaClassPrgBranchToggleStatusPayload);
|
|
39
39
|
Validate?(): Partial<IClassPrgBranchToggleStatusErrorLogger>;
|
|
40
40
|
}
|
|
41
|
-
declare class
|
|
41
|
+
declare class AcaClassPrgBranchToggleLockPayload {
|
|
42
42
|
acabrn_id?: string;
|
|
43
|
-
constructor(init:
|
|
43
|
+
constructor(init: AcaClassPrgBranchToggleLockPayload);
|
|
44
44
|
Validate?(): Partial<IClassPrgBranchToggleLockErrorLogger>;
|
|
45
45
|
}
|
|
46
|
-
declare class
|
|
47
|
-
constructor(init:
|
|
46
|
+
declare class AcaClassPrgBranchInsertUpdatePayload extends AcaClassPrgBranch {
|
|
47
|
+
constructor(init: AcaClassPrgBranchInsertUpdatePayload);
|
|
48
48
|
Validate?(): Partial<IClassPrgBranchInsertUpdateErrorLogger>;
|
|
49
49
|
}
|
|
50
50
|
interface classPrgBranchControllerResponse extends controllerResponse {
|
|
@@ -68,4 +68,4 @@ interface classPrgBranchToggleLockControllerResponse extends controllerResponse
|
|
|
68
68
|
interface classPrgBranchByProgramControllerResponse extends controllerResponse {
|
|
69
69
|
data?: Array<AcaClassPrgBranch>;
|
|
70
70
|
}
|
|
71
|
-
export { IClassPrgBranchErrorLogger, IClassPrgBranchGetByIdErrorLogger, IClassPrgBranchDeleteErrorLogger, IClassPrgBranchInsertUpdateErrorLogger, IClassPrgBranchToggleStatusErrorLogger, IClassPrgBranchToggleLockErrorLogger,
|
|
71
|
+
export { IClassPrgBranchErrorLogger, IClassPrgBranchGetByIdErrorLogger, IClassPrgBranchDeleteErrorLogger, IClassPrgBranchInsertUpdateErrorLogger, IClassPrgBranchToggleStatusErrorLogger, IClassPrgBranchToggleLockErrorLogger, AcaClassPrgBranchListPayload, AcaClassPrgBranchGetByIdPayload, AcaClassPrgBranchDeletePayload, AcaClassPrgBranchInsertUpdatePayload, AcaClassPrgBranchToggleStatusPayload, AcaClassPrgBranchToggleLockPayload, classPrgBranchControllerResponse, classPrgBranchByIdControllerResponse, classPrgBranchInsertUpdateControllerResponse, classPrgBranchDeleteControllerResponse, classPrgBranchToggleStatusControllerResponse, classPrgBranchToggleLockControllerResponse, classPrgBranchByProgramControllerResponse };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AcaClassPrgBranchToggleLockPayload = exports.AcaClassPrgBranchToggleStatusPayload = exports.AcaClassPrgBranchInsertUpdatePayload = exports.AcaClassPrgBranchDeletePayload = exports.AcaClassPrgBranchGetByIdPayload = exports.AcaClassPrgBranchListPayload = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
|
-
const
|
|
5
|
+
const schema_1 = require("../../schema");
|
|
6
6
|
/* INTERFACE END */
|
|
7
7
|
/* MODEL START */
|
|
8
|
-
class
|
|
8
|
+
class AcaClassPrgBranchListPayload extends common_1.MTableQueries {
|
|
9
9
|
constructor(init) {
|
|
10
10
|
super(init);
|
|
11
11
|
Object.assign(this, init);
|
|
@@ -15,8 +15,8 @@ class MClassPrgBranch extends common_1.MTableQueries {
|
|
|
15
15
|
return errorLogger;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
19
|
-
class
|
|
18
|
+
exports.AcaClassPrgBranchListPayload = AcaClassPrgBranchListPayload;
|
|
19
|
+
class AcaClassPrgBranchGetByIdPayload {
|
|
20
20
|
constructor(init) {
|
|
21
21
|
Object.assign(this, init);
|
|
22
22
|
}
|
|
@@ -28,8 +28,8 @@ class MClassPrgBranchGetByIdPayload {
|
|
|
28
28
|
return errorLogger;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
class
|
|
31
|
+
exports.AcaClassPrgBranchGetByIdPayload = AcaClassPrgBranchGetByIdPayload;
|
|
32
|
+
class AcaClassPrgBranchDeletePayload {
|
|
33
33
|
constructor(init) {
|
|
34
34
|
Object.assign(this, init);
|
|
35
35
|
}
|
|
@@ -41,8 +41,8 @@ class MClassPrgBranchDeletePayload {
|
|
|
41
41
|
return errorLogger;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
exports.
|
|
45
|
-
class
|
|
44
|
+
exports.AcaClassPrgBranchDeletePayload = AcaClassPrgBranchDeletePayload;
|
|
45
|
+
class AcaClassPrgBranchToggleStatusPayload {
|
|
46
46
|
constructor(init) {
|
|
47
47
|
Object.assign(this, init);
|
|
48
48
|
}
|
|
@@ -54,8 +54,8 @@ class MClassPrgBranchToggleStatusPayload {
|
|
|
54
54
|
return errorLogger;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
exports.
|
|
58
|
-
class
|
|
57
|
+
exports.AcaClassPrgBranchToggleStatusPayload = AcaClassPrgBranchToggleStatusPayload;
|
|
58
|
+
class AcaClassPrgBranchToggleLockPayload {
|
|
59
59
|
constructor(init) {
|
|
60
60
|
Object.assign(this, init);
|
|
61
61
|
}
|
|
@@ -67,27 +67,15 @@ class MClassPrgBranchToggleLockPayload {
|
|
|
67
67
|
return errorLogger;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
exports.
|
|
71
|
-
class
|
|
70
|
+
exports.AcaClassPrgBranchToggleLockPayload = AcaClassPrgBranchToggleLockPayload;
|
|
71
|
+
class AcaClassPrgBranchInsertUpdatePayload extends schema_1.AcaClassPrgBranch {
|
|
72
72
|
constructor(init) {
|
|
73
73
|
super();
|
|
74
74
|
Object.assign(this, init);
|
|
75
75
|
}
|
|
76
76
|
Validate() {
|
|
77
77
|
let errorLogger = {};
|
|
78
|
-
if (!this.acabrn_class_program_id_acacpm) {
|
|
79
|
-
errorLogger.acabrn_class_program_id_acacpm = "Class Program ID is required!";
|
|
80
|
-
}
|
|
81
|
-
if (!this.acabrn_name) {
|
|
82
|
-
errorLogger.acabrn_name = "Branch name is required!";
|
|
83
|
-
}
|
|
84
|
-
if (!this.acabm_code) {
|
|
85
|
-
errorLogger.acabm_code = "Branch code is required!";
|
|
86
|
-
}
|
|
87
|
-
if (this.acabm_sequence === undefined || this.acabm_sequence === null) {
|
|
88
|
-
errorLogger.acabm_sequence = "Sequence number is required!";
|
|
89
|
-
}
|
|
90
78
|
return errorLogger;
|
|
91
79
|
}
|
|
92
80
|
}
|
|
93
|
-
exports.
|
|
81
|
+
exports.AcaClassPrgBranchInsertUpdatePayload = AcaClassPrgBranchInsertUpdatePayload;
|
|
@@ -24,5 +24,9 @@ declare const academicsRoutesUrl: {
|
|
|
24
24
|
* Endpoint to get program term section (program-term-section)
|
|
25
25
|
*/
|
|
26
26
|
programTermSection: string;
|
|
27
|
+
/**
|
|
28
|
+
* Endpoint to get class program branch (class-program-branch)
|
|
29
|
+
*/
|
|
30
|
+
classProgramBranch: string;
|
|
27
31
|
};
|
|
28
32
|
export { academicsRoutesUrl };
|
|
@@ -26,7 +26,11 @@ const academicsRoutesUrl = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Endpoint to get program term section (program-term-section)
|
|
28
28
|
*/
|
|
29
|
-
programTermSection: "program-term-section"
|
|
29
|
+
programTermSection: "program-term-section",
|
|
30
|
+
/**
|
|
31
|
+
* Endpoint to get class program branch (class-program-branch)
|
|
32
|
+
*/
|
|
33
|
+
classProgramBranch: "class-program-branch",
|
|
30
34
|
};
|
|
31
35
|
exports.academicsRoutesUrl = academicsRoutesUrl;
|
|
32
36
|
// Freeze the authRoutesUrl object to prevent modifications
|