UNPKG

cloud-ide-lms-model

Version:

Package for Model management of Cloud IDEsys LMS

61 lines (60 loc) 1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MApiEndpointMasterDeletePayload = exports.MApiEndpointMasterGetByIdPayload = exports.MApiEndpointMaster = exports.ApiEndpointMasterSaveUpdatePayload = void 0; const common_1 = require("../../common-types/common"); /* INTERFACE END */ /* MODEL START */ class ApiEndpointMasterSaveUpdatePayload { constructor(init) { Object.assign(this, init); } Validate() { var _a, _b; let errorLogger = {}; if (!((_a = this.core_api_endpoint_master) === null || _a === void 0 ? void 0 : _a.api_endpoint)) { errorLogger.api_endpoint = "API Endpoint is required!"; } if (!((_b = this.core_api_endpoint_master) === null || _b === void 0 ? void 0 : _b.api_method)) { errorLogger.api_method = "API Method is required!"; } return errorLogger; } } exports.ApiEndpointMasterSaveUpdatePayload = ApiEndpointMasterSaveUpdatePayload; class MApiEndpointMaster extends common_1.MTableQueries { constructor(init) { super(init); Object.assign(this, init); } Validate() { let errorLogger = {}; return errorLogger; } } exports.MApiEndpointMaster = MApiEndpointMaster; class MApiEndpointMasterGetByIdPayload { constructor(init) { Object.assign(this, init); } Validate() { let errorLogger = {}; if (!this.api_id) { errorLogger.api_id = "ID is required!"; } return errorLogger; } } exports.MApiEndpointMasterGetByIdPayload = MApiEndpointMasterGetByIdPayload; class MApiEndpointMasterDeletePayload { constructor(init) { Object.assign(this, init); } Validate() { let errorLogger = {}; if (!this.api_id) { errorLogger.api_id = "ID is required!"; } return errorLogger; } } exports.MApiEndpointMasterDeletePayload = MApiEndpointMasterDeletePayload;