cloud-ide-lms-model 1.0.4 → 1.0.6

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,30 @@
1
+ import { controllerResponse } from "../../utilities";
2
+ type IFileManagerErrorLogger = {
3
+ [key in keyof MFileManager]: string;
4
+ };
5
+ declare class MFileManager {
6
+ cyfm_id: string;
7
+ constructor(init: MFileManager);
8
+ Validate?(): Partial<IFileManagerErrorLogger>;
9
+ }
10
+ interface fileManagerControllerResponse extends controllerResponse {
11
+ data?: fileManagerResponseData[];
12
+ }
13
+ interface fileManagerResponseData {
14
+ _id: string;
15
+ cyfm_name: string;
16
+ cyfm_path: string;
17
+ cyfm_size_in_byte: number;
18
+ cyfm_type: string;
19
+ cyfm_creation_dt: string;
20
+ cyfm_id_user: string;
21
+ cyfm_permissions: string[];
22
+ cyfm_tags: string[];
23
+ cyfm_version: number;
24
+ cyfm_file_status_sygmt: string;
25
+ cyfm_isactive: boolean;
26
+ }
27
+ export { IFileManagerErrorLogger, //interface
28
+ MFileManager, // model
29
+ fileManagerControllerResponse, // above coresponding to payload abd this corespons to rresponse
30
+ fileManagerResponseData };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MFileManager = void 0;
4
+ /* INTERFACE END */
5
+ /* MODEL START */
6
+ class MFileManager {
7
+ constructor(init) {
8
+ this.cyfm_id = "";
9
+ Object.assign(this, init);
10
+ }
11
+ Validate() {
12
+ let errorLogger = {};
13
+ // Log errors here
14
+ if (!this.cyfm_id) {
15
+ errorLogger.cyfm_id = "File ID is Required!";
16
+ }
17
+ return errorLogger;
18
+ }
19
+ }
20
+ exports.MFileManager = MFileManager;
@@ -1,4 +1,5 @@
1
1
  export * from "./design-config";
2
+ export * from "./file-manager";
2
3
  export * from "./entity";
3
4
  export * from "./general-master";
4
5
  export * from "./menu";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./design-config"), exports);
18
+ __exportStar(require("./file-manager"), exports);
18
19
  __exportStar(require("./entity"), exports);
19
20
  __exportStar(require("./general-master"), exports);
20
21
  __exportStar(require("./menu"), exports);
@@ -5,6 +5,7 @@ type IMenuErrorLogger = {
5
5
  declare class MMenu {
6
6
  syme_id?: string;
7
7
  syme_title?: string;
8
+ syme_type?: string;
8
9
  sort?: 'asc' | 'desc';
9
10
  constructor(init: MMenu);
10
11
  Validate?(): Partial<IMenuErrorLogger>;
@@ -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;
3
+ export type statusCode = 200 | 201 | 500 | 401 | 400 | 427 | 783 | 430 | 449 | 419 | 403;
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.4",
8
+ "version": "1.0.6",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",