cloud-ide-lms-model 1.0.153 → 1.0.155

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.
@@ -11,6 +11,15 @@ declare class MMenuListPayload extends MTableQueries {
11
11
  constructor(init: MMenuListPayload);
12
12
  Validate?(): Partial<IMenuErrorLogger>;
13
13
  }
14
+ declare class MCoreSymeInsertUpdatePayload extends ICoreSyme {
15
+ constructor(init: ICoreSyme);
16
+ Validate?(): Partial<IMenuErrorLogger>;
17
+ }
18
+ declare class MCoreSymeDeletePayload {
19
+ syme_id?: string;
20
+ constructor(init: MCoreSymeDeletePayload);
21
+ Validate?(): Partial<IMenuErrorLogger>;
22
+ }
14
23
  declare class MMenu {
15
24
  syme_id?: string;
16
25
  syme_title?: string;
@@ -19,6 +28,12 @@ declare class MMenu {
19
28
  constructor(init: MMenu);
20
29
  Validate?(): Partial<IMenuErrorLogger>;
21
30
  }
31
+ interface menuInsertUpdateControllerResponse extends controllerResponse {
32
+ data?: ICoreSyme;
33
+ }
34
+ interface menuByIdControllerResponse extends controllerResponse {
35
+ data?: ICoreSyme;
36
+ }
22
37
  interface menuControllerResponse extends controllerResponse {
23
38
  data?: menuResponseData[];
24
39
  }
@@ -40,4 +55,4 @@ interface menuResponseData {
40
55
  export { IMenuErrorLogger, //interface
41
56
  MMenu, // model
42
57
  menuControllerResponse, // above coresponding to payload abd this corespons to rresponse
43
- menuListControllerResponse, menuResponseData, MMenuListPayload };
58
+ menuListControllerResponse, menuResponseData, MMenuListPayload, MCoreSymeInsertUpdatePayload, MCoreSymeDeletePayload, menuInsertUpdateControllerResponse, menuByIdControllerResponse };
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MMenuListPayload = exports.MMenu = void 0;
3
+ exports.MCoreSymeDeletePayload = exports.MCoreSymeInsertUpdatePayload = exports.MMenuListPayload = exports.MMenu = void 0;
4
4
  const common_types_1 = require("../../common-types");
5
+ const schema_1 = require("../../schema");
5
6
  /* INTERFACE END */
6
7
  /* MODEL START */
7
8
  class MMenuListPayload extends common_types_1.MTableQueries {
@@ -15,6 +16,30 @@ class MMenuListPayload extends common_types_1.MTableQueries {
15
16
  }
16
17
  }
17
18
  exports.MMenuListPayload = MMenuListPayload;
19
+ class MCoreSymeInsertUpdatePayload extends schema_1.ICoreSyme {
20
+ constructor(init) {
21
+ super();
22
+ Object.assign(this, init);
23
+ }
24
+ Validate() {
25
+ let errorLogger = {};
26
+ return errorLogger;
27
+ }
28
+ }
29
+ exports.MCoreSymeInsertUpdatePayload = MCoreSymeInsertUpdatePayload;
30
+ class MCoreSymeDeletePayload {
31
+ constructor(init) {
32
+ Object.assign(this, init);
33
+ }
34
+ Validate() {
35
+ let errorLogger = {};
36
+ if (!this.syme_id) {
37
+ errorLogger.syme_id = "System menu ID is Required!";
38
+ }
39
+ return errorLogger;
40
+ }
41
+ }
42
+ exports.MCoreSymeDeletePayload = MCoreSymeDeletePayload;
18
43
  class MMenu {
19
44
  constructor(init) {
20
45
  Object.assign(this, init);
@@ -13,7 +13,7 @@ export type log_type = 'TRACE' | 'SECURITY' | 'APPLICATION_ERROR';
13
13
  * @property {string} diagnostic_code - code for specific application errors, e.g., 'APPLICATION_ERROR_500'
14
14
  * to understand falure type read statusCode from type.helper.ts
15
15
  */
16
- export type diagnostic_code = "APPLICATION_ERR_200" | "APPLICATION_ERR_500" | "APPLICATION_ERR_201" | "APPLICATION_ERR_401" | "APPLICATION_ERR_400" | "APPLICATION_ERR_427" | "APPLICATION_ERR_783" | "APPLICATION_ERR_430" | "APPLICATION_ERR_449" | "APPLICATION_ERR_419" | "APPLICATION_ERR_403";
16
+ export type diagnostic_code = "APPLICATION_ERR_200" | "APPLICATION_ERR_500" | "APPLICATION_ERR_201" | "APPLICATION_ERR_401" | "APPLICATION_ERR_400" | "APPLICATION_ERR_427" | "APPLICATION_ERR_783" | "APPLICATION_ERR_430" | "APPLICATION_ERR_449" | "APPLICATION_ERR_419" | "APPLICATION_ERR_403" | "APPLICATION_ERR_404";
17
17
  declare class ICoreSylog {
18
18
  _id?: string;
19
19
  sylog_id_user?: string;
@@ -1,3 +1,3 @@
1
1
  export type loginMethod = "mpin" | "pass";
2
2
  export type forgotPasswordMethod = "username" | "mobile" | "email";
3
- export type statusCode = 200 | 201 | 500 | 401 | 400 | 427 | 783 | 430 | 449 | 419 | 403;
3
+ export type statusCode = 200 | 201 | 500 | 401 | 400 | 427 | 783 | 430 | 449 | 419 | 403 | 404;
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.153",
8
+ "version": "1.0.155",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",