cloud-ide-lms-model 1.0.249 → 1.0.251

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/academics/aca_class_prg_branch";
3
+ import { controllerResponse } from "../../utilities";
4
+ type IClassPrgBranchErrorLogger = {
5
+ [key in keyof MClassPrgBranch]: string;
6
+ };
7
+ type IClassPrgBranchGetByIdErrorLogger = {
8
+ [key in keyof MClassPrgBranchGetByIdPayload]: string;
9
+ };
10
+ type IClassPrgBranchDeleteErrorLogger = {
11
+ [key in keyof MClassPrgBranchDeletePayload]: string;
12
+ };
13
+ type IClassPrgBranchInsertUpdateErrorLogger = {
14
+ [key in keyof MClassPrgBranchInsertUpdatePayload]: string;
15
+ };
16
+ type IClassPrgBranchToggleStatusErrorLogger = {
17
+ [key in keyof MClassPrgBranchToggleStatusPayload]: string;
18
+ };
19
+ type IClassPrgBranchToggleLockErrorLogger = {
20
+ [key in keyof MClassPrgBranchToggleLockPayload]: string;
21
+ };
22
+ declare class MClassPrgBranch extends MTableQueries {
23
+ constructor(init: MClassPrgBranch);
24
+ Validate?(): Partial<IClassPrgBranchErrorLogger>;
25
+ }
26
+ declare class MClassPrgBranchGetByIdPayload {
27
+ acabrn_id?: string;
28
+ constructor(init: MClassPrgBranchGetByIdPayload);
29
+ Validate?(): Partial<IClassPrgBranchGetByIdErrorLogger>;
30
+ }
31
+ declare class MClassPrgBranchDeletePayload {
32
+ acabrn_id?: string;
33
+ constructor(init: MClassPrgBranchDeletePayload);
34
+ Validate?(): Partial<IClassPrgBranchDeleteErrorLogger>;
35
+ }
36
+ declare class MClassPrgBranchToggleStatusPayload {
37
+ acabrn_id?: string;
38
+ constructor(init: MClassPrgBranchToggleStatusPayload);
39
+ Validate?(): Partial<IClassPrgBranchToggleStatusErrorLogger>;
40
+ }
41
+ declare class MClassPrgBranchToggleLockPayload {
42
+ acabrn_id?: string;
43
+ constructor(init: MClassPrgBranchToggleLockPayload);
44
+ Validate?(): Partial<IClassPrgBranchToggleLockErrorLogger>;
45
+ }
46
+ declare class MClassPrgBranchInsertUpdatePayload extends AcaClassPrgBranch {
47
+ constructor(init: AcaClassPrgBranch);
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, MClassPrgBranch, MClassPrgBranchGetByIdPayload, MClassPrgBranchDeletePayload, MClassPrgBranchInsertUpdatePayload, MClassPrgBranchToggleStatusPayload, MClassPrgBranchToggleLockPayload, classPrgBranchControllerResponse, classPrgBranchByIdControllerResponse, classPrgBranchInsertUpdateControllerResponse, classPrgBranchDeleteControllerResponse, classPrgBranchToggleStatusControllerResponse, classPrgBranchToggleLockControllerResponse, classPrgBranchByProgramControllerResponse };
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MClassPrgBranchToggleLockPayload = exports.MClassPrgBranchToggleStatusPayload = exports.MClassPrgBranchInsertUpdatePayload = exports.MClassPrgBranchDeletePayload = exports.MClassPrgBranchGetByIdPayload = exports.MClassPrgBranch = void 0;
4
+ const common_1 = require("../../common-types/common");
5
+ const aca_class_prg_branch_1 = require("../../schema/academics/aca_class_prg_branch");
6
+ /* INTERFACE END */
7
+ /* MODEL START */
8
+ class MClassPrgBranch 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.MClassPrgBranch = MClassPrgBranch;
19
+ class MClassPrgBranchGetByIdPayload {
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.MClassPrgBranchGetByIdPayload = MClassPrgBranchGetByIdPayload;
32
+ class MClassPrgBranchDeletePayload {
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.MClassPrgBranchDeletePayload = MClassPrgBranchDeletePayload;
45
+ class MClassPrgBranchToggleStatusPayload {
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.MClassPrgBranchToggleStatusPayload = MClassPrgBranchToggleStatusPayload;
58
+ class MClassPrgBranchToggleLockPayload {
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.MClassPrgBranchToggleLockPayload = MClassPrgBranchToggleLockPayload;
71
+ class MClassPrgBranchInsertUpdatePayload extends aca_class_prg_branch_1.AcaClassPrgBranch {
72
+ constructor(init) {
73
+ super();
74
+ Object.assign(this, init);
75
+ }
76
+ Validate() {
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
+ return errorLogger;
91
+ }
92
+ }
93
+ exports.MClassPrgBranchInsertUpdatePayload = MClassPrgBranchInsertUpdatePayload;
@@ -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);
@@ -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.249",
8
+ "version": "1.0.251",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",