cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
105 lines (104 loc) • 3.46 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MPageElementsMappingCheckExistsPayload = exports.MPageElementsMappingByPageIdPayload = exports.MPageElementsMappingToggleStatusPayload = exports.MPageElementsMappingInsertUpdatePayload = exports.MPageElementsMappingDeletePayload = exports.MPageElementsMappingGetByIdPayload = exports.MPageElementsMapping = void 0;
const common_1 = require("../../common-types/common");
/* INTERFACE END */
/* MODEL START */
class MPageElementsMapping extends common_1.MTableQueries {
constructor(init) {
super(init);
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
return errorLogger;
}
}
exports.MPageElementsMapping = MPageElementsMapping;
class MPageElementsMappingGetByIdPayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sypem_id) {
errorLogger.sypem_id = "Mapping ID is Required!";
}
return errorLogger;
}
}
exports.MPageElementsMappingGetByIdPayload = MPageElementsMappingGetByIdPayload;
class MPageElementsMappingDeletePayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sypem_id) {
errorLogger.sypem_id = "Mapping ID is Required!";
}
return errorLogger;
}
}
exports.MPageElementsMappingDeletePayload = MPageElementsMappingDeletePayload;
class MPageElementsMappingInsertUpdatePayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sypem_key_sype) {
errorLogger.sypem_key_sype = "Element key is required!";
}
if (!this.sypem_id_sypg) {
errorLogger.sypem_id_sypg = "Page ID is required!";
}
return errorLogger;
}
}
exports.MPageElementsMappingInsertUpdatePayload = MPageElementsMappingInsertUpdatePayload;
class MPageElementsMappingToggleStatusPayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sypem_id) {
errorLogger.sypem_id = "Mapping ID is required!";
}
if (typeof this.sypem_isactive !== 'boolean') {
errorLogger.sypem_isactive = "Active status must be a boolean value!";
}
return errorLogger;
}
}
exports.MPageElementsMappingToggleStatusPayload = MPageElementsMappingToggleStatusPayload;
class MPageElementsMappingByPageIdPayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sypem_id_sypg) {
errorLogger.sypem_id_sypg = "Page ID is required!";
}
return errorLogger;
}
}
exports.MPageElementsMappingByPageIdPayload = MPageElementsMappingByPageIdPayload;
class MPageElementsMappingCheckExistsPayload {
constructor(init) {
Object.assign(this, init);
}
Validate() {
let errorLogger = {};
if (!this.sypem_key_sype) {
errorLogger.sypem_key_sype = "Element key is required!";
}
if (!this.sypem_id_sypg) {
errorLogger.sypem_id_sypg = "Page ID is required!";
}
return errorLogger;
}
}
exports.MPageElementsMappingCheckExistsPayload = MPageElementsMappingCheckExistsPayload;