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;
|
package/lib/model/core/index.js
CHANGED
|
@@ -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);
|
package/lib/model/core/menu.d.ts
CHANGED
|
@@ -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;
|