cloud-ide-lms-model 1.0.250 → 1.0.252

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.
@@ -0,0 +1,71 @@
1
+ import { MTableQueries } from "../../common-types/common";
2
+ import { AcaClassPrgBranch } from "../../schema";
3
+ import { controllerResponse } from "../../utilities";
4
+ type IClassPrgBranchErrorLogger = {
5
+ [key in keyof AcaClassPrgBranchListPayload]: string;
6
+ };
7
+ type IClassPrgBranchGetByIdErrorLogger = {
8
+ [key in keyof AcaClassPrgBranchGetByIdPayload]: string;
9
+ };
10
+ type IClassPrgBranchDeleteErrorLogger = {
11
+ [key in keyof AcaClassPrgBranchDeletePayload]: string;
12
+ };
13
+ type IClassPrgBranchInsertUpdateErrorLogger = {
14
+ [key in keyof AcaClassPrgBranchInsertUpdatePayload]: string;
15
+ };
16
+ type IClassPrgBranchToggleStatusErrorLogger = {
17
+ [key in keyof AcaClassPrgBranchToggleStatusPayload]: string;
18
+ };
19
+ type IClassPrgBranchToggleLockErrorLogger = {
20
+ [key in keyof AcaClassPrgBranchToggleLockPayload]: string;
21
+ };
22
+ declare class AcaClassPrgBranchListPayload extends MTableQueries {
23
+ constructor(init: AcaClassPrgBranchListPayload);
24
+ Validate?(): Partial<IClassPrgBranchErrorLogger>;
25
+ }
26
+ declare class AcaClassPrgBranchGetByIdPayload {
27
+ acabrn_id?: string;
28
+ constructor(init: AcaClassPrgBranchGetByIdPayload);
29
+ Validate?(): Partial<IClassPrgBranchGetByIdErrorLogger>;
30
+ }
31
+ declare class AcaClassPrgBranchDeletePayload {
32
+ acabrn_id?: string;
33
+ constructor(init: AcaClassPrgBranchDeletePayload);
34
+ Validate?(): Partial<IClassPrgBranchDeleteErrorLogger>;
35
+ }
36
+ declare class AcaClassPrgBranchToggleStatusPayload {
37
+ acabrn_id?: string;
38
+ constructor(init: AcaClassPrgBranchToggleStatusPayload);
39
+ Validate?(): Partial<IClassPrgBranchToggleStatusErrorLogger>;
40
+ }
41
+ declare class AcaClassPrgBranchToggleLockPayload {
42
+ acabrn_id?: string;
43
+ constructor(init: AcaClassPrgBranchToggleLockPayload);
44
+ Validate?(): Partial<IClassPrgBranchToggleLockErrorLogger>;
45
+ }
46
+ declare class AcaClassPrgBranchInsertUpdatePayload extends AcaClassPrgBranch {
47
+ constructor(init: AcaClassPrgBranchInsertUpdatePayload);
48
+ Validate?(): Partial<IClassPrgBranchInsertUpdateErrorLogger>;
49
+ }
50
+ interface classPrgBranchControllerResponse extends controllerResponse {
51
+ data?: AcaClassPrgBranch[];
52
+ }
53
+ interface classPrgBranchByIdControllerResponse extends controllerResponse {
54
+ data?: AcaClassPrgBranch;
55
+ }
56
+ interface classPrgBranchInsertUpdateControllerResponse extends controllerResponse {
57
+ data?: AcaClassPrgBranch;
58
+ }
59
+ interface classPrgBranchDeleteControllerResponse extends controllerResponse {
60
+ data?: boolean;
61
+ }
62
+ interface classPrgBranchToggleStatusControllerResponse extends controllerResponse {
63
+ data?: boolean;
64
+ }
65
+ interface classPrgBranchToggleLockControllerResponse extends controllerResponse {
66
+ data?: boolean;
67
+ }
68
+ interface classPrgBranchByProgramControllerResponse extends controllerResponse {
69
+ data?: Array<AcaClassPrgBranch>;
70
+ }
71
+ export { IClassPrgBranchErrorLogger, IClassPrgBranchGetByIdErrorLogger, IClassPrgBranchDeleteErrorLogger, IClassPrgBranchInsertUpdateErrorLogger, IClassPrgBranchToggleStatusErrorLogger, IClassPrgBranchToggleLockErrorLogger, AcaClassPrgBranchListPayload, AcaClassPrgBranchGetByIdPayload, AcaClassPrgBranchDeletePayload, AcaClassPrgBranchInsertUpdatePayload, AcaClassPrgBranchToggleStatusPayload, AcaClassPrgBranchToggleLockPayload, classPrgBranchControllerResponse, classPrgBranchByIdControllerResponse, classPrgBranchInsertUpdateControllerResponse, classPrgBranchDeleteControllerResponse, classPrgBranchToggleStatusControllerResponse, classPrgBranchToggleLockControllerResponse, classPrgBranchByProgramControllerResponse };
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcaClassPrgBranchToggleLockPayload = exports.AcaClassPrgBranchToggleStatusPayload = exports.AcaClassPrgBranchInsertUpdatePayload = exports.AcaClassPrgBranchDeletePayload = exports.AcaClassPrgBranchGetByIdPayload = exports.AcaClassPrgBranchListPayload = void 0;
4
+ const common_1 = require("../../common-types/common");
5
+ const schema_1 = require("../../schema");
6
+ /* INTERFACE END */
7
+ /* MODEL START */
8
+ class AcaClassPrgBranchListPayload extends common_1.MTableQueries {
9
+ constructor(init) {
10
+ super(init);
11
+ Object.assign(this, init);
12
+ }
13
+ Validate() {
14
+ let errorLogger = {};
15
+ return errorLogger;
16
+ }
17
+ }
18
+ exports.AcaClassPrgBranchListPayload = AcaClassPrgBranchListPayload;
19
+ class AcaClassPrgBranchGetByIdPayload {
20
+ constructor(init) {
21
+ Object.assign(this, init);
22
+ }
23
+ Validate() {
24
+ let errorLogger = {};
25
+ if (!this.acabrn_id) {
26
+ errorLogger.acabrn_id = "Class Program Branch ID is Required!";
27
+ }
28
+ return errorLogger;
29
+ }
30
+ }
31
+ exports.AcaClassPrgBranchGetByIdPayload = AcaClassPrgBranchGetByIdPayload;
32
+ class AcaClassPrgBranchDeletePayload {
33
+ constructor(init) {
34
+ Object.assign(this, init);
35
+ }
36
+ Validate() {
37
+ let errorLogger = {};
38
+ if (!this.acabrn_id) {
39
+ errorLogger.acabrn_id = "Class Program Branch ID is Required!";
40
+ }
41
+ return errorLogger;
42
+ }
43
+ }
44
+ exports.AcaClassPrgBranchDeletePayload = AcaClassPrgBranchDeletePayload;
45
+ class AcaClassPrgBranchToggleStatusPayload {
46
+ constructor(init) {
47
+ Object.assign(this, init);
48
+ }
49
+ Validate() {
50
+ let errorLogger = {};
51
+ if (!this.acabrn_id) {
52
+ errorLogger.acabrn_id = "Class Program Branch ID is Required!";
53
+ }
54
+ return errorLogger;
55
+ }
56
+ }
57
+ exports.AcaClassPrgBranchToggleStatusPayload = AcaClassPrgBranchToggleStatusPayload;
58
+ class AcaClassPrgBranchToggleLockPayload {
59
+ constructor(init) {
60
+ Object.assign(this, init);
61
+ }
62
+ Validate() {
63
+ let errorLogger = {};
64
+ if (!this.acabrn_id) {
65
+ errorLogger.acabrn_id = "Class Program Branch ID is Required!";
66
+ }
67
+ return errorLogger;
68
+ }
69
+ }
70
+ exports.AcaClassPrgBranchToggleLockPayload = AcaClassPrgBranchToggleLockPayload;
71
+ class AcaClassPrgBranchInsertUpdatePayload extends schema_1.AcaClassPrgBranch {
72
+ constructor(init) {
73
+ super();
74
+ Object.assign(this, init);
75
+ }
76
+ Validate() {
77
+ let errorLogger = {};
78
+ return errorLogger;
79
+ }
80
+ }
81
+ exports.AcaClassPrgBranchInsertUpdatePayload = AcaClassPrgBranchInsertUpdatePayload;
@@ -3,3 +3,4 @@ export * from "./aca_academic_year_mapping";
3
3
  export * from "./aca_class_program_master";
