cloud-ide-lms-model 1.0.300 → 1.0.301
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MTableQueries } from "../../common-types/common";
|
|
2
|
-
import { CoreSystemEntity } from "../../schema";
|
|
2
|
+
import { CoreEntityMapping, CoreSystemEntity } from "../../schema";
|
|
3
3
|
import { controllerResponse } from "../../utilities";
|
|
4
4
|
type IEntityErrorLogger = {
|
|
5
5
|
[key in keyof MEntity]: string;
|
|
@@ -7,7 +7,9 @@ type IEntityErrorLogger = {
|
|
|
7
7
|
type CoreSystemEntityErrorLogger = {
|
|
8
8
|
[key in keyof CoreSystemEntity]: string;
|
|
9
9
|
};
|
|
10
|
-
declare class CoreSystemEntitySaveUpdatePayload
|
|
10
|
+
declare class CoreSystemEntitySaveUpdatePayload {
|
|
11
|
+
core_system_entity?: CoreSystemEntity;
|
|
12
|
+
core_entity_mapping?: CoreEntityMapping;
|
|
11
13
|
constructor(init: CoreSystemEntitySaveUpdatePayload);
|
|
12
14
|
Validate?(): Partial<CoreSystemEntityErrorLogger>;
|
|
13
15
|
}
|
|
@@ -2,19 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CoreSystemEntitySaveUpdatePayload = exports.MEntity = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
|
-
const schema_1 = require("../../schema");
|
|
6
5
|
/* INTERFACE END */
|
|
7
6
|
/* MODEL START */
|
|
8
|
-
class CoreSystemEntitySaveUpdatePayload
|
|
7
|
+
class CoreSystemEntitySaveUpdatePayload {
|
|
9
8
|
constructor(init) {
|
|
10
|
-
super();
|
|
11
9
|
Object.assign(this, init);
|
|
12
10
|
}
|
|
13
11
|
Validate() {
|
|
14
12
|
let errorLogger = {};
|
|
15
|
-
if (!this.syen_entity_type_sygms) {
|
|
16
|
-
errorLogger.syen_entity_type_sygms = "Entity Type is required";
|
|
17
|
-
}
|
|
18
13
|
return errorLogger;
|
|
19
14
|
}
|
|
20
15
|
}
|