cloud-ide-lms-model 1.0.78 → 1.0.80

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,9 +11,9 @@ export type log_type = 'TRACE' | 'SECURITY' | 'APPLICATION_ERROR';
11
11
  * @description type for diagnostic codes
12
12
  * @typedef {string} diagnostic_code
13
13
  * @property {string} diagnostic_code - code for specific application errors, e.g., 'APPLICATION_ERROR_500'
14
- * 'APPLICATION_ERROR_500' - for internal server errors, indicating a general application failure
14
+ * to understand falure type read statusCode from type.helper.ts
15
15
  */
16
- export type diagnostic_code = "APPLICATION_ERROR_500" | "";
16
+ export type diagnostic_code = "APPLICATION_ERROR_200" | "APPLICATION_ERROR_500" | "APPLICATION_ERROR_201" | "APPLICATION_ERROR_401" | "APPLICATION_ERROR_400" | "APPLICATION_ERROR_427" | "APPLICATION_ERROR_783" | "APPLICATION_ERROR_430" | "APPLICATION_ERROR_449" | "APPLICATION_ERROR_419" | "APPLICATION_ERROR_403";
17
17
  declare class ICoreSylog {
18
18
  _id?: string;
19
19
  sylog_id_user?: string;
@@ -5,7 +5,7 @@ interface controllerResponse {
5
5
  error_code?: string;
6
6
  message?: string;
7
7
  data?: any;
8
- code?: statusCode;
8
+ code: statusCode;
9
9
  action?: string;
10
10
  total?: number;
11
11
  pageIndex?: number;
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.78",
8
+ "version": "1.0.80",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",