4
4
  export * from "./aca_class_program_term";
5
5
  export * from "./aca_prg_trm_section";
6
+ export * from "./aca_class_prg_branch";
@@ -19,3 +19,4 @@ __exportStar(require("./aca_academic_year_mapping"), exports);
19
19
  __exportStar(require("./aca_class_program_master"), exports);
20
20
  __exportStar(require("./aca_class_program_term"), exports);
21
21
  __exportStar(require("./aca_prg_trm_section"), exports);
22
+ __exportStar(require("./aca_class_prg_branch"), exports);
@@ -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
@@ -0,0 +1,10 @@
1
+ declare class AcaClassPrgBranch {
2
+ _id?: string;
3
+ acabrn_class_program_id_acacpm?: string;
4
+ acabrn_name?: string;
5
+ acabm_code?: string;
6
+ acabm_sequence?: number;
7
+ acabm_isactive?: boolean;
8
+ acabm_islocked?: boolean;
9
+ }
10
+ export { AcaClassPrgBranch };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcaClassPrgBranch = void 0;
4
+ class AcaClassPrgBranch {
5
+ }
6
+ exports.AcaClassPrgBranch = AcaClassPrgBranch;
@@ -3,3 +3,4 @@ export * from './aca_academic_year_mapping';
3
3
  export * from './aca_class_program_master';
4
4
  export * from './aca_class_program_term';
5
5
  export * from './aca_prg_trm_section';
6
+ export * from './aca_class_prg_branch';
@@ -19,3 +19,4 @@ __exportStar(require("./aca_academic_year_mapping"), exports);
19
19
  __exportStar(require("./aca_class_program_master"), exports);
20
20
  __exportStar(require("./aca_class_program_term"), exports);
21
21
  __exportStar(require("./aca_prg_trm_section"), exports);
22
+ __exportStar(require("./aca_class_prg_branch"), exports);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.0.250",
8
+ "version": "1.0.252",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",