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/academics/aca_class_prg_branch";
2
+ import { AcaClassPrgBranch } from "../../schema";
3
3
  import { controllerResponse } from "../../utilities";
4
4
  type IClassPrgBranchErrorLogger = {
5
- [key in keyof MClassPrgBranch]: string;
5
+ [key in keyof AcaClassPrgBranchListPayload]: string;
6
6
  };
7
7
  type IClassPrgBranchGetByIdErrorLogger = {
8
- [key in keyof MClassPrgBranchGetByIdPayload]: string;
8
+ [key in keyof AcaClassPrgBranchGetByIdPayload]: string;
9
9
  };
10
10
  type IClassPrgBranchDeleteErrorLogger = {
11
- [key in keyof MClassPrgBranchDeletePayload]: string;
11
+ [key in keyof AcaClassPrgBranchDeletePayload]: string;
12
12
  };
13
13
  type IClassPrgBranchInsertUpdateErrorLogger = {
14
- [key in keyof MClassPrgBranchInsertUpdatePayload]: string;
14
+ [key in keyof AcaClassPrgBranchInsertUpdatePayload]: string;
15
15
  };
16
16
  type IClassPrgBranchToggleStatusErrorLogger = {
17
- [key in keyof MClassPrgBranchToggleStatusPayload]: string;
17
+ [key in keyof AcaClassPrgBranchToggleStatusPayload]: string;
18
18
  };
19
19
  type IClassPrgBranchToggleLockErrorLogger = {
20
- [key in keyof MClassPrgBranchToggleLockPayload]: string;
20
+ [key in keyof AcaClassPrgBranchToggleLockPayload]: string;
21
21
  };
22
- declare class MClassPrgBranch extends MTableQueries {
23
- constructor(init: MClassPrgBranch);
22
+ declare class AcaClassPrgBranchListPayload extends MTableQueries {
23
+ constructor(init: AcaClassPrgBranchListPayload);
24
24
  Validate?(): Partial<IClassPrgBranchErrorLogger>;
25
25
  }
26
- declare class MClassPrgBranchGetByIdPayload {
26
+ declare class AcaClassPrgBranchGetByIdPayload {
27
27
  acabrn_id?: string;
28
- constructor(init: MClassPrgBranchGetByIdPayload);
28
+ constructor(init: AcaClassPrgBranchGetByIdPayload);
29
29
  Validate?(): Partial<IClassPrgBranchGetByIdErrorLogger>;
30
30
  }
31
- declare class MClassPrgBranchDeletePayload {
31
+ declare class AcaClassPrgBranchDeletePayload {
32
32
  acabrn_id?: string;
33
- constructor(init: MClassPrgBranchDeletePayload);
33
+ constructor(init: AcaClassPrgBranchDeletePayload);
34
34
  Validate?(): Partial<IClassPrgBranchDeleteErrorLogger>;
35
35
  }
36
- declare class MClassPrgBranchToggleStatusPayload {
36
+ declare class AcaClassPrgBranchToggleStatusPayload {
37
37
  acabrn_id?: string;
38
- constructor(init: MClassPrgBranchToggleStatusPayload);
38
+ constructor(init: AcaClassPrgBranchToggleStatusPayload);
39
39
  Validate?(): Partial<IClassPrgBranchToggleStatusErrorLogger>;
40
40
  }
41
- declare class MClassPrgBranchToggleLockPayload {
41
+ declare class AcaClassPrgBranchToggleLockPayload {
42
42
  acabrn_id?: string;
43
- constructor(init: MClassPrgBranchToggleLockPayload);
43
+ constructor(init: AcaClassPrgBranchToggleLockPayload);
44
44
  Validate?(): Partial<IClassPrgBranchToggleLockErrorLogger>;
45
45
  }
46
- declare class MClassPrgBranchInsertUpdatePayload extends AcaClassPrgBranch {
47
- constructor(init: AcaClassPrgBranch);
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, MClassPrgBranch, MClassPrgBranchGetByIdPayload, MClassPrgBranchDeletePayload, MClassPrgBranchInsertUpdatePayload, MClassPrgBranchToggleStatusPayload, MClassPrgBranchToggleLockPayload, classPrgBranchControllerResponse, classPrgBranchByIdControllerResponse, classPrgBranchInsertUpdateControllerResponse, classPrgBranchDeleteControllerResponse, classPrgBranchToggleStatusControllerResponse, classPrgBranchToggleLockControllerResponse, classPrgBranchByProgramControllerResponse };
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.MClassPrgBranchToggleLockPayload = exports.MClassPrgBranchToggleStatusPayload = exports.MClassPrgBranchInsertUpdatePayload = exports.MClassPrgBranchDeletePayload = exports.MClassPrgBranchGetByIdPayload = exports.MClassPrgBranch = void 0;
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 aca_class_prg_branch_1 = require("../../schema/academics/aca_class_prg_branch");
5
+ const schema_1 = require("../../schema");
6
6
  /* INTERFACE END */
7
7
  /* MODEL START */
8
- class MClassPrgBranch extends common_1.MTableQueries {
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.MClassPrgBranch = MClassPrgBranch;
19
- class MClassPrgBranchGetByIdPayload {
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.MClassPrgBranchGetByIdPayload = MClassPrgBranchGetByIdPayload;
32
- class MClassPrgBranchDeletePayload {
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.MClassPrgBranchDeletePayload = MClassPrgBranchDeletePayload;
45
- class MClassPrgBranchToggleStatusPayload {
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.MClassPrgBranchToggleStatusPayload = MClassPrgBranchToggleStatusPayload;
58
- class MClassPrgBranchToggleLockPayload {
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.MClassPrgBranchToggleLockPayload = MClassPrgBranchToggleLockPayload;
71
- class MClassPrgBranchInsertUpdatePayload extends aca_class_prg_branch_1.AcaClassPrgBranch {
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.MClassPrgBranchInsertUpdatePayload = MClassPrgBranchInsertUpdatePayload;
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
@@ -8,6 +8,7 @@ declare class ICoreSyme {
8
8
  syme_link?: string;
9
9
  syme_order_by?: number;
10
10
  syme_id_syme?: string;
11
+ syme_permissions_id_sygms?: string[];
11
12
  syme_isactive?: boolean;
12
13
  }
13
14
  export { ICoreSyme };
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.251",
8
+ "version": "1.0.253",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",