cloud-ide-lms-model 1.0.31 → 1.0.32
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,16 @@
|
|
|
1
|
+
import { ICoreCyfm } from "../../schema";
|
|
2
|
+
import { controllerResponse } from "../../utilities";
|
|
3
|
+
type IFileManagerErrorLogger = {
|
|
4
|
+
[key in keyof MFileManager]: string;
|
|
5
|
+
};
|
|
6
|
+
declare class MFileManager {
|
|
7
|
+
cyfm_id: string;
|
|
8
|
+
constructor(init: MFileManager);
|
|
9
|
+
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
10
|
+
}
|
|
11
|
+
interface fileManagerControllerResponse extends controllerResponse {
|
|
12
|
+
data?: ICoreCyfm[];
|
|
13
|
+
}
|
|
14
|
+
export { IFileManagerErrorLogger, //interface
|
|
15
|
+
MFileManager, // model
|
|
16
|
+
fileManagerControllerResponse, };
|
|
@@ -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
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./core_page_elements"), exports);
|
|
18
18
|
__exportStar(require("./design-config"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./core_file_manager"), exports);
|
|
20
20
|
__exportStar(require("./entity"), exports);
|
|
21
21
|
__exportStar(require("./general-master"), exports);
|
|
22
22
|
__exportStar(require("./menu"), exports);
